Completed
Push — 2.1 ( 236a62...b86345 )
by Paweł
20s queued 11s
created
src/SWP/Bundle/CoreBundle/Command/RemoveMissingEmbeddedImagesCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
             $articleBody = $article->getBody();
70 70
             $crawler = new Crawler($articleBody);
71 71
             $crawler->filter('img')
72
-                ->reduce(function (Crawler $node, $i) use ($input) {
72
+                ->reduce(function(Crawler $node, $i) use ($input) {
73 73
                     if (false === strpos($node->attr('src'), $input->getArgument('term'))) {
74 74
                         return false;
75 75
                     }
76 76
                 })
77
-                ->each(static function (Crawler $crawler, $i) use ($input) {
77
+                ->each(static function(Crawler $crawler, $i) use ($input) {
78 78
                     $closest = $crawler->closest($input->getArgument('parent'));
79 79
                     if (is_iterable($closest)) {
80 80
                         foreach ($closest as $node) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                     }
84 84
                 });
85 85
 
86
-            $newContent = $crawler->filter('html body')->each(static function (Crawler $crawler) {
86
+            $newContent = $crawler->filter('html body')->each(static function(Crawler $crawler) {
87 87
                 return $crawler->html();
88 88
             });
89 89
 
Please login to merge, or discard this patch.