Total Complexity | 6 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | abstract class GeodisManager |
||
12 | { |
||
13 | protected $list = []; |
||
14 | protected $model; |
||
15 | protected $config; |
||
16 | protected $em; |
||
17 | |||
18 | public function __construct(EntityManagerInterface $em) |
||
21 | } |
||
22 | |||
23 | public function setConfig($config) |
||
26 | } |
||
27 | |||
28 | public function init() |
||
34 | } |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return object |
||
39 | */ |
||
40 | public function getModel($name) |
||
53 |
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.