Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
67 | public function getIdentity(AccessTokenInterface $accessToken) |
||
68 | { |
||
69 | $query = [ |
||
70 | 'steamids' => $accessToken->getUserId() |
||
71 | ]; |
||
72 | |||
73 | $response = $this->request('GET', 'ISteamUser/GetPlayerSummaries/v0002/', $query, $accessToken); |
||
74 | |||
75 | $hydrator = new ArrayHydrator([ |
||
76 | 'steamid' => 'id', |
||
77 | 'personaname' => 'username', |
||
78 | 'realname' => 'fullname' |
||
79 | ]); |
||
80 | |||
81 | return $hydrator->hydrate(new User(), $response['response']['players'][0]); |
||
82 | } |
||
84 |
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