]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
CS
authorJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 8 Jun 2017 19:56:20 +0000 (21:56 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 8 Jun 2017 19:56:20 +0000 (21:56 +0200)
src/Wallabag/CoreBundle/Helper/ContentProxy.php

index dd9170ad2bb5c1eb4a50c3ecdaead15c5579026e..f752d37e780ade53ff523f826b17cd5db53dbea7 100644 (file)
@@ -19,6 +19,7 @@ class ContentProxy
 {
     protected $graby;
     protected $tagger;
+    protected $validator;
     protected $logger;
     protected $mimeGuesser;
     protected $fetchingErrorMessage;
@@ -127,7 +128,7 @@ class ContentProxy
             isset($content['open_graph']['og_image']) ? $content['open_graph']['og_image'] : ''
         );
 
-        // if content is an image define as a preview too
+        // if content is an image, define it as a preview too
         if (!empty($content['content_type']) && in_array($this->mimeGuesser->guess($content['content_type']), ['jpeg', 'jpg', 'gif', 'png'], true)) {
             $this->validateAndSetPreviewPicture(
                 $entry,