Passed
Push — main ( b8c738...984178 )
by BRUNO
02:22
created
src/ModelAbstract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function __get($name)
37 37
     {
38
-        return $this->{$name} ?? ($this->dataModelArray[$name]?? "");
38
+        return $this->{$name} ?? ($this->dataModelArray[$name] ?? "");
39 39
     }
40 40
 
41 41
     /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function __set($key, $value): void
47 47
     {
48
-        if (property_exists($this, $key)){
48
+        if (property_exists($this, $key)) {
49 49
             $this->{$key} = $value;
50 50
         }
51 51
         $this->dataModelArray[$key] = $value;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     function __isset($key) {
59 59
 
60 60
         $result = isset($this->dataModelArray[$key]);
61
-        if (property_exists($this, $key)){
61
+        if (property_exists($this, $key)) {
62 62
             $result = isset($this->{$key});
63 63
         }
64 64
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         foreach ($params as $key => $item) {
82 82
             $this->dataModelArray[$key] = $item;
83
-            if (property_exists($this, $key)){
83
+            if (property_exists($this, $key)) {
84 84
                 $this->{$key} = $item;
85 85
             }
86 86
         }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         }
137 137
 
138 138
         return $classname . ' {' . implode(', ', array_map(
139
-                function ($p_0) use ($data) {
139
+                function($p_0) use ($data) {
140 140
                     $p_0->setAccessible(true);
141 141
 
142 142
                     return $p_0->getName() . ': ' . $p_0->getValue($data);
Please login to merge, or discard this patch.