Completed
Push — master ( 7258d4...a441d7 )
by Simonas
65:43
created
Service/Export/ExportManager.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(),
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,8 +224,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.