@@ -114,11 +114,13 @@ |
||
| 114 | 114 | |
| 115 | 115 | $return = array(); |
| 116 | 116 | foreach ($input as $key => $value) { |
| 117 | - if (strpos($key, $prefix) === 0) |
|
| 118 | - $key = substr($key, mb_strlen($prefix)); |
|
| 117 | + if (strpos($key, $prefix) === 0) { |
|
| 118 | + $key = substr($key, mb_strlen($prefix)); |
|
| 119 | + } |
|
| 119 | 120 | |
| 120 | - if (is_array($value)) |
|
| 121 | - $value = self::getArrayWithRemovedPrefixRecursive($value, $prefix); |
|
| 121 | + if (is_array($value)) { |
|
| 122 | + $value = self::getArrayWithRemovedPrefixRecursive($value, $prefix); |
|
| 123 | + } |
|
| 122 | 124 | |
| 123 | 125 | $return[$key] = $value; |
| 124 | 126 | } |