original_string: public function createProvider()
      {
          if($this->providerInfos->clientId && $this->providerInfos->clientSecret)
          {
              $config = [
                  'identifier' => $this->providerInfos->clientId,
                  'secret' => $this->providerInfos->clientSecret,
                  'callback_uri' => $this->getRedirectUri(),
              ];
  
              return new \League\OAuth1\Client\Server\Twitter($config);
          }
      }
code: public function createProvider()
      {
          if($this->providerInfos->clientId && $this->providerInfos->clientSecret)
          {
              $config = [
                  'identifier' => $this->providerInfos->clientId,
                  'secret' => $this->providerInfos->clientSecret,
                  'callback_uri' => $this->getRedirectUri(),
              ];
  
              return new \League\OAuth1\Client\Server\Twitter($config);
          }
      }
code_tokens: public function createProvider ( ) { if ( $ this -> providerInfos -> clientId && $ this -> providerInfos -> clientSecret ) { $ config = [ 'identifier' => $ this -> providerInfos -> clientId , 'secret' => $ this -> providerInfos -> clientSecret , 'callback_uri' => $ this -> getRedirectUri ( ) , ] ; return new \ League \ OAuth1 \ Client \ Server \ Twitter ( $ config ) ; } }
docstring: Create Twitter Provider
  
  @return Twitter
docstring_tokens: Create Twitter Provider