]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
CS 3176/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 1 Jun 2017 20:58:38 +0000 (22:58 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 1 Jun 2017 20:58:38 +0000 (22:58 +0200)
src/Wallabag/CoreBundle/Helper/DownloadImages.php

index f7c26a38b43cd36328032b5e4fe30c7926bcd831..54e23a052684bc87c3508fd2dbc632d15294c891 100644 (file)
@@ -54,7 +54,7 @@ class DownloadImages
         $crawler = new Crawler($html);
         $result = $crawler
             ->filterXpath('//img')
-            ->extract(array('src'));
+            ->extract(['src']);
 
         $relativePath = $this->getRelativePath($entryId);
 
@@ -66,8 +66,7 @@ class DownloadImages
                 continue;
             }
 
-            // if image contains "&"" and we can't find it in the html
-            // it might be because it's encoded as &amp;
+            // if image contains "&" and we can't find it in the html it might be because it's encoded as &amp;
             if (false !== stripos($image, '&') && false === stripos($html, $image)) {
                 $image = str_replace('&', '&amp;', $image);
             }