Passed
Push — master ( 845222...4033a6 )
by Luiz Kim
05:39 queued 03:17
created
src/Entity/DeviceConfig.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         return $this;
103 103
     }
104 104
 
105
-    public function getConfigs(bool $decode = false): string|array
105
+    public function getConfigs(bool $decode = false): string | array
106 106
     {
107 107
         // Ensure we're decoding a string, even if it was temporarily an array internally
108 108
         $configString = is_array($this->configs) ? json_encode($this->configs) : $this->configs;
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         return $this->setConfigs($configs);
117 117
     }
118 118
 
119
-    public function setConfigs(string|array|object $configs): self
119
+    public function setConfigs(string | array | object $configs): self
120 120
     {
121 121
         if (is_string($configs))
122 122
             $configs = json_decode($configs, true);
Please login to merge, or discard this 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.