original_string: public function getRedirectUri()
      {
          // Force `addTrailingSlashesToUrls` to `false` while we generate the redirectUri
          $addTrailingSlashesToUrls = \Craft\craft()->config->get('addTrailingSlashesToUrls');
          \Craft\craft()->config->set('addTrailingSlashesToUrls', false);
  
          $redirectUri = \Craft\UrlHelper::getActionUrl('oauth/connect');
  
          // Set `addTrailingSlashesToUrls` back to its original value
          \Craft\craft()->config->set('addTrailingSlashesToUrls', $addTrailingSlashesToUrls);
  
          // We don't want the CP trigger showing in the action URL.
          $redirectUri =  str_replace(\Craft\craft()->config->get('cpTrigger').'/', '', $redirectUri);
  
          OauthPlugin::log('Redirect URI: '. $redirectUri, LogLevel::Info);
  
          return $redirectUri;
      }
code: public function getRedirectUri()
      {
          // Force `addTrailingSlashesToUrls` to `false` while we generate the redirectUri
          $addTrailingSlashesToUrls = \Craft\craft()->config->get('addTrailingSlashesToUrls');
          \Craft\craft()->config->set('addTrailingSlashesToUrls', false);
  
          $redirectUri = \Craft\UrlHelper::getActionUrl('oauth/connect');
  
          // Set `addTrailingSlashesToUrls` back to its original value
          \Craft\craft()->config->set('addTrailingSlashesToUrls', $addTrailingSlashesToUrls);
  
          // We don't want the CP trigger showing in the action URL.
          $redirectUri =  str_replace(\Craft\craft()->config->get('cpTrigger').'/', '', $redirectUri);
  
          OauthPlugin::log('Redirect URI: '. $redirectUri, LogLevel::Info);
  
          return $redirectUri;
      }
code_tokens: public function getRedirectUri ( ) { // Force `addTrailingSlashesToUrls` to `false` while we generate the redirectUri $ addTrailingSlashesToUrls = \ Craft \ craft ( ) -> config -> get ( 'addTrailingSlashesToUrls' ) ; \ Craft \ craft ( ) -> config -> set ( 'addTrailingSlashesToUrls' , false ) ; $ redirectUri = \ Craft \ UrlHelper :: getActionUrl ( 'oauth/connect' ) ; // Set `addTrailingSlashesToUrls` back to its original value \ Craft \ craft ( ) -> config -> set ( 'addTrailingSlashesToUrls' , $ addTrailingSlashesToUrls ) ; // We don't want the CP trigger showing in the action URL. $ redirectUri = str_replace ( \ Craft \ craft ( ) -> config -> get ( 'cpTrigger' ) . '/' , '' , $ redirectUri ) ; OauthPlugin :: log ( 'Redirect URI: ' . $ redirectUri , LogLevel :: Info ) ; return $ redirectUri ; }
docstring: Returns the redirect URI
  
  @return array|string
docstring_tokens: Returns the redirect URI