original_string: protected function getClient(array $config): Client
      {
          $client = Client::create($config['url']);
  
          $client->authenticate(
              $config['token'],
              array_get($config, 'method', Client::AUTH_URL_TOKEN),
              array_get($config, 'sudo', null)
          );
  
          return $client;
      }
code: protected function getClient(array $config): Client
      {
          $client = Client::create($config['url']);
  
          $client->authenticate(
              $config['token'],
              array_get($config, 'method', Client::AUTH_URL_TOKEN),
              array_get($config, 'sudo', null)
          );
  
          return $client;
      }
code_tokens: protected function getClient ( array $ config ) : Client { $ client = Client :: create ( $ config [ 'url' ] ) ; $ client -> authenticate ( $ config [ 'token' ] , array_get ( $ config , 'method' , Client :: AUTH_URL_TOKEN ) , array_get ( $ config , 'sudo' , null ) ) ; return $ client ; }
docstring: Get the main client.
  
  @param array $config
  
  @return \Gitlab\Client
docstring_tokens: Get the main client .