Completed
Push — sfclone ( e520cb...254b52 )
by
unknown
46s
created
src/SWP/Bundle/CoreBundle/Migrations/2021/01/Version20210112135542.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $entityManager->clear();
147 147
         } catch (\Exception $e) {
148 148
             // Log error but don't fail migration
149
-            error_log('postUp error: ' . $e->getMessage());
149
+            error_log('postUp error: '.$e->getMessage());
150 150
         }
151 151
     }
152 152
 
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
         }
163 163
 
164 164
         // If unserialize failed, try to fix and retry
165
-        $callback = function ($matches) {
165
+        $callback = function($matches) {
166 166
             $matches[2] = trim(preg_replace('/\s\s+/', ' ', $matches[2]));
167
-            return 's:' . mb_strlen($matches[2]) . ':"' . $matches[2] . '";';
167
+            return 's:'.mb_strlen($matches[2]).':"'.$matches[2].'";';
168 168
         };
169 169
 
170 170
         $data = preg_replace_callback('!s:(\d+):"(.*?)";!s', $callback, $data);
Please login to merge, or discard this patch.