Passed
Push — master ( a738f1...b5a19b )
by Jonas
06:56
created
src/Relations/BelongsToJson.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $key = str_replace('->', '.', $this->key);
182 182
 
183 183
         $record = collect($parent->{$this->path})
184
-            ->filter(function ($value) use ($key, $model) {
184
+            ->filter(function($value) use ($key, $model) {
185 185
                 return Arr::get($value, $key) == $model->{$this->ownerKey};
186 186
             })->first();
187 187
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
         $keys = (array) $model->{$this->foreignKey};
202 202
 
203
-        return array_filter($keys, function ($key) {
203
+        return array_filter($keys, function($key) {
204 204
             return $key !== null;
205 205
         });
206 206
     }
Please login to merge, or discard this patch.
src/Relations/InteractsWithPivotRecords.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
      */
177 177
     protected function formatIds(array $ids)
178 178
     {
179
-        return collect($ids)->mapWithKeys(function ($attributes, $id) {
179
+        return collect($ids)->mapWithKeys(function($attributes, $id) {
180 180
             if (!is_array($attributes)) {
181 181
                 [$id, $attributes] = [$attributes, []];
182 182
             }
Please login to merge, or discard this patch.