Passed
Push — master ( beabee...313346 )
by Darío
03:23
created
src/Util/ArrayDimension.php 1 patch
Braces   +10 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
                     $again = true;
40 40
                     $new_config[$param . $glue . $key] = $value;
41 41
                 }
42
+            } else {
43
+                            $new_config[$param] = $configure;
42 44
             }
43
-            else
44
-                $new_config[$param] = $configure;
45 45
         }
46 46
 
47 47
         return (!$again) ? $new_config : self::toUnidimensional($new_config, $glue);
@@ -64,15 +64,17 @@  discard block
 block discarded – undo
64 64
 
65 65
         do
66 66
         {
67
-            if (array_key_exists($key, $haystack))
68
-                $haystack = $haystack[$key];
69
-            else
70
-                return $value;
67
+            if (array_key_exists($key, $haystack)) {
68
+                            $haystack = $haystack[$key];
69
+            } else {
70
+                            return $value;
71
+            }
71 72
 
72 73
             $key = count($needle) ? array_shift($needle) : NULL;
73 74
 
74
-            if (is_null($key))
75
-                return $haystack;
75
+            if (is_null($key)) {
76
+                            return $haystack;
77
+            }
76 78
 
77 79
         } while (!is_null($key));
78 80
     }
Please login to merge, or discard this patch.