| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class User |
||
| 12 | { |
||
| 13 | private $http; |
||
| 14 | |||
| 15 | public function __construct(Client $http) |
||
| 16 | { |
||
| 17 | $this->http = $http; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function current(): CurrentUserDto |
||
| 21 | { |
||
| 22 | $data = $this->http->get("/user"); |
||
|
|
|||
| 23 | |||
| 24 | return CurrentUserDto::fromArray($data); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return UserDto[] |
||
| 29 | */ |
||
| 30 | public function workspaceUsers(string $workspaceId): array |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.