Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function index(HTTPRequest $request) |
||
21 | { |
||
22 | /** @var RedirectorPage $page */ |
||
23 | $page = $this->data(); |
||
24 | if (!$this->getResponse()->isFinished() && $link = $page->redirectionLink()) { |
||
25 | $this->redirect($link, 301); |
||
26 | } |
||
27 | return parent::handleAction($request, 'handleIndex'); |
||
|
|||
28 | } |
||
29 | |||
40 |
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.