Passed
Push — master ( e6a2b9...551740 )
by Jonas
09:35
created
src/Relations/HasManyJson.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $parentKeys = $this->getKeys($models, $this->localKey);
54 54
 
55
-        $this->query->where(function (Builder $query) use ($parentKeys) {
55
+        $this->query->where(function(Builder $query) use ($parentKeys) {
56 56
             foreach ($parentKeys as $parentKey) {
57 57
                 if ($this->key) {
58 58
                     $parentKey = $this->parentKeyToArray($parentKey);
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         $key = str_replace('->', '.', $this->key);
215 215
 
216 216
         $record = collect($model->{$this->getPathName()})
217
-            ->filter(function ($value) use ($key, $parent) {
217
+            ->filter(function($value) use ($key, $parent) {
218 218
                 return Arr::get($value, $key) == $parent->{$this->localKey};
219 219
             })->first();
220 220
 
Please login to merge, or discard this patch.
src/Relations/InteractsWithPivotRecords.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $key = str_replace('->', '.', $this->key);
98 98
 
99 99
         return collect((array) $this->child->{$this->path})
100
-            ->mapWithKeys(function ($record) use ($key) {
100
+            ->mapWithKeys(function($record) use ($key) {
101 101
                 if (!is_array($record)) {
102 102
                     return [$record => []];
103 103
                 }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     protected function formatIds(array $ids)
160 160
     {
161
-        return collect($ids)->mapWithKeys(function ($attributes, $id) {
161
+        return collect($ids)->mapWithKeys(function($attributes, $id) {
162 162
             if (!is_array($attributes)) {
163 163
                 [$id, $attributes] = [$attributes, []];
164 164
             }
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
@@ -181,7 +181,7 @@
 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
 
Please login to merge, or discard this patch.