@@ -259,7 +259,7 @@ |
||
259 | 259 | } |
260 | 260 | |
261 | 261 | $primaryKey = $this->mapper->getPrimaryKey(); |
262 | - if ($name === (string)$primaryKey) { |
|
262 | + if ($name === (string) $primaryKey) { |
|
263 | 263 | return $this->columns[$name] = $value; |
264 | 264 | } |
265 | 265 |
@@ -67,8 +67,7 @@ discard block |
||
67 | 67 | * Class DataMapper |
68 | 68 | * @package Platine\Orm\Mapper |
69 | 69 | */ |
70 | -class DataMapper implements DataMapperInterface |
|
71 | -{ |
|
70 | +class DataMapper implements DataMapperInterface { |
|
72 | 71 | /** |
73 | 72 | * The raw columns data |
74 | 73 | * @var array<string, mixed> |
@@ -230,8 +229,7 @@ discard block |
||
230 | 229 | /** |
231 | 230 | * {@inheritedoc} |
232 | 231 | */ |
233 | - public function getColumn(string $name) |
|
234 | - { |
|
232 | + public function getColumn(string $name) { |
|
235 | 233 | if ($this->refresh) { |
236 | 234 | $this->hydrate(); |
237 | 235 | } |
@@ -352,8 +350,7 @@ discard block |
||
352 | 350 | /** |
353 | 351 | * {@inheritedoc} |
354 | 352 | */ |
355 | - public function getRelated(string $name, callable $callback = null) |
|
356 | - { |
|
353 | + public function getRelated(string $name, callable $callback = null) { |
|
357 | 354 | if (array_key_exists($name, $this->relations)) { |
358 | 355 | return $this->relations[$name]; |
359 | 356 | } |
@@ -612,8 +609,7 @@ discard block |
||
612 | 609 | * |
613 | 610 | * @return mixed |
614 | 611 | */ |
615 | - protected function castGet($value, string $type) |
|
616 | - { |
|
612 | + protected function castGet($value, string $type) { |
|
617 | 613 | $original = $type; |
618 | 614 | |
619 | 615 | if ($type[0] === '?') { |
@@ -663,8 +659,7 @@ discard block |
||
663 | 659 | * |
664 | 660 | * @return mixed |
665 | 661 | */ |
666 | - protected function castSet($value, string $type) |
|
667 | - { |
|
662 | + protected function castSet($value, string $type) { |
|
668 | 663 | $original = $type; |
669 | 664 | |
670 | 665 | if ($type[0] === '?') { |