@@ -46,9 +46,9 @@ |
||
46 | 46 | */ |
47 | 47 | public function eagerLoadRelations(array $models) |
48 | 48 | { |
49 | - collect($models)->groupBy(function ($model) { |
|
49 | + collect($models)->groupBy(function($model) { |
|
50 | 50 | return get_class($model); |
51 | - })->each(function ($models) { |
|
51 | + })->each(function($models) { |
|
52 | 52 | $model = $models[0]; |
53 | 53 | |
54 | 54 | $relations = array_merge( |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function getResults() |
16 | 16 | { |
17 | - $results = ! is_null($this->getParentKey()) |
|
17 | + $results = !is_null($this->getParentKey()) |
|
18 | 18 | ? $this->get() |
19 | 19 | : $this->related->newCollection(); |
20 | 20 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | $foreignKey = $this->getOriginalForeignKey($relation); |
81 | 81 | |
82 | 82 | $relation->getQuery()->getQuery()->wheres = collect($relation->getQuery()->getQuery()->wheres) |
83 | - ->reject(function ($where) use ($foreignKey) { |
|
83 | + ->reject(function($where) use ($foreignKey) { |
|
84 | 84 | return $where['column'] === $foreignKey; |
85 | 85 | })->values()->all(); |
86 | 86 | } |
@@ -224,22 +224,22 @@ |
||
224 | 224 | { |
225 | 225 | if ($relation instanceof BelongsTo) { |
226 | 226 | $relation->getQuery()->distinct() |
227 | - ->join( |
|
228 | - $relation->getParent()->getTable(), |
|
229 | - $relation->getQualifiedForeignKeyName(), |
|
230 | - '=', |
|
231 | - $relation->getQualifiedOwnerKeyName() |
|
232 | - ); |
|
227 | + ->join( |
|
228 | + $relation->getParent()->getTable(), |
|
229 | + $relation->getQualifiedForeignKeyName(), |
|
230 | + '=', |
|
231 | + $relation->getQualifiedOwnerKeyName() |
|
232 | + ); |
|
233 | 233 | } |
234 | 234 | |
235 | 235 | if ($this->isHasManyDeepRelationWithLeadingBelongsTo($relation)) { |
236 | 236 | $relation->getQuery() |
237 | - ->join( |
|
238 | - $relation->getFarParent()->getTable(), |
|
239 | - $relation->getQualifiedLocalKeyName(), |
|
240 | - '=', |
|
241 | - $relation->getQualifiedFirstKeyName() |
|
242 | - ); |
|
237 | + ->join( |
|
238 | + $relation->getFarParent()->getTable(), |
|
239 | + $relation->getQualifiedLocalKeyName(), |
|
240 | + '=', |
|
241 | + $relation->getQualifiedFirstKeyName() |
|
242 | + ); |
|
243 | 243 | } |
244 | 244 | } |
245 | 245 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function register() |
16 | 16 | { |
17 | - $this->app->bind(Schema::class, function ($app) { |
|
17 | + $this->app->bind(Schema::class, function($app) { |
|
18 | 18 | return Schema::getSchemaBuilder( |
19 | 19 | $app['db']->connection() |
20 | 20 | ); |