@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | |
559 | 559 | $relatedPivotKey = $relatedPivotKey ?: $instance->getForeignKey(); |
560 | 560 | |
561 | - if (! $table) { |
|
561 | + if (!$table) { |
|
562 | 562 | $words = preg_split('/(_)/u', $name, -1, PREG_SPLIT_DELIM_CAPTURE); |
563 | 563 | |
564 | 564 | $lastWord = array_pop($words); |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | |
607 | 607 | $relatedPivotKey = $relatedPivotKey ?: $instance->getForeignKey(); |
608 | 608 | |
609 | - if (! $table) { |
|
609 | + if (!$table) { |
|
610 | 610 | $words = preg_split('/(_)/u', $name, -1, PREG_SPLIT_DELIM_CAPTURE); |
611 | 611 | |
612 | 612 | $lastWord = array_pop($words); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | public function addConstraints() |
34 | 34 | { |
35 | 35 | if (static::$constraints) { |
36 | - $constraint = function (Builder $query) { |
|
36 | + $constraint = function(Builder $query) { |
|
37 | 37 | $this->addExpressionWhereConstraints($query); |
38 | 38 | }; |
39 | 39 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function addEagerConstraints(array $models) |
59 | 59 | { |
60 | - $constraint = function (Builder $query) use ($models) { |
|
60 | + $constraint = function(Builder $query) use ($models) { |
|
61 | 61 | $this->addEagerExpressionWhereConstraints($query, $models); |
62 | 62 | }; |
63 | 63 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | |
205 | 205 | $query->withRecursiveExpression($name, $expression); |
206 | 206 | |
207 | - $query->withGlobalScope(get_class(), function (Builder $query) use ($name) { |
|
207 | + $query->withGlobalScope(get_class(), function(Builder $query) use ($name) { |
|
208 | 208 | $query->whereIn( |
209 | 209 | $this->getExpressionForeignKeyName(), |
210 | 210 | (new $this->parent())->setTable($name) |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | $alias = null; |
320 | 320 | } |
321 | 321 | |
322 | - $constraint = function (Builder $query) use ($table) { |
|
322 | + $constraint = function(Builder $query) use ($table) { |
|
323 | 323 | $this->addExistenceExpressionWhereConstraints($query, $table); |
324 | 324 | }; |
325 | 325 |