| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | protected function getConnection($token = false) |
||
| 14 | { |
||
| 15 | $url = 'http://gitlab.com/'; |
||
| 16 | if (!empty($token->account->customize_url)) { |
||
| 17 | $url = $token->account->customize_url; |
||
| 18 | } |
||
| 19 | |||
| 20 | // return \Gitlab\Client::create($url) |
||
| 21 | // ->authenticate($token->token, \Gitlab\Client::AUTH_URL_TOKEN); |
||
| 22 | |||
| 23 | // or for OAuth2 (see https://github.com/m4tthumphrey/php-gitlab-api/blob/master/lib/Gitlab/HttpClient/Plugin/Authentication.php#L47) |
||
| 24 | return \Gitlab\Client::create($url) |
||
|
|
|||
| 25 | ->authenticate($token->token, \Gitlab\Client::AUTH_OAUTH_TOKEN); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.