Passed
Push — master ( 80410a...af341e )
by Jonas
14:05 queued 02:12
created
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 (new BaseCollection($ids))->mapWithKeys(function ($attributes, $id) {
179
+        return (new BaseCollection($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.
src/Relations/HasManyJson.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $parentKeys = $this->getKeys($models, $this->localKey);
55 55
 
56
-        $this->query->where(function (Builder $query) use ($parentKeys) {
56
+        $this->query->where(function(Builder $query) use ($parentKeys) {
57 57
             foreach ($parentKeys as $parentKey) {
58 58
                 if ($this->key) {
59 59
                     $parentKey = $this->parentKeyToArray($parentKey);
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         $key = str_replace('->', '.', $this->key);
216 216
 
217 217
         $record = (new BaseCollection($model->{$this->getPathName()}))
218
-            ->filter(function ($value) use ($key, $parent) {
218
+            ->filter(function($value) use ($key, $parent) {
219 219
                 return Arr::get($value, $key) == $parent->{$this->localKey};
220 220
             })->first();
221 221
 
Please login to merge, or discard this patch.
src/Relations/BelongsToJson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
         $key = str_replace('->', '.', $this->key);
201 201
 
202 202
         $record = (new BaseCollection($parent->{$this->path}))
203
-            ->filter(function ($value) use ($key, $model) {
203
+            ->filter(function($value) use ($key, $model) {
204 204
                 return Arr::get($value, $key) == $model->{$this->ownerKey};
205 205
             })->first();
206 206
 
Please login to merge, or discard this patch.