Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | private static $allowed_actions = ['index']; |
||
13 | |||
14 | /** |
||
15 | * Check we don't already have a redirect code set |
||
16 | * |
||
17 | * @param HTTPRequest $request |
||
18 | * @return \SilverStripe\Control\HTTPResponse |
||
19 | */ |
||
20 | public function index(HTTPRequest $request) |
||
21 | { |
||
22 | /** @var RedirectorPage $page */ |
||
23 | $page = $this->data(); |
||
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.