Passed
Push — main ( ed5796...0cf401 )
by BRUNO
01:49
created
src/ModelAbstract.php 1 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.