@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | public function addConstraints() |
35 | 35 | { |
36 | 36 | if (static::$constraints) { |
37 | - $constraint = function (Builder $query) { |
|
37 | + $constraint = function(Builder $query) { |
|
38 | 38 | $this->addExpressionWhereConstraints($query); |
39 | 39 | }; |
40 | 40 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function addEagerConstraints(array $models) |
60 | 60 | { |
61 | - $constraint = function (Builder $query) use ($models) { |
|
61 | + $constraint = function(Builder $query) use ($models) { |
|
62 | 62 | $this->addEagerExpressionWhereConstraints($query, $models); |
63 | 63 | }; |
64 | 64 | |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | |
246 | 246 | $query->withRecursiveExpression($name, $expression); |
247 | 247 | |
248 | - $query->withGlobalScope(get_class($this), function (Builder $query) use ($name) { |
|
248 | + $query->withGlobalScope(get_class($this), function(Builder $query) use ($name) { |
|
249 | 249 | $query->whereIn( |
250 | 250 | $this->getExpressionForeignKeyName(), |
251 | 251 | (new $this->parent())->setTable($name) |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | $alias = null; |
375 | 375 | } |
376 | 376 | |
377 | - $constraint = function (Builder $query) use ($table) { |
|
377 | + $constraint = function(Builder $query) use ($table) { |
|
378 | 378 | $this->addExistenceExpressionWhereConstraints($query, $table); |
379 | 379 | }; |
380 | 380 |