Passed
Push — main ( 1869a0...49d152 )
by BRUNO
07:00
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->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
 }
83 83
\ No newline at end of file
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->fromMapToModel($params);
13
+        if (!empty($params)) {
14
+                    $this->fromMapToModel($params);
15
+        }
15 16
     }
16 17
 
17 18
     /**
@@ -70,7 +71,9 @@  discard block
 block discarded – undo
70 71
         $data = (object) $this->toMap();
71 72
         $re_2 = new ReflectionObject($data);
72 73
         $classname = get_class($this);
73
-        if ($pos = strrpos($classname, '\\')) $classname = substr($classname, $pos + 1);
74
+        if ($pos = strrpos($classname, '\\')) {
75
+            $classname = substr($classname, $pos + 1);
76
+        }
74 77
         return $classname .' {' . implode(', ', array_map(
75 78
                 function($p_0) use ($data)
76 79
                 {
Please login to merge, or discard this patch.