| Conditions | 4 |
| Paths | 2 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 38 | public static function validateCredentials(VmwareApiClient $client) |
||
| 39 | { |
||
| 40 | if((array_key_exists("username",$client->credential) && array_key_exists("password",$client->credential)) or array_key_exists("Vmware-Api-Session-Id",$client->credential)) |
||
| 41 | return true; |
||
| 42 | throw new CredentialException("required parameter you should send session-id or username-password for auth api "); |
||
| 43 | } |
||
| 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.