original_string: public function addSnippet(SS_HTTPRequest $request)  {
          if($request->getVar('Type')=='SnippetFolder') {
              return $this->redirect(Controller::join_links($this->Link('addFolder'), '?FolderID='.str_replace('folder-', '', $request->getVar('ID'))));
          }else {
              return $this->redirect(Controller::join_links($this->Link('add'), '?LanguageID='.str_replace('language-', '', $request->getVar('ID'))));
          }
      }
code: public function addSnippet(SS_HTTPRequest $request)  {
          if($request->getVar('Type')=='SnippetFolder') {
              return $this->redirect(Controller::join_links($this->Link('addFolder'), '?FolderID='.str_replace('folder-', '', $request->getVar('ID'))));
          }else {
              return $this->redirect(Controller::join_links($this->Link('add'), '?LanguageID='.str_replace('language-', '', $request->getVar('ID'))));
          }
      }
code_tokens: public function addSnippet ( SS_HTTPRequest $ request ) { if ( $ request -> getVar ( 'Type' ) == 'SnippetFolder' ) { return $ this -> redirect ( Controller :: join_links ( $ this -> Link ( 'addFolder' ) , '?FolderID=' . str_replace ( 'folder-' , '' , $ request -> getVar ( 'ID' ) ) ) ) ; } else { return $ this -> redirect ( Controller :: join_links ( $ this -> Link ( 'add' ) , '?LanguageID=' . str_replace ( 'language-' , '' , $ request -> getVar ( 'ID' ) ) ) ) ; } }
docstring: Handles requests to add a snippet or folder to a language
  @param {SS_HTTPRequest} $request HTTP Request
docstring_tokens: Handles requests to add a snippet or folder to a language