We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class ArticleCategoryRepository extends BaseRepository |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var ArticleCategory|Builder|Collection |
||
| 17 | */ |
||
| 18 | protected $model; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * PageRepository constructor. |
||
| 22 | * |
||
| 23 | * @param Menu $model |
||
| 24 | */ |
||
| 25 | public function __construct(ArticleCategory $model) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return \Illuminate\Database\Eloquent\Collection|mixed|static[] |
||
| 32 | */ |
||
| 33 | public function whereStatusActive() |
||
| 38 |
This check compares calls to functions or methods with their respective definitions. If the call has less arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.