@@ -339,13 +339,13 @@ discard block |
||
339 | 339 | |
340 | 340 | if ($this->saveMethod === 'update') { |
341 | 341 | $value = $this->data->$primary; |
342 | - $data = (array) $this->data; |
|
342 | + $data = (array)$this->data; |
|
343 | 343 | |
344 | 344 | unset($data[$primary]); |
345 | 345 | |
346 | 346 | $this->update($data, "{$primary} = :{$primary}", "{$primary}={$value}"); |
347 | 347 | } else { |
348 | - $value = $this->create((array) $this->data); |
|
348 | + $value = $this->create((array)$this->data); |
|
349 | 349 | } |
350 | 350 | |
351 | 351 | if (!$value) { |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | */ |
382 | 382 | private function required(): bool |
383 | 383 | { |
384 | - $data = (array) $this->data; |
|
384 | + $data = (array)$this->data; |
|
385 | 385 | |
386 | 386 | foreach ($this->required as $field) { |
387 | 387 | if ( |