Passed
Push — master ( 051f35...855459 )
by Jonas
21:20 queued 07:19
created
src/Eloquent/Relations/Traits/IsOfDescendantsRelation.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.