Completed
Push — sfclone ( 1caea8...12454c )
by
unknown
46s
created
src/SWP/Bundle/CoreBundle/Migrations/2021/01/Version20210112135542.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                         }
136 136
                     } catch (\Exception $e) {
137 137
                         ++$totalArticlesProcessed;
138
-                        error_log('Error processing article ' . $result['id'] . ': ' . $e->getMessage());
138
+                        error_log('Error processing article '.$result['id'].': '.$e->getMessage());
139 139
                         continue;
140 140
                     }
141 141
                 }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             $entityManager->flush();
146 146
             $entityManager->clear();
147 147
         } catch (\Exception $e) {
148
-            error_log('postUp error: ' . $e->getMessage());
148
+            error_log('postUp error: '.$e->getMessage());
149 149
             throw $e;
150 150
         }
151 151
     }
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
         }
164 164
 
165 165
         // If unserialize failed, try to fix and retry
166
-        $callback = function ($matches) {
166
+        $callback = function($matches) {
167 167
             $matches[2] = trim(preg_replace('/\s\s+/', ' ', $matches[2]));
168
-            return 's:' . mb_strlen($matches[2]) . ':"' . $matches[2] . '";';
168
+            return 's:'.mb_strlen($matches[2]).':"'.$matches[2].'";';
169 169
         };
170 170
 
171 171
         $data = preg_replace_callback('!s:(\d+):"(.*?)";!s', $callback, $data);
Please login to merge, or discard this patch.