@@ -281,10 +281,10 @@ discard block |
||
| 281 | 281 | */ |
| 282 | 282 | protected function required(): bool |
| 283 | 283 | { |
| 284 | - $data = (array)$this->data(); |
|
| 284 | + $data = (array) $this->data(); |
|
| 285 | 285 | foreach ($this->required as $field) { |
| 286 | - if (empty($data[$field])) { |
|
| 287 | - if(!is_int($data[$field])){ |
|
| 286 | + if (empty($data[ $field ])) { |
|
| 287 | + if (!is_int($data[ $field ])) { |
|
| 288 | 288 | return false; |
| 289 | 289 | } |
| 290 | 290 | } |
@@ -297,8 +297,8 @@ discard block |
||
| 297 | 297 | */ |
| 298 | 298 | protected function safe(): ?array |
| 299 | 299 | { |
| 300 | - $safe = (array)$this->data; |
|
| 301 | - unset($safe[$this->primary]); |
|
| 300 | + $safe = (array) $this->data; |
|
| 301 | + unset($safe[ $this->primary ]); |
|
| 302 | 302 | return $safe; |
| 303 | 303 | } |
| 304 | 304 | |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | protected function toCamelCase(string $string): string |
| 311 | 311 | { |
| 312 | 312 | $camelCase = str_replace(' ', '', ucwords(str_replace('_', ' ', $string))); |
| 313 | - $camelCase[0] = strtolower($camelCase[0]); |
|
| 313 | + $camelCase[ 0 ] = strtolower($camelCase[ 0 ]); |
|
| 314 | 314 | return $camelCase; |
| 315 | 315 | } |
| 316 | 316 | } |