brokencube/circuit

View on GitHub
src/ControllerParams.php

Summary

Maintainability
A
35 mins
Test Coverage

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

    public function __construct($route, $class, $method, $args, Container $container)
Severity: Minor
Found in src/ControllerParams.php - About 35 mins to fix

    Possibly zero references to use statement for classlike/namespace Delegate (\Circuit\Interfaces\Delegate)
    Open

    use Circuit\Interfaces\Delegate;
    Severity: Minor
    Found in src/ControllerParams.php by phan

    Possibly zero references to use statement for classlike/namespace JsonResponse (\Symfony\Component\HttpFoundation\JsonResponse)
    Open

    use Symfony\Component\HttpFoundation\JsonResponse;
    Severity: Minor
    Found in src/ControllerParams.php by phan

    Possibly zero references to use statement for classlike/namespace Middleware (\Circuit\Interfaces\Middleware)
    Open

    use Circuit\Interfaces\Middleware;
    Severity: Minor
    Found in src/ControllerParams.php by phan

    Possibly zero references to use statement for classlike/namespace Request (\Symfony\Component\HttpFoundation\Request)
    Open

    use Symfony\Component\HttpFoundation\Request;
    Severity: Minor
    Found in src/ControllerParams.php by phan

    Assigning \Psr\Container\ContainerInterface to property but \Circuit\ControllerParams->container is \Circuit\Psr\Container\ContainerInterface
    Open

            $this->container = $container;
    Severity: Minor
    Found in src/ControllerParams.php by phan

    Possibly zero references to use statement for classlike/namespace Router (\Circuit\Router)
    Open

    use Circuit\Router;
    Severity: Minor
    Found in src/ControllerParams.php by phan

    Possibly zero references to use statement for classlike/namespace ParameterDereferencer (\Circuit\Interfaces\ParameterDereferencer)
    Open

    use Circuit\Interfaces\ParameterDereferencer;
    Severity: Minor
    Found in src/ControllerParams.php by phan

    Possibly zero references to use statement for classlike/namespace Response (\Symfony\Component\HttpFoundation\Response)
    Open

    use Symfony\Component\HttpFoundation\Response;
    Severity: Minor
    Found in src/ControllerParams.php by phan

    Whitespace found at end of line
    Open

        public $className; 
    Severity: Minor
    Found in src/ControllerParams.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status