@@ -272,9 +272,9 @@ discard block |
||
| 272 | 272 | */ |
| 273 | 273 | protected function required(): bool |
| 274 | 274 | { |
| 275 | - $data = (array)$this->data(); |
|
| 275 | + $data = (array) $this->data(); |
|
| 276 | 276 | foreach ($this->required as $field) { |
| 277 | - if (empty($data[$field])) { |
|
| 277 | + if (empty($data[ $field ])) { |
|
| 278 | 278 | return false; |
| 279 | 279 | } |
| 280 | 280 | } |
@@ -286,8 +286,8 @@ discard block |
||
| 286 | 286 | */ |
| 287 | 287 | protected function safe(): ?array |
| 288 | 288 | { |
| 289 | - $safe = (array)$this->data; |
|
| 290 | - unset($safe[$this->primary]); |
|
| 289 | + $safe = (array) $this->data; |
|
| 290 | + unset($safe[ $this->primary ]); |
|
| 291 | 291 | return $safe; |
| 292 | 292 | } |
| 293 | 293 | } |