@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $query->join( |
36 | 36 | $throughParent->getTable(), |
37 | - function (JoinClause $join) use ($joins) { |
|
37 | + function(JoinClause $join) use ($joins) { |
|
38 | 38 | foreach ($joins as [$first, $second]) { |
39 | 39 | $join->on($first, '=', $second); |
40 | 40 | } |
@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | ); |
43 | 43 | |
44 | 44 | if ($this->throughParentInstanceSoftDeletes($throughParent)) { |
45 | - $column= $throughParent->getQualifiedDeletedAtColumn(); |
|
45 | + $column = $throughParent->getQualifiedDeletedAtColumn(); |
|
46 | 46 | |
47 | - $query->withGlobalScope(__CLASS__ . ":$column", function (Builder $query) use ($column) { |
|
47 | + $query->withGlobalScope(__CLASS__.":$column", function(Builder $query) use ($column) { |
|
48 | 48 | $query->whereNull($column); |
49 | 49 | }); |
50 | 50 | } |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | |
194 | 194 | $this->query->addSelect($columns); |
195 | 195 | |
196 | - return tap($this->query->paginate($perPage, $columns, $pageName, $page), function (Paginator $paginator) { |
|
196 | + return tap($this->query->paginate($perPage, $columns, $pageName, $page), function(Paginator $paginator) { |
|
197 | 197 | $this->hydrateIntermediateRelations($paginator->items()); |
198 | 198 | }); |
199 | 199 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | $this->query->addSelect($columns); |
218 | 218 | |
219 | - return tap($this->query->simplePaginate($perPage, $columns, $pageName, $page), function (Paginator $paginator) { |
|
219 | + return tap($this->query->simplePaginate($perPage, $columns, $pageName, $page), function(Paginator $paginator) { |
|
220 | 220 | $this->hydrateIntermediateRelations($paginator->items()); |
221 | 221 | }); |
222 | 222 | } |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | |
240 | 240 | $this->query->addSelect($columns); |
241 | 241 | |
242 | - return tap($this->query->cursorPaginate($perPage, $columns, $cursorName, $cursor), function (CursorPaginator $paginator) { |
|
242 | + return tap($this->query->cursorPaginate($perPage, $columns, $cursorName, $cursor), function(CursorPaginator $paginator) { |
|
243 | 243 | $this->hydrateIntermediateRelations($paginator->items()); |
244 | 244 | }); |
245 | 245 | } |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | */ |
274 | 274 | public function chunk($count, callable $callback) |
275 | 275 | { |
276 | - return $this->prepareQueryBuilder()->chunk($count, function (Collection $results) use ($callback) { |
|
276 | + return $this->prepareQueryBuilder()->chunk($count, function(Collection $results) use ($callback) { |
|
277 | 277 | $this->hydrateIntermediateRelations($results->all()); |
278 | 278 | |
279 | 279 | return $callback($results); |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | ); |
305 | 305 | } |
306 | 306 | |
307 | - $table = $throughParent->getTable() . ' as ' . $this->getRelationCountHash(); |
|
307 | + $table = $throughParent->getTable().' as '.$this->getRelationCountHash(); |
|
308 | 308 | |
309 | 309 | $throughParent->setTable($table); |
310 | 310 | |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | } |
370 | 370 | |
371 | 371 | foreach ($columns as $column) { |
372 | - $this->query->withoutGlobalScope(__CLASS__ . ":$column"); |
|
372 | + $this->query->withoutGlobalScope(__CLASS__.":$column"); |
|
373 | 373 | } |
374 | 374 | |
375 | 375 | return $this; |