Merge pull request #28300 from laravel/analysis-XkdkB1

Apply fixes from StyleCI
This commit is contained in:
Dries Vints 2019-04-22 21:12:28 +02:00 committed by GitHub
commit 614a54721e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 6 additions and 9 deletions

View File

@ -66,7 +66,7 @@ class EloquentUserProvider implements UserProvider
$model = $model->where($model->getAuthIdentifierName(), $identifier)->first();
if (! $model) {
return null;
return;
}
$rememberToken = $model->getRememberToken();

View File

@ -105,7 +105,7 @@ class Collection extends BaseCollection implements QueueableCollection
* @param array $path
* @return void
*/
protected function loadMissingRelation(Collection $models, array $path)
protected function loadMissingRelation(self $models, array $path)
{
$relation = array_splice($path, 0, 1);

View File

@ -160,7 +160,7 @@ trait ConditionallyLoadsAttributes
}
if ($this->resource->{$relationship} === null) {
return null;
return;
}
return value($value);

View File

@ -194,8 +194,6 @@ class DatabaseQueue extends Queue implements QueueContract
if ($job = $this->getNextAvailableJob($queue)) {
return $this->marshalJob($queue, $job);
}
return null;
});
}

View File

@ -84,7 +84,7 @@ class Comment extends Model
public function parent()
{
return $this->belongsTo(Comment::class);
return $this->belongsTo(self::class);
}
public function revisions()

View File

@ -53,7 +53,7 @@ class Comment extends Model
public function parent()
{
return $this->belongsTo(Comment::class);
return $this->belongsTo(self::class);
}
}

View File

@ -13,6 +13,5 @@ class NullableManager extends Manager
*/
public function getDefaultDriver()
{
return null;
}
}

View File

@ -1 +1 @@
<?php echo $__env->yieldContent('content'); ?>
<?php echo $__env->yieldContent('content');