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