NeroReflex/Gishiki

View on GitHub
src/Core/MVC/Controller/Controller.php

Summary

Maintainability
A
35 mins
Test Coverage

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function __construct(RequestInterface &$controllerRequest, ResponseInterface &$controllerResponse, GenericCollection &$controllerArguments, array &$plugins, Application $app = null)
Severity: Minor
Found in src/Core/MVC/Controller/Controller.php - About 35 mins to fix

    Missing class import via use statement (line '103', column '44').
    Open

                    $reflectedMiddleware = new \ReflectionClass($pluginValue);

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '157', column '42').
    Open

                    $reflectedFunction = new \ReflectionMethod($plugin, $name);

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    There are no issues that match your filters.

    Category
    Status