| Total Complexity | 6 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Picqer\Financials\Exact\Query; |
||
| 3 | class Resultset |
||
| 4 | { |
||
| 5 | protected $connection; |
||
| 6 | |||
| 7 | protected $url; |
||
| 8 | |||
| 9 | protected $class; |
||
| 10 | |||
| 11 | protected $params; |
||
| 12 | |||
| 13 | public function __construct($connection, $url, $class, $params) |
||
| 19 | } |
||
| 20 | |||
| 21 | public function next() |
||
| 27 | } |
||
| 28 | |||
| 29 | public function hasMore() |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function collectionFromResult($result) |
||
| 52 |
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.