Completed
Push — 2.4.2-sftest ( 11762f...d1ea44 )
by
unknown
35s
created
src/SWP/Bundle/CoreBundle/Migrations/2021/01/Version20210112135542.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
                         $entityManager->persist($extra);
105 105
                     }
106 106
                 } catch (\Throwable $e) {
107
-                    echo ">>>> E: " . $e->getMessage() . "\n";
107
+                    echo ">>>> E: ".$e->getMessage()."\n";
108 108
                 }
109 109
 
110 110
                 ++$totalArticlesProcessed;
111
-                echo ">>>> Total Articles processed: " . $totalArticlesProcessed . "\n";
112
-                echo ">>>> Mod: " . $totalArticlesProcessed % $batchSize . "\n";
111
+                echo ">>>> Total Articles processed: ".$totalArticlesProcessed."\n";
112
+                echo ">>>> Mod: ".$totalArticlesProcessed % $batchSize."\n";
113 113
                 if (0 == ($totalArticlesProcessed % $batchSize)) {
114 114
                     $entityManager->flush();
115 115
                     $entityManager->clear();
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             }
118 118
 
119 119
             
120
-            echo ">>  Articles processed: " . $totalArticlesProcessed .  " Total Articles: " . $totalArticles .  "\n";
120
+            echo ">>  Articles processed: ".$totalArticlesProcessed." Total Articles: ".$totalArticles."\n";
121 121
             // flush remaining entities in queue and break loop
122 122
             if ($totalArticlesProcessed === $totalArticles) {
123 123
                 $entityManager->flush();
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
         return $unserializedData;
136 136
     }
137 137
 
138
-    $callback = function ($matches) {
138
+    $callback = function($matches) {
139 139
         $matches[2] = trim(preg_replace('/\s\s+/', ' ', $matches[2]));
140
-        return 's:' . mb_strlen($matches[2]) . ':"' . $matches[2] . '";';
140
+        return 's:'.mb_strlen($matches[2]).':"'.$matches[2].'";';
141 141
     };
142 142
 
143 143
     // Check if $data is not null
Please login to merge, or discard this patch.