original_string: protected function setTitleEditFile()
      {
          if (isset($this->data_file['file_id'])) {
              $title = $this->text('Edit %name', array('%name' => $this->data_file['title']));
          } else {
              $title = $this->text('Add file');
          }
  
          $this->setTitle($title);
      }
code: protected function setTitleEditFile()
      {
          if (isset($this->data_file['file_id'])) {
              $title = $this->text('Edit %name', array('%name' => $this->data_file['title']));
          } else {
              $title = $this->text('Add file');
          }
  
          $this->setTitle($title);
      }
code_tokens: protected function setTitleEditFile ( ) { if ( isset ( $ this -> data_file [ 'file_id' ] ) ) { $ title = $ this -> text ( 'Edit %name' , array ( '%name' => $ this -> data_file [ 'title' ] ) ) ; } else { $ title = $ this -> text ( 'Add file' ) ; } $ this -> setTitle ( $ title ) ; }
docstring: Sets titles on the edit file page
docstring_tokens: Sets titles on the edit file page