Completed
Push — master ( b15a35...48e5a7 )
by Jonas
03:02
created
src/HasRelationships.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected function hasOneOrManyDeepThroughParents(array $through)
94 94
     {
95
-        return array_map(function ($class) {
95
+        return array_map(function($class) {
96 96
             $segments = preg_split('/\s+as\s+/i', $class);
97 97
 
98 98
             $instance = Str::contains($segments[0], '\\')
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     {
120 120
         foreach (array_merge([$this], $throughParents) as $i => $instance) {
121 121
             /** @var \Illuminate\Database\Eloquent\Model $instance */
122
-            if (! isset($foreignKeys[$i])) {
122
+            if (!isset($foreignKeys[$i])) {
123 123
                 if ($instance instanceof Pivot) {
124 124
                     $foreignKeys[$i] = ($throughParents[$i] ?? $related)->getKeyName();
125 125
                 } else {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     {
144 144
         foreach (array_merge([$this], $throughParents) as $i => $instance) {
145 145
             /** @var \Illuminate\Database\Eloquent\Model $instance */
146
-            if (! isset($localKeys[$i])) {
146
+            if (!isset($localKeys[$i])) {
147 147
                 if ($instance instanceof Pivot) {
148 148
                     $localKeys[$i] = ($throughParents[$i] ?? $related)->getForeignKey();
149 149
                 } else {
Please login to merge, or discard this patch.