mimmi20/mezzio-generic-authorization

View on GitHub

Showing 1 of 1 total issue

Method __invoke has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __invoke(ContainerInterface $container): AuthorizationMiddleware
    {
        if (!$container->has(AuthorizationInterface::class)) {
            throw new InvalidConfigException(
                sprintf(
Severity: Minor
Found in src/AuthorizationMiddlewareFactory.php - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language