Passed
Push — develop ( af5dd1...f13845 )
by nguereza
03:07
created
src/Mapper/DataMapper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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] === '?') {
Please login to merge, or discard this patch.