@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function setData(?array $data): ?object |
| 114 | 114 | { |
| 115 | - return $this->data = (object)$data; |
|
| 115 | + return $this->data = (object) $data; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |
@@ -284,9 +284,9 @@ discard block |
||
| 284 | 284 | */ |
| 285 | 285 | protected function required(): bool |
| 286 | 286 | { |
| 287 | - $data = (array)$this->data(); |
|
| 287 | + $data = (array) $this->data(); |
|
| 288 | 288 | foreach ($this->required as $field) { |
| 289 | - if (empty($data[$field])) { |
|
| 289 | + if (empty($data[ $field ])) { |
|
| 290 | 290 | return false; |
| 291 | 291 | } |
| 292 | 292 | } |
@@ -298,8 +298,8 @@ discard block |
||
| 298 | 298 | */ |
| 299 | 299 | protected function safe(): ?array |
| 300 | 300 | { |
| 301 | - $safe = (array)$this->data; |
|
| 302 | - unset($safe[$this->primary]); |
|
| 301 | + $safe = (array) $this->data; |
|
| 302 | + unset($safe[ $this->primary ]); |
|
| 303 | 303 | |
| 304 | 304 | return $safe; |
| 305 | 305 | } |