Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
63 | public function getIdentity(AccessTokenInterface $accessToken) |
||
64 | { |
||
65 | $this->consumerToken = $accessToken; |
||
66 | |||
67 | $parameters = [ |
||
68 | 'key' => $this->consumer->getKey(), |
||
69 | 'token' => $accessToken->getToken() |
||
70 | ]; |
||
71 | |||
72 | $result = $this->request( |
||
73 | 'GET', |
||
74 | 'members/me', |
||
75 | $parameters |
||
76 | ); |
||
77 | |||
78 | $hydrator = new ArrayHydrator([ |
||
79 | 'avatarUrl' => 'pictureURL', |
||
80 | 'fullName' => 'fullname', |
||
81 | ]); |
||
82 | |||
83 | return $hydrator->hydrate(new User(), $result); |
||
84 | } |
||
86 |
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