@@ -61,18 +61,18 @@ |
||
| 61 | 61 | $articleBody = $article->getBody(); |
| 62 | 62 | $crawler = new Crawler($articleBody); |
| 63 | 63 | $crawler->filter('img') |
| 64 | - ->reduce(function (Crawler $node, $i) use ($input) { |
|
| 64 | + ->reduce(function(Crawler $node, $i) use ($input) { |
|
| 65 | 65 | if (false === strpos($node->attr('src'), $input->getArgument('term'))) { |
| 66 | 66 | return false; |
| 67 | 67 | } |
| 68 | 68 | }) |
| 69 | - ->each(static function (Crawler $crawler, $i) use ($input) { |
|
| 69 | + ->each(static function(Crawler $crawler, $i) use ($input) { |
|
| 70 | 70 | foreach ($crawler->closest($input->getArgument('parent')) as $node) { |
| 71 | 71 | $node->parentNode->removeChild($node); |
| 72 | 72 | } |
| 73 | 73 | }); |
| 74 | 74 | |
| 75 | - $newContent = $crawler->filter('html body')->each(static function (Crawler $crawler) { |
|
| 75 | + $newContent = $crawler->filter('html body')->each(static function(Crawler $crawler) { |
|
| 76 | 76 | return $crawler->html(); |
| 77 | 77 | }); |
| 78 | 78 | |