Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
24 | { |
||
25 | return parent::regionSingapore(); |
||
26 | } |
||
27 | |||
28 | public static function zoneNa0() |
||
29 | { |
||
30 | return parent::regionNorthAmerica(); |
||
31 | } |
||
32 | |||
33 | public static function qvmZonez0() |
||
34 | { |
||
35 | return parent::qvmRegionZ0(); |
||
36 | } |
||
37 | |||
38 | public static function qvmZonez1() |
||
39 | { |
||
40 | return parent::qvmRegionZ1(); |
||
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.