atelierspierrot/mvc-fundamental

View on GitHub
demo/src/Demo/DefaultController.php

Summary

Maintainability
A
1 hr
Test Coverage

Method defaultLayoutAction has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function defaultLayoutAction(TemplateEngineInterface $template_engine, FrontControllerInterface $app)
    {
        $layout     = $template_engine->getDefaultLayout();
        $req        = $app->get('request')->getBaseUrl();
        $content    = $template_engine->renderTemplate(self::$views_dir.'lorem_ipsum_content.php');
Severity: Minor
Found in demo/src/Demo/DefaultController.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status