Contao3-Ninja / contao-reveal-js-theme

POC reactivation reveal.js basic extension for Contao
GNU Lesser General Public License v3.0
0 stars 0 forks source link

[Insight] Unused method, property, variable or parameter - in src/Hooks.php, line 174 #22

Closed BugBuster1701 closed 8 years ago

BugBuster1701 commented 8 years ago

in src/Hooks.php, line 174

This pageRegular argument is declared but never used. You should remove it.

        }

        return $label;
    }

    public function getPageLayout(\PageModel $page, \LayoutModel $layout, \PageRegular $pageRegular)
    {
        unset($page); // argument is never used 
        if ($layout->useRevealJs) 
        {
            Loader::load();

Posted from SensioLabsInsight