| 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-sitemap'); |
||
| 17 | $this->sitemapFilePath = ROOT . '/sitemap.xml'; |
||
| 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: