@@ -203,7 +203,7 @@ discard block  | 
                                                    ||
| 203 | 203 | $record = $record instanceof Model ? $record : $this->findModelInstance($record);  | 
                                                        
| 204 | 204 |          $data = (array) $request->input('data'); | 
                                                        
| 205 | 205 | |
| 206 | - $record->update([($foreignKey ?: $relation . '_id') => $data['id']]);  | 
                                                        |
| 206 | + $record->update([($foreignKey ?: $relation.'_id') => $data['id']]);  | 
                                                        |
| 207 | 207 | |
| 208 | 208 | return new JsonApiResponse();  | 
                                                        
| 209 | 209 | }  | 
                                                        
@@ -270,7 +270,7 @@ discard block  | 
                                                    ||
| 270 | 270 | protected function getRequestParameters($request)  | 
                                                        
| 271 | 271 |      { | 
                                                        
| 272 | 272 | return [  | 
                                                        
| 273 | - 'fields' => $this->getRequestQuerySet($request, 'fields.' . $this->getModelType()),  | 
                                                        |
| 273 | + 'fields' => $this->getRequestQuerySet($request, 'fields.'.$this->getModelType()),  | 
                                                        |
| 274 | 274 | 'include' => $this->getRequestQuerySet($request, 'include'),  | 
                                                        
| 275 | 275 | 'sort' => $this->getRequestQuerySet($request, 'sort'),  | 
                                                        
| 276 | 276 |              'filter' => (array) $request->input('filter'), | 
                                                        
@@ -351,7 +351,7 @@ discard block  | 
                                                    ||
| 351 | 351 | */  | 
                                                        
| 352 | 352 | protected function transformCollection($records, array $fields = [])  | 
                                                        
| 353 | 353 |      { | 
                                                        
| 354 | -        $data = $records->map(function ($record) use ($fields) { | 
                                                        |
| 354 | +        $data = $records->map(function($record) use ($fields) { | 
                                                        |
| 355 | 355 | return $this->transformRecord($record, $fields)['data'];  | 
                                                        
| 356 | 356 | });  | 
                                                        
| 357 | 357 | |
@@ -368,7 +368,7 @@ discard block  | 
                                                    ||
| 368 | 368 | */  | 
                                                        
| 369 | 369 | protected function transformCollectionIds($records)  | 
                                                        
| 370 | 370 |      { | 
                                                        
| 371 | -        $data = $records->map(function ($record) { | 
                                                        |
| 371 | +        $data = $records->map(function($record) { | 
                                                        |
| 372 | 372 | return [  | 
                                                        
| 373 | 373 | 'type' => $record->getTable(),  | 
                                                        
| 374 | 374 | 'id' => $record->id,  |