@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | protected function transformAttributes(array $output, array $data): array |
| 111 | 111 | { |
| 112 | 112 | foreach ($data as $key => $value) { |
| 113 | - if (true === $this->strict && ! $this->isMapped($key)) { |
|
| 113 | + if (true === $this->strict && !$this->isMapped($key)) { |
|
| 114 | 114 | continue; |
| 115 | 115 | } |
| 116 | 116 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | /** @var Model $data */ |
| 132 | 132 | $relationships = $data->getRelations(); |
| 133 | 133 | foreach ($relationships as $relationshipName => $relationship) { |
| 134 | - if (true === $this->strict && ! $this->isMapped($relationshipName)) { |
|
| 134 | + if (true === $this->strict && !$this->isMapped($relationshipName)) { |
|
| 135 | 135 | continue; |
| 136 | 136 | } |
| 137 | 137 | |
@@ -71,8 +71,8 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * Remove input fields like _method, _token, etc. |
| 73 | 73 | */ |
| 74 | - $input = array_filter($this->input(), function ($key) { |
|
| 75 | - return ! starts_with($key, '_'); |
|
| 74 | + $input = array_filter($this->input(), function($key) { |
|
| 75 | + return !starts_with($key, '_'); |
|
| 76 | 76 | }, ARRAY_FILTER_USE_KEY); |
| 77 | 77 | |
| 78 | 78 | return $this->getTransformer()->transformInput($input); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | protected function transformValidationOutput($validator): array |
| 154 | 154 | { |
| 155 | 155 | return collect($this->getTransformer()->transformOutputKeys($validator->getMessageBag()->toArray())) |
| 156 | - ->reject(function ($error) { |
|
| 156 | + ->reject(function($error) { |
|
| 157 | 157 | return false === \is_array($error); |
| 158 | 158 | }) |
| 159 | 159 | ->toArray(); |