| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 88.89% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | trait FilterTrait |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Get the items with the specified keys. |
||
| 15 | * |
||
| 16 | * @param mixed $keys |
||
| 17 | * @return static |
||
| 18 | */ |
||
| 19 | 1 | public function only($keys) |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Splice a portion of the underlying collection array. |
||
| 30 | * |
||
| 31 | * @param int $offset |
||
| 32 | * @param int|null $length |
||
| 33 | * @param mixed $replacement |
||
| 34 | * @return static |
||
| 35 | */ |
||
| 36 | 1 | public function splice($offset, $length = null, $replacement = []) |
|
| 43 | } |
||
| 44 | } |
This check compares calls to functions or methods with their respective definitions. If the call has more 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.