| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1.216 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 61 | 2 | public function getIdentity(AccessTokenInterface $accessToken) |
|
| 62 | { |
||
| 63 | 2 | $response = $this->request('GET', 'user', [], $accessToken); |
|
| 64 | |||
| 65 | $hydrator = new ArrayHydrator([ |
||
| 66 | 'user_id' => 'id', |
||
| 67 | 'name' => 'fullname', |
||
| 68 | 'avatar_url' => 'pictureURL' |
||
| 69 | ]); |
||
| 70 | |||
| 71 | return $hydrator->hydrate(new User(), $response); |
||
| 72 | } |
||
| 74 |
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