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 7 #12

Closed BugBuster1701 closed 8 years ago

BugBuster1701 commented 8 years ago

in src/Hooks.php, line 7

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


namespace BugBuster\RevealJs\Theme;

class Hooks
{
    public function loadLayoutDca($dc)
    {
        $layout = \Database::getInstance()
                           ->prepare('SELECT * FROM tl_layout WHERE id=?')
                           ->execute($dc->id);

Posted from SensioLabsInsight