Completed
Push — master ( 135018...0f0a30 )
by Andrey
04:47
created
src/Relations/HasRelationships.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -514,11 +514,11 @@
 block discarded – undo
514 514
      */
515 515
     protected function guessBelongsToManyRelation()
516 516
     {
517
-        $caller = Arr::first(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), function ($trace) {
518
-            return ! in_array($trace['function'], Model::$manyMethods);
517
+        $caller = Arr::first(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), function($trace) {
518
+            return !in_array($trace['function'], Model::$manyMethods);
519 519
         });
520 520
 
521
-        return ! is_null($caller) ? $caller['function'] : null;
521
+        return !is_null($caller) ? $caller['function'] : null;
522 522
     }
523 523
 
524 524
     /**
Please login to merge, or discard this patch.
src/Relations/Relation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     protected function getKeys(array $models, $key = null)
73 73
     {
74
-        return array_unique(array_values(array_map(function ($value) use ($key) {
74
+        return array_unique(array_values(array_map(function($value) use ($key) {
75 75
             return $key ? ModelAccessor::get($value, $key) : ModelAccessor::get($value, $this->parent->getKeyName());
76 76
         }, $models)));
77 77
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             return $models;
121 121
         }
122 122
 
123
-        return array_combine(array_map(function ($model) {
123
+        return array_combine(array_map(function($model) {
124 124
             return (new $model)->getTable();
125 125
         }, $models), $models);
126 126
     }
Please login to merge, or discard this patch.