mimmi20/mezzio-generic-authorization

View on GitHub
src/AuthorizationMiddlewareFactory.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

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

    There are no issues that match your filters.

    Category
    Status