src/Sesame/Model/Article.php
Article
has 30 functions (exceeds 20 allowed). Consider refactoring. Wontfix
Wontfix
class Article
{
/**
* @var string
Class "Article" has 30 methods, which is greater than 20 authorized. Split it into smaller classes. Open
Open
class Article
- Read upRead up
- Exclude checks
A class that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor the class into smaller ones which focus on well defined topics.
Assigning string
to property but \Sesame\Model\Article->sellerFeedback
is float
Open
Open
$this->sellerFeedback = $sellerFeedback;
- Exclude checks
Returning type float
but getPriceCurrency()
is declared to return string
Open
Open
return $this->priceCurrency;
- Exclude checks
Returning type float
but getRating()
is declared to return int
Open
Open
return $this->rating;
- Exclude checks
Doc-block of $sellerFeedback
in setSellerFeedback
contains phpdoc param type float
which is incompatible with the param type string
declared in the signature Open
Open
* @param float $sellerFeedback
- Exclude checks
Assigning string
to property but \Sesame\Model\Article->priceCurrency
is float
Open
Open
$this->priceCurrency = $priceCurrency;
- Exclude checks