Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
17 | public static function authRequest(VmwareApiClient $client){ |
||
18 | $HttpClient=isset(static::$client) ? self::$client : new Client( |
||
19 | [ |
||
20 | "verify"=>$client->ssl, |
||
21 | "headers"=>[ |
||
22 | "Content-Type"=>"application/x-www-form-urlencoded", |
||
23 | "Accept" => "application/json", |
||
24 | "Authorization"=>"Basic ".self::convertCredentials($client->credential) |
||
25 | ] |
||
26 | ] |
||
27 | ); |
||
28 | $response=$HttpClient->request('GET',$client->getAuthUrl(),[ |
||
|
|||
29 | "query"=>[ |
||
30 | "~method"=>"post" |
||
31 | ] |
||
32 | ]); |
||
33 | return json_decode($response->getBody())->value; |
||
34 | } |
||
48 | } |
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.