@@ -42,7 +42,9 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public static function isAssoc(array $arr) |
44 | 44 | { |
45 | - if (array() === $arr) return false; |
|
45 | + if (array() === $arr) { |
|
46 | + return false; |
|
47 | + } |
|
46 | 48 | return array_keys($arr) !== range(0, count($arr) - 1); |
47 | 49 | } |
48 | 50 | |
@@ -144,7 +146,7 @@ discard block |
||
144 | 146 | $defaultValue = null; |
145 | 147 | if(is_array($default)){ |
146 | 148 | $defaultValue = Arr::get($default, $path); |
147 | - }else{ |
|
149 | + } else{ |
|
148 | 150 | $defaultValue = $default; |
149 | 151 | } |
150 | 152 | Arr::set($array, $path, Arr::get($allFlattened, $path, $defaultValue)); |
@@ -179,7 +181,7 @@ discard block |
||
179 | 181 | // Forget path if it is empty |
180 | 182 | if(!Arr::get($settings, $path)){ |
181 | 183 | Arr::forget($settings, $path); |
182 | - }else{ |
|
184 | + } else{ |
|
183 | 185 | return; |
184 | 186 | } |
185 | 187 |