original_string: public function createProvider()
      {
          $graphApiVersion = 'v2.12';
  
          if(!empty($this->providerInfos->config['graphApiVersion']))
          {
              $graphApiVersion = $this->providerInfos->config['graphApiVersion'];
          }
  
          $config = [
              'clientId' => $this->providerInfos->clientId,
              'clientSecret' => $this->providerInfos->clientSecret,
              'redirectUri' => $this->getRedirectUri(),
              'graphApiVersion' => $graphApiVersion
          ];
  
          return new \League\OAuth2\Client\Provider\Facebook($config);
      }
code: public function createProvider()
      {
          $graphApiVersion = 'v2.12';
  
          if(!empty($this->providerInfos->config['graphApiVersion']))
          {
              $graphApiVersion = $this->providerInfos->config['graphApiVersion'];
          }
  
          $config = [
              'clientId' => $this->providerInfos->clientId,
              'clientSecret' => $this->providerInfos->clientSecret,
              'redirectUri' => $this->getRedirectUri(),
              'graphApiVersion' => $graphApiVersion
          ];
  
          return new \League\OAuth2\Client\Provider\Facebook($config);
      }
code_tokens: public function createProvider ( ) { $ graphApiVersion = 'v2.12' ; if ( ! empty ( $ this -> providerInfos -> config [ 'graphApiVersion' ] ) ) { $ graphApiVersion = $ this -> providerInfos -> config [ 'graphApiVersion' ] ; } $ config = [ 'clientId' => $ this -> providerInfos -> clientId , 'clientSecret' => $ this -> providerInfos -> clientSecret , 'redirectUri' => $ this -> getRedirectUri ( ) , 'graphApiVersion' => $ graphApiVersion ] ; return new \ League \ OAuth2 \ Client \ Provider \ Facebook ( $ config ) ; }
docstring: Create Facebook Provider
  
  @return League\OAuth2\Client\Provider\Facebook
docstring_tokens: Create Facebook Provider