@@ -295,10 +295,10 @@ discard block |
||
| 295 | 295 | */ |
| 296 | 296 | protected function required(): bool |
| 297 | 297 | { |
| 298 | - $data = (array)$this->data(); |
|
| 298 | + $data = (array) $this->data(); |
|
| 299 | 299 | foreach ($this->required as $field) { |
| 300 | - if (empty($data[$field])) { |
|
| 301 | - if (!is_int($data[$field])) { |
|
| 300 | + if (empty($data[ $field ])) { |
|
| 301 | + if (!is_int($data[ $field ])) { |
|
| 302 | 302 | return false; |
| 303 | 303 | } |
| 304 | 304 | } |
@@ -311,8 +311,8 @@ discard block |
||
| 311 | 311 | */ |
| 312 | 312 | protected function safe(): ?array |
| 313 | 313 | { |
| 314 | - $safe = (array)$this->data; |
|
| 315 | - unset($safe[$this->primary]); |
|
| 314 | + $safe = (array) $this->data; |
|
| 315 | + unset($safe[ $this->primary ]); |
|
| 316 | 316 | return $safe; |
| 317 | 317 | } |
| 318 | 318 | |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | protected function toCamelCase(string $string): string |
| 325 | 325 | { |
| 326 | 326 | $camelCase = str_replace(' ', '', ucwords(str_replace('_', ' ', $string))); |
| 327 | - $camelCase[0] = strtolower($camelCase[0]); |
|
| 327 | + $camelCase[ 0 ] = strtolower($camelCase[ 0 ]); |
|
| 328 | 328 | return $camelCase; |
| 329 | 329 | } |
| 330 | 330 | } |