original_string: protected function validateMetaTitle()
      {
          $field = 'meta_title';
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return true;
          }
  
          if (mb_strlen($value) > 60) {
              $this->setErrorLengthRange($field, $this->translation->text('Meta title'), 0, 60);
              return false;
          }
  
          return true;
      }
code: protected function validateMetaTitle()
      {
          $field = 'meta_title';
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return true;
          }
  
          if (mb_strlen($value) > 60) {
              $this->setErrorLengthRange($field, $this->translation->text('Meta title'), 0, 60);
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateMetaTitle ( ) { $ field = 'meta_title' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( ! isset ( $ value ) ) { $ this -> unsetSubmitted ( $ field ) ; return true ; } if ( mb_strlen ( $ value ) > 60 ) { $ this -> setErrorLengthRange ( $ field , $ this -> translation -> text ( 'Meta title' ) , 0 , 60 ) ; return false ; } return true ; }
docstring: Validates a meta title
  @return boolean
docstring_tokens: Validates a meta title