Completed
Push — sfclone ( 12454c...d17ad5 )
by
unknown
39s
created
src/SWP/Bundle/CoreBundle/Migrations/2021/01/Version20210112135542.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,9 +132,9 @@
 block discarded – undo
132 132
         }
133 133
 
134 134
         // If unserialize failed, try to fix and retry
135
-        $callback = function ($matches) {
135
+        $callback = function($matches) {
136 136
             $matches[2] = trim(preg_replace('/\s\s+/', ' ', $matches[2]));
137
-            return 's:' . mb_strlen($matches[2]) . ':"' . $matches[2] . '";';
137
+            return 's:'.mb_strlen($matches[2]).':"'.$matches[2].'";';
138 138
         };
139 139
 
140 140
         $data = preg_replace_callback('!s:(\d+):"(.*?)";!s', $callback, $data);
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $totalArticlesProcessed = 0;
76 76
         $isProcessing = true;
77 77
 
78
-       // while ($totalArticlesProcessed < $totalArticles) {
78
+        // while ($totalArticlesProcessed < $totalArticles) {
79 79
             $sql = "SELECT id, extra FROM swp_article";
80 80
             $query = $entityManager->getConnection()->prepare($sql);
81 81
             $query->execute();
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 $entityManager->clear();
117 117
                 break;
118 118
             }
119
-       // }
119
+        // }
120 120
     }
121 121
 
122 122
     private function unserializeExtraField(?string $data)
Please login to merge, or discard this patch.