Code Duplication    Length = 15-15 lines in 2 locations

src/WebHemi/Middleware/Security/AclMiddleware.php 1 location

@@ 65-79 (lines=15) @@
62
     * @param ResourceStorage          $resourceStorage
63
     * @param UserMetaStorage          $userMetaStorage
64
     */
65
    public function __construct(
66
        AuthAdapterInterface $authAdapter,
67
        AclAdapterInterface $aclAdapter,
68
        EnvironmentManager $environmentManager,
69
        ApplicationStorage $applicationStorage,
70
        ResourceStorage $resourceStorage,
71
        UserMetaStorage $userMetaStorage
72
    ) {
73
        $this->authAdapter = $authAdapter;
74
        $this->aclAdapter = $aclAdapter;
75
        $this->environmentManager = $environmentManager;
76
        $this->applicationStorage = $applicationStorage;
77
        $this->resourceStorage = $resourceStorage;
78
        $this->userMetaStorage = $userMetaStorage;
79
    }
80
81
    /**
82
     * A middleware is a callable. It can do whatever is appropriate with the Request and Response objects.

src/WebHemi/Renderer/Helper/IsAllowedHelper.php 1 location

@@ 88-102 (lines=15) @@
85
     * @param ResourceStorage $resourceStorage
86
     * @param ApplicationStorage $applicationStorage
87
     */
88
    public function __construct(
89
        ConfigInterface $configuration,
90
        EnvironmentManager $environmentManager,
91
        AclAdapterInterface $aclAdapter,
92
        AuthAdapterInterface $authAdapter,
93
        ResourceStorage $resourceStorage,
94
        ApplicationStorage $applicationStorage
95
    ) {
96
        $this->configuration = $configuration;
97
        $this->environmentManager = $environmentManager;
98
        $this->aclAdapter = $aclAdapter;
99
        $this->authAdapter = $authAdapter;
100
        $this->resourceStorage = $resourceStorage;
101
        $this->applicationStorage = $applicationStorage;
102
    }
103
104
    /**
105
     * A renderer helper should be called with its name.