10000 Apply fixes from StyleCI · laravel/framework@de04af8 · GitHub
[go: up one dir, main page]

Skip to content

Commit de04af8

Browse files
driesvintsStyleCIBot
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 4f762cf commit de04af8

File tree

8 files changed

+6
-9
lines changed

8 files changed

+6
-9
lines changed

src/Illuminate/Auth/EloquentUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function retrieveByToken($identifier, $token)
6666
$model = $model->where($model->getAuthIdentifierName(), $identifier)->first();
6767

6868
if (! $model) {
69-
return null;
69+
return;
7070
}
7171

7272
$rememberToken = $model->getRememberToken();

src/Illuminate/Database/Eloquent/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function loadMissing($relations)
105105
* @param array $path
106106
* @return void
107107
*/
108-
protected function loadMissingRelation(Collection $models, array $path)
108+
protected function loadMissingRelation(self $models, array $path)
109109
{
110110
$relation = array_splice($path, 0, 1);
111111

src/Illuminate/Http/Resources/ConditionallyLoadsAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected function whenLoaded($relationship, $value = null, $default = null)
160160
}
161161

162162
if ($this->resource->{$relationship} === null) {
163-
return null;
163+
return;
164164
}
165165

166166
return value($value);

src/Illuminate/Queue/DatabaseQueue.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ public function pop($queue = null)
194194
if ($job = $this->getNextAvailableJob($queue)) {
195195
return $this->marshalJob($queue, $job);
196196
}
197-
198-
return null;
199197
});
200198
}
201199

tests/Integration/Database/EloquentCollectionLoadMissingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Comment extends Model
8484

8585
public function parent()
8686
{
87-
return $this->belongsTo(Comment::class);
87+
return $this->belongsTo(self::class);
8888
}
8989

9090
public function revisions()

tests/Integration/Database/EloquentModelLoadMissingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Comment extends Model
5353

5454
public function parent()
5555
{
56-
return $this->belongsTo(Comment::class);
56+
return $this->belongsTo(self::class);
5757
}
5858
}
5959

tests/Integration/Support/Fixtures/NullableManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ class NullableManager extends Manager
1313
*/
1414
public function getDefaultDriver()
1515
{
16-
return null;
1716
}
1817
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $__env->yieldContent('content'); ?>
1+
<?php echo $__env->yieldContent('content');

0 commit comments

Comments
 (0)
0