Completed
Push — master ( 872a67...aae9a3 )
by Jonas
03:00
created
src/ConcatenatesRelationships.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
      */
244 244
     protected function getProtectedProperty(Relation $relation, $property)
245 245
     {
246
-        $closure = Closure::bind(function (Relation $relation) use ($property) {
246
+        $closure = Closure::bind(function(Relation $relation) use ($property) {
247 247
             return $relation->$property;
248 248
         }, null, $relation);
249 249
 
Please login to merge, or discard this patch.
src/HasRelationships.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     protected function hasOneOrManyDeepThroughParents(array $through)
93 93
     {
94
-        return array_map(function ($class) {
94
+        return array_map(function($class) {
95 95
             $segments = preg_split('/\s+as\s+/i', $class);
96 96
 
97 97
             $instance = Str::contains($segments[0], '\\')
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     protected function hasOneOrManyDeepForeignKeys(Model $related, array $throughParents, array $foreignKeys)
118 118
     {
119 119
         foreach (array_merge([$this], $throughParents) as $i => $instance) {
120
-            if (! isset($foreignKeys[$i])) {
120
+            if (!isset($foreignKeys[$i])) {
121 121
                 if ($instance instanceof Pivot) {
122 122
                     $foreignKeys[$i] = ($throughParents[$i] ?? $related)->getKeyName();
123 123
                 } else {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     protected function hasOneOrManyDeepLocalKeys(Model $related, array $throughParents, array $localKeys)
141 141
     {
142 142
         foreach (array_merge([$this], $throughParents) as $i => $instance) {
143
-            if (! isset($localKeys[$i])) {
143
+            if (!isset($localKeys[$i])) {
144 144
                 if ($instance instanceof Pivot) {
145 145
                     $localKeys[$i] = ($throughParents[$i] ?? $related)->getForeignKey();
146 146
                 } else {
Please login to merge, or discard this patch.