Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 7 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
13 | View Code Duplication | public function initialize() |
|
14 | { |
||
15 | $this->setAdminEnvironment(); |
||
16 | $this->helper->activeMenu()->setActive('seo-robots'); |
||
17 | $this->robotsFilePath = ROOT . '/robots.txt'; |
||
18 | $this->view->languages_disabled = true; |
||
|
|||
19 | } |
||
20 | |||
50 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: