@@ -112,12 +112,12 @@ discard block |
||
112 | 112 | */ |
113 | 113 | private function flatten($array, $prefix = '') { |
114 | 114 | $result = []; |
115 | - foreach($array as $key=>$value) { |
|
116 | - if(is_array($value)) { |
|
117 | - $result = $result + $this->flatten($value, $prefix . $key . '.'); |
|
115 | + foreach ($array as $key=>$value) { |
|
116 | + if (is_array($value)) { |
|
117 | + $result = $result + $this->flatten($value, $prefix.$key.'.'); |
|
118 | 118 | } |
119 | 119 | else { |
120 | - $result[$prefix . $key] = $value; |
|
120 | + $result[$prefix.$key] = $value; |
|
121 | 121 | } |
122 | 122 | } |
123 | 123 | return $result; |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | foreach ($messages as $key => $message) { |
149 | 149 | if ($message->getStatus() === Message::DIRTY || $force) { |
150 | 150 | $path = sprintf( |
151 | - '%s' . DIRECTORY_SEPARATOR . '%s.%s.%s', |
|
151 | + '%s'.DIRECTORY_SEPARATOR.'%s.%s.%s', |
|
152 | 152 | $translation->getPath(), |
153 | 153 | 'messages', |
154 | 154 | $message->getLocale(), |
@@ -224,8 +224,7 @@ |
||
224 | 224 | foreach($array as $key=>$value) { |
225 | 225 | if(is_array($value)) { |
226 | 226 | $result = $result + $this->flatten($value, $prefix . $key . '.'); |
227 | - } |
|
228 | - else { |
|
227 | + } else { |
|
229 | 228 | $result[$prefix . $key] = $value; |
230 | 229 | } |
231 | 230 | } |