Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Role implements CloudApi |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * Client constructor. |
||
20 | * |
||
21 | * @param ConnectorInterface $connector |
||
|
|||
22 | */ |
||
23 | public function __construct(ClientInterface $client) |
||
24 | { |
||
25 | $this->client = $client; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Update the permissions associated with a role. |
||
30 | * |
||
31 | * @param string $roleUuid |
||
32 | * @param array $permissions |
||
33 | * @return OperationResponse |
||
34 | */ |
||
35 | public function updateRole($roleUuid, array $permissions) |
||
36 | { |
||
37 | $options = [ |
||
38 | 'form_params' => [ |
||
39 | 'permissions' => $permissions, |
||
40 | ], |
||
41 | ]; |
||
42 | |||
43 | return new OperationResponse( |
||
44 | $this->client->request('put', "/roles/${roleUuid}", $options) |
||
45 | ); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Delete a role. |
||
50 | * |
||
51 | * @param string $roleUuid |
||
52 | * @return OperationResponse |
||
53 | */ |
||
54 | public function deleteRole($roleUuid) |
||
57 | } |
||
58 | } |
||
59 |
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