Passed
Push — main ( ed5796...0cf401 )
by BRUNO
01:49
created
src/ModelAbstract.php 2 patches
Spacing   +4 added lines, -4 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->modelFromMap($params);
15 15
     }
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
         $re_2 = new ReflectionObject($data);
75 75
         $classname = get_class($this);
76 76
         if ($pos = strrpos($classname, '\\')) $classname = substr($classname, $pos + 1);
77
-        return $classname .' {' . implode(', ', array_map(
77
+        return $classname . ' {' . implode(', ', array_map(
78 78
                 function($p_0) use ($data)
79 79
                 {
80 80
                     $p_0->setAccessible(true);
81
-                    return $p_0->getName() .': '. $p_0->getValue($data);
82
-                }, $re_2->getProperties())) .'}';
81
+                    return $p_0->getName() . ': ' . $p_0->getValue($data);
82
+                }, $re_2->getProperties())) . '}';
83 83
 
84 84
     }
85 85
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,8 +10,9 @@  discard block
 block discarded – undo
10 10
      * @param array|null $params
11 11
      */
12 12
     public function __construct(array $params = null){
13
-        if (!empty($params))
14
-            $this->modelFromMap($params);
13
+        if (!empty($params)) {
14
+                    $this->modelFromMap($params);
15
+        }
15 16
     }
16 17
 
17 18
     /**
@@ -73,7 +74,9 @@  discard block
 block discarded – undo
73 74
         $data = (object) $this->toMap();
74 75
         $re_2 = new ReflectionObject($data);
75 76
         $classname = get_class($this);
76
-        if ($pos = strrpos($classname, '\\')) $classname = substr($classname, $pos + 1);
77
+        if ($pos = strrpos($classname, '\\')) {
78
+            $classname = substr($classname, $pos + 1);
79
+        }
77 80
         return $classname .' {' . implode(', ', array_map(
78 81
                 function($p_0) use ($data)
79 82
                 {
Please login to merge, or discard this patch.