original_string: protected function validateTitleFile()
      {
          $field = 'title';
          $value = $this->getSubmitted($field);
  
          if (isset($value) && mb_strlen($value) > 255) {
              $this->setErrorLengthRange($field, $this->translation->text('Title'), 0, 255);
              return false;
          }
  
          return true;
      }
code: protected function validateTitleFile()
      {
          $field = 'title';
          $value = $this->getSubmitted($field);
  
          if (isset($value) && mb_strlen($value) > 255) {
              $this->setErrorLengthRange($field, $this->translation->text('Title'), 0, 255);
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateTitleFile ( ) { $ field = 'title' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( isset ( $ value ) && mb_strlen ( $ value ) > 255 ) { $ this -> setErrorLengthRange ( $ field , $ this -> translation -> text ( 'Title' ) , 0 , 255 ) ; return false ; } return true ; }
docstring: Validates a title field
  @return boolean
docstring_tokens: Validates a title field