Completed
Push — fixes ( 6830e4...798510 )
by Tony
03:34
created
app/Settings.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -242,11 +242,13 @@
 block discarded – undo
242 242
                     if (is_string($k) && !str_contains($k, '.') && DbConfig::exactKey($key)->exists() && DbConfig::key($key)->count() == 1) {
243 243
                         // check that we aren't trying to set an array onto an existing value only setting
244 244
                         throw new \Exception("Attempting to set array value to existing non-array value at the key '".$key."'");
245
-                    } else {
245
+                    }
246
+                    else {
246 247
                         // we are not at the leaf yet, add this chunk to the key and recurse
247 248
                         $this->set($key.'.'.$k, $v);
248 249
                     }
249
-                } else {
250
+                }
251
+                else {
250 252
                     // a leaf, recurse one last time
251 253
                     $this->set($k, $v);
252 254
                 }
Please login to merge, or discard this patch.