original_string: protected function addFile()
      {
          $this->controlAccess('file_add');
  
          if ($this->file->add($this->getSubmitted())) {
              $this->redirect('admin/content/file', $this->text('File has been added'), 'success');
          }
  
          $this->redirect('', $this->text('File has not been added'), 'warning');
      }
code: protected function addFile()
      {
          $this->controlAccess('file_add');
  
          if ($this->file->add($this->getSubmitted())) {
              $this->redirect('admin/content/file', $this->text('File has been added'), 'success');
          }
  
          $this->redirect('', $this->text('File has not been added'), 'warning');
      }
code_tokens: protected function addFile ( ) { $ this -> controlAccess ( 'file_add' ) ; if ( $ this -> file -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/content/file' , $ this -> text ( 'File has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'File has not been added' ) , 'warning' ) ; }
docstring: Adds a new file
docstring_tokens: Adds a new file