@@ -102,7 +102,7 @@ discard block |
||
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 |
||
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); |
@@ -118,8 +118,9 @@ |
||
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; |