Passed
Push — main ( 9a2714...604d6f )
by
unknown
02:00
created
src/ModelAbstract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @param array|null $params
11 11
      */
12
-    public function __construct(array $params = null){
12
+    public function __construct(array $params = null) {
13 13
         if (!empty($params))
14 14
             $this->fromMapToModel($params);
15 15
     }
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
         $re_2 = new ReflectionObject($data);
72 72
         $classname = get_class($this);
73 73
         if ($pos = strrpos($classname, '\\')) $classname = substr($classname, $pos + 1);
74
-        return $classname .' {' . implode(', ', array_map(
74
+        return $classname . ' {' . implode(', ', array_map(
75 75
                 function($p_0) use ($data)
76 76
                 {
77 77
                     $p_0->setAccessible(true);
78
-                    return $p_0->getName() .': '. $p_0->getValue($data);
79
-                }, $re_2->getProperties())) .'}';
78
+                    return $p_0->getName() . ': ' . $p_0->getValue($data);
79
+                }, $re_2->getProperties())) . '}';
80 80
 
81 81
     }
82 82
 
@@ -90,6 +90,6 @@  discard block
 block discarded – undo
90 90
 
91 91
     
92 92
     public function __set($attribute, $value): void {
93
-        $this->{$attribute} = $value ; 
93
+        $this->{$attribute} = $value; 
94 94
     }
95 95
 }
96 96
\ No newline at end of file
Please login to merge, or discard this patch.