@@ -146,7 +146,7 @@ discard block |
||
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 |
||
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); |