Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
25 | class DetectionDeserializer { |
||
26 | |||
27 | /** @var FileOperationMapper */ |
||
28 | protected $mapper; |
||
29 | |||
30 | /** |
||
31 | * @param FileOperationMapper $mapper |
||
32 | */ |
||
33 | public function __construct( |
||
34 | FileOperationMapper $mapper |
||
35 | ) { |
||
36 | $this->mapper = $mapper; |
||
37 | } |
||
38 | |||
39 | public function deserialize($json) { |
||
46 | } |
||
47 | } |
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.