AclLoader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace App\Tenant\Loader;
4
5
use Ds\Component\Acl\Service\AccessService;
0 ignored issues
show
Bug introduced by
The type Ds\Component\Acl\Service\AccessService was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Ds\Component\Acl\Service\PermissionService;
0 ignored issues
show
Bug introduced by
The type Ds\Component\Acl\Service\PermissionService was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use Ds\Component\Acl\Tenant\Loader\Acl;
0 ignored issues
show
Bug introduced by
The type Ds\Component\Acl\Tenant\Loader\Acl was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Ds\Component\Tenant\Loader\Loader;
0 ignored issues
show
Bug introduced by
The type Ds\Component\Tenant\Loader\Loader was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
/**
11
 * Class AclLoader
12
 */
13
final class AclLoader implements Loader
14
{
15
    use Acl;
16
17
    /**
18
     * Constructor
19
     *
20
     * @param \Ds\Component\Acl\Service\AccessService $accessService
21
     * @param \Ds\Component\Acl\Service\PermissionService $permissionService
22
     */
23
    public function __construct(AccessService $accessService, PermissionService $permissionService)
24
    {
25
        $this->accessService = $accessService;
0 ignored issues
show
Bug Best Practice introduced by
The property accessService does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
26
        $this->permissionService = $permissionService;
0 ignored issues
show
Bug Best Practice introduced by
The property permissionService does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
27
        $this->path = '/srv/api/config/tenant/loader/acl.yaml';
0 ignored issues
show
Bug Best Practice introduced by
The property path does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
28
    }
29
}
30