]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix some Scrutinizer issues
authorJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 30 May 2017 09:39:15 +0000 (11:39 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 30 May 2017 09:39:15 +0000 (11:39 +0200)
src/Wallabag/CoreBundle/Entity/Entry.php
src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php
src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php

index 08a67c34b1f00275b1f61b3cf5bed3b734800560..29ca9febc85b71e89b5e0f8e62a0c9d28c2711d4 100644 (file)
@@ -550,7 +550,7 @@ class Entry
     }
 
     /**
-     * @return ArrayCollection<Tag>
+     * @return array<Tag>
      */
     public function getTags()
     {
@@ -685,7 +685,7 @@ class Entry
     }
 
     /**
-     * @return int
+     * @return string
      */
     public function getHttpStatus()
     {
@@ -693,7 +693,7 @@ class Entry
     }
 
     /**
-     * @param int $httpStatus
+     * @param string $httpStatus
      *
      * @return Entry
      */
index c712bb26e2de7c66f487132da00e63e8c718d463..15aa0317cc7fe8ff93378633eeb02403f3dea72f 100644 (file)
@@ -38,13 +38,7 @@ class GrabySiteConfigBuilder implements SiteConfigBuilder
     }
 
     /**
-     * Builds the SiteConfig for a host.
-     *
-     * @param string $host The "www." prefix is ignored
-     *
-     * @return SiteConfig
-     *
-     * @throws OutOfRangeException If there is no config for $host
+     * {@inheritdoc}
      */
     public function buildForHost($host)
     {
index add27db2b4ea0741a06fe1a70dc2ee928a307ca9..509d0dec9c2b70b53b7da3e5822462cd17354af7 100644 (file)
@@ -15,6 +15,7 @@ class RuleBasedTagger
     private $rulerz;
     private $tagRepository;
     private $entryRepository;
+    private $logger;
 
     public function __construct(RulerZ $rulerz, TagRepository $tagRepository, EntryRepository $entryRepository, LoggerInterface $logger)
     {