Passed
Push — master ( 7b0a8b...1c1eeb )
by Jonas
02:58
created
src/Relations/BelongsToJson.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         $key = str_replace('->', '.', $this->key);
184 184
 
185 185
         $record = collect($parent->{$this->path})
186
-            ->filter(function ($value) use ($key, $model) {
186
+            ->filter(function($value) use ($key, $model) {
187 187
                 return Arr::get($value, $key) == $model->{$this->ownerKey};
188 188
             })->first();
189 189
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         $keys = $this->getArrayableItems($model->{$this->foreignKey});
204 204
 
205
-        return array_filter($keys, function ($key) {
205
+        return array_filter($keys, function($key) {
206 206
             return $key !== null;
207 207
         });
208 208
     }
Please login to merge, or discard this patch.