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] Object parameters should be type hinted - in src/Hooks.php, line 122 #21

Closed BugBuster1701 closed 8 years ago

BugBuster1701 commented 8 years ago

in src/Hooks.php, line 122

The parameter dc, which is an object, should be typehinted.

                         ->execute($dc->id);
            }
        }
    }

    public function loadArticleDca($dc)
    {
        $layout  = null;
        $article = \ArticleModel::findByPk($dc->id);
        $page    = \PageModel::findWithDetails($article->pid);

Posted from SensioLabsInsight