Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | public function getData() |
||
8 | { |
||
9 | $this->numbersNode->setNumberConcurso(0) |
||
10 | ->setDataConcurso(1) |
||
11 | ->setDezenasConcurso([2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]) |
||
12 | ->setArrecadacaoConcurso(22) |
||
13 | ->setTotalGanhadoresConcurso(23) |
||
14 | ->setValorAcumuladoConcurso(35); |
||
15 | |||
16 | parent::loadData($this->numbersNode); |
||
|
|||
17 | |||
18 | return $this->data; |
||
19 | } |
||
20 | } |
||
21 |
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.