Conditions | 1 |
Paths | 1 |
Total Lines | 4 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
37 | 3 | protected function parentConnect(array $config) |
|
38 | { |
||
39 | 3 | return parent::connect($config); |
|
1 ignored issue
–
show
|
|||
40 | } |
||
41 | } |
||
42 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.