for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Integrations\Connectors\Gitlab;
use Illuminate\Database\Eloquent\Model;
use Log;
use App\Models\User;
use Integrations\Connectors\Connector;
class Gitlab extends Connector
{
public static $ID = 4;
protected function getConnection($token = false)
$url = 'http://gitlab.com/';
if (!empty($token->account->customize_url)) {
$url = $token->account->customize_url;
}
// return \Gitlab\Client::create($url)
// ->authenticate($token->token, \Gitlab\Client::AUTH_URL_TOKEN);
// or for OAuth2 (see https://github.com/m4tthumphrey/php-gitlab-api/blob/master/lib/Gitlab/HttpClient/Plugin/Authentication.php#L47)
return \Gitlab\Client::create($url)
create()
Gitlab\Client
createWithHttpClient()
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.
->authenticate($token->token, \Gitlab\Client::AUTH_OAUTH_TOKEN);
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.