Fix some Scrutinizer issues

This commit is contained in:
Jeremy Benoist 2017-05-30 11:39:15 +02:00
parent d181bd7285
commit 5fe65baee5
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
3 changed files with 5 additions and 10 deletions

View File

@ -550,7 +550,7 @@ class Entry
} }
/** /**
* @return ArrayCollection<Tag> * @return array<Tag>
*/ */
public function getTags() public function getTags()
{ {
@ -685,7 +685,7 @@ class Entry
} }
/** /**
* @return int * @return string
*/ */
public function getHttpStatus() public function getHttpStatus()
{ {
@ -693,7 +693,7 @@ class Entry
} }
/** /**
* @param int $httpStatus * @param string $httpStatus
* *
* @return Entry * @return Entry
*/ */

View File

@ -38,13 +38,7 @@ class GrabySiteConfigBuilder implements SiteConfigBuilder
} }
/** /**
* Builds the SiteConfig for a host. * {@inheritdoc}
*
* @param string $host The "www." prefix is ignored
*
* @return SiteConfig
*
* @throws OutOfRangeException If there is no config for $host
*/ */
public function buildForHost($host) public function buildForHost($host)
{ {

View File

@ -15,6 +15,7 @@ class RuleBasedTagger
private $rulerz; private $rulerz;
private $tagRepository; private $tagRepository;
private $entryRepository; private $entryRepository;
private $logger;
public function __construct(RulerZ $rulerz, TagRepository $tagRepository, EntryRepository $entryRepository, LoggerInterface $logger) public function __construct(RulerZ $rulerz, TagRepository $tagRepository, EntryRepository $entryRepository, LoggerInterface $logger)
{ {