Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1.216 |
Changes | 0 |
1 | <?php |
||
53 | 2 | public function getIdentity(AccessTokenInterface $accessToken) |
|
54 | { |
||
55 | 2 | $response = $this->request('GET', 'user/profile', [], $accessToken); |
|
56 | |||
57 | $hydrator = new ArrayHydrator([ |
||
58 | 'user_id' => 'id', |
||
59 | 'name' => 'firstname', |
||
60 | ]); |
||
61 | |||
62 | return $hydrator->hydrate(new User(), $response); |
||
63 | } |
||
65 |
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