Passed
Push — master ( 845222...4033a6 )
by Luiz Kim
05:39 queued 03:17
created
src/Entity/DeviceConfig.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,8 +118,9 @@
 block discarded – undo
118 118
 
119 119
     public function setConfigs(string|array|object $configs): self
120 120
     {
121
-        if (is_string($configs))
122
-            $configs = json_decode($configs, true);
121
+        if (is_string($configs)) {
122
+                    $configs = json_decode($configs, true);
123
+        }
123 124
 
124 125
         $this->configs = json_encode($configs);
125 126
         return $this;
Please login to merge, or discard this patch.