@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | if (static::$constraints) { |
| 56 | 56 | $column = $this->andSelf ? $this->parent->getLocalKeyName() : $this->parent->getParentKeyName(); |
| 57 | 57 | |
| 58 | - $constraint = function (Builder $query) use ($column) { |
|
| 58 | + $constraint = function(Builder $query) use ($column) { |
|
| 59 | 59 | $query->where( |
| 60 | 60 | $column, |
| 61 | 61 | '=', |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | $keys = $this->getKeys($models, $localKey); |
| 83 | 83 | |
| 84 | - $constraint = function (Builder $query) use ($keys, $localKey, $models, $whereIn) { |
|
| 84 | + $constraint = function(Builder $query) use ($keys, $localKey, $models, $whereIn) { |
|
| 85 | 85 | $query->$whereIn($localKey, $keys); |
| 86 | 86 | }; |
| 87 | 87 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | ? $this->parent->getLocalKeyName() |
| 182 | 182 | : $this->parent->getParentKeyName(); |
| 183 | 183 | |
| 184 | - $constraint = function (Builder $query) use ($first, $table) { |
|
| 184 | + $constraint = function(Builder $query) use ($first, $table) { |
|
| 185 | 185 | $query->whereColumn( |
| 186 | 186 | $table.'.'.$first, |
| 187 | 187 | '=', |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | |
| 217 | 217 | $query->withRecursiveExpression($name, $expression); |
| 218 | 218 | |
| 219 | - $query->withGlobalScope('HasManyOfDescendants', function (Builder $query) use ($name) { |
|
| 219 | + $query->withGlobalScope('HasManyOfDescendants', function(Builder $query) use ($name) { |
|
| 220 | 220 | $query->whereIn( |
| 221 | 221 | $this->foreignKey, |
| 222 | 222 | (new $this->parent())->setTable($name) |