original_string: protected function validateDescriptionCategory()
      {
          $fields = array(
              'description_1' => $this->translation->text('First description'),
              'description_2' => $this->translation->text('Second description')
          );
  
          $errors = 0;
          foreach ($fields as $field => $label) {
              $value = $this->getSubmitted($field);
              if (isset($value) && mb_strlen($value) > 65535) {
                  $errors++;
                  $this->setErrorLengthRange($field, $label, 0, 65535);
              }
          }
  
          return empty($errors);
      }
code: protected function validateDescriptionCategory()
      {
          $fields = array(
              'description_1' => $this->translation->text('First description'),
              'description_2' => $this->translation->text('Second description')
          );
  
          $errors = 0;
          foreach ($fields as $field => $label) {
              $value = $this->getSubmitted($field);
              if (isset($value) && mb_strlen($value) > 65535) {
                  $errors++;
                  $this->setErrorLengthRange($field, $label, 0, 65535);
              }
          }
  
          return empty($errors);
      }
code_tokens: protected function validateDescriptionCategory ( ) { $ fields = array ( 'description_1' => $ this -> translation -> text ( 'First description' ) , 'description_2' => $ this -> translation -> text ( 'Second description' ) ) ; $ errors = 0 ; foreach ( $ fields as $ field => $ label ) { $ value = $ this -> getSubmitted ( $ field ) ; if ( isset ( $ value ) && mb_strlen ( $ value ) > 65535 ) { $ errors ++ ; $ this -> setErrorLengthRange ( $ field , $ label , 0 , 65535 ) ; } } return empty ( $ errors ) ; }
docstring: Validates first and second description
  @return boolean
docstring_tokens: Validates first and second description