Total Complexity | 6 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class ShopifyAdminUser implements UserInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $username; |
||
13 | |||
14 | /** |
||
15 | * @var string[] |
||
16 | */ |
||
17 | private $roles = []; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $authToken; |
||
23 | |||
24 | /** |
||
25 | * @param string $username |
||
26 | * @param string[] $roles |
||
27 | * @param string|null $authToken |
||
28 | */ |
||
29 | public function __construct($username, array $roles, $authToken = null) |
||
30 | { |
||
31 | $this->username = $username; |
||
32 | $this->roles = $roles; |
||
33 | $this->authToken = $authToken; |
||
34 | } |
||
35 | |||
36 | public function getRoles() |
||
37 | { |
||
38 | return $this->roles; |
||
39 | } |
||
40 | |||
41 | public function getPassword() |
||
42 | { |
||
43 | return $this->authToken; |
||
44 | } |
||
45 | |||
46 | public function getSalt() |
||
47 | { |
||
48 | return null; |
||
49 | } |
||
50 | |||
51 | public function getUsername() |
||
54 | } |
||
55 | |||
56 | public function eraseCredentials() |
||
59 | } |
||
60 | } |
||
61 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths