@@ -18,8 +18,6 @@ |
||
| 18 | 18 | use ONGR\ElasticsearchBundle\Service\Repository; |
| 19 | 19 | use ONGR\TranslationsBundle\Document\Message; |
| 20 | 20 | use ONGR\TranslationsBundle\Document\Translation; |
| 21 | -use ONGR\TranslationsBundle\Event\Events; |
|
| 22 | -use ONGR\TranslationsBundle\Event\MessageUpdateEvent; |
|
| 23 | 21 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 24 | 22 | use Symfony\Component\HttpFoundation\Request; |
| 25 | 23 | |
@@ -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 | } |
@@ -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 | } |