original_string: public function getDefaultMessage()
      {
          switch ($this->type) {
              case self::WIDTH:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMWIDTH',
                          'Image width must be %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMHEIGHT',
                          'Image height must be %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::WIDTH_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMWIDTHHEIGHT',
                          'Image width must be %s pixels and Image height must be %s pixels'
                      ),
                      $this->val1,
                      $this->val2
                  );
                  break;
              case self::RATIO:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMRATIO',
                          'Image aspect ratio (shape) must be %s:%s'
                      ),
                      $this->val1,
                      $this->val2
                  );
                  break;
              case self::MIN_WIDTH:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMINWIDTH',
                          'Image width must be greater than or equal to %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::MIN_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMINHEIGHT',
                          'Image height must be greater than or equal to %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::MIN_WIDTH_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMINWIDTHHEIGHT',
                          'Image width must be greater than or equal to %s pixels and Image height must be greater than or equal to %s pixels'
                      ),
                      $this->val1,
                      $this->val2
                  );
                  break;
              case self::MAX_WIDTH:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMAXWIDTH',
                          'Image width must be less than or equal to %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::MAX_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMAXHEIGHT',
                          'Image height must be less than or equal to %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::MAX_WIDTH_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMAXWIDTHHEIGHT',
                          'Image width must be less than or equal to %s pixels and Image height must be less than or equal to %s pixels'
                      ),
                      $this->val1,
                      $this->val2
                  );
                  break;
          }
      }
code: public function getDefaultMessage()
      {
          switch ($this->type) {
              case self::WIDTH:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMWIDTH',
                          'Image width must be %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMHEIGHT',
                          'Image height must be %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::WIDTH_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMWIDTHHEIGHT',
                          'Image width must be %s pixels and Image height must be %s pixels'
                      ),
                      $this->val1,
                      $this->val2
                  );
                  break;
              case self::RATIO:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMRATIO',
                          'Image aspect ratio (shape) must be %s:%s'
                      ),
                      $this->val1,
                      $this->val2
                  );
                  break;
              case self::MIN_WIDTH:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMINWIDTH',
                          'Image width must be greater than or equal to %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::MIN_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMINHEIGHT',
                          'Image height must be greater than or equal to %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::MIN_WIDTH_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMINWIDTHHEIGHT',
                          'Image width must be greater than or equal to %s pixels and Image height must be greater than or equal to %s pixels'
                      ),
                      $this->val1,
                      $this->val2
                  );
                  break;
              case self::MAX_WIDTH:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMAXWIDTH',
                          'Image width must be less than or equal to %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::MAX_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMAXHEIGHT',
                          'Image height must be less than or equal to %s pixels'
                      ),
                      $this->val1
                  );
                  break;
              case self::MAX_WIDTH_HEIGHT:
                  return sprintf(
                      _t(
                          'ZenValidator.DIMMAXWIDTHHEIGHT',
                          'Image width must be less than or equal to %s pixels and Image height must be less than or equal to %s pixels'
                      ),
                      $this->val1,
                      $this->val2
                  );
                  break;
          }
      }
code_tokens: public function getDefaultMessage ( ) { switch ( $ this -> type ) { case self :: WIDTH : return sprintf ( _t ( 'ZenValidator.DIMWIDTH' , 'Image width must be %s pixels' ) , $ this -> val1 ) ; break ; case self :: HEIGHT : return sprintf ( _t ( 'ZenValidator.DIMHEIGHT' , 'Image height must be %s pixels' ) , $ this -> val1 ) ; break ; case self :: WIDTH_HEIGHT : return sprintf ( _t ( 'ZenValidator.DIMWIDTHHEIGHT' , 'Image width must be %s pixels and Image height must be %s pixels' ) , $ this -> val1 , $ this -> val2 ) ; break ; case self :: RATIO : return sprintf ( _t ( 'ZenValidator.DIMRATIO' , 'Image aspect ratio (shape) must be %s:%s' ) , $ this -> val1 , $ this -> val2 ) ; break ; case self :: MIN_WIDTH : return sprintf ( _t ( 'ZenValidator.DIMMINWIDTH' , 'Image width must be greater than or equal to %s pixels' ) , $ this -> val1 ) ; break ; case self :: MIN_HEIGHT : return sprintf ( _t ( 'ZenValidator.DIMMINHEIGHT' , 'Image height must be greater than or equal to %s pixels' ) , $ this -> val1 ) ; break ; case self :: MIN_WIDTH_HEIGHT : return sprintf ( _t ( 'ZenValidator.DIMMINWIDTHHEIGHT' , 'Image width must be greater than or equal to %s pixels and Image height must be greater than or equal to %s pixels' ) , $ this -> val1 , $ this -> val2 ) ; break ; case self :: MAX_WIDTH : return sprintf ( _t ( 'ZenValidator.DIMMAXWIDTH' , 'Image width must be less than or equal to %s pixels' ) , $ this -> val1 ) ; break ; case self :: MAX_HEIGHT : return sprintf ( _t ( 'ZenValidator.DIMMAXHEIGHT' , 'Image height must be less than or equal to %s pixels' ) , $ this -> val1 ) ; break ; case self :: MAX_WIDTH_HEIGHT : return sprintf ( _t ( 'ZenValidator.DIMMAXWIDTHHEIGHT' , 'Image width must be less than or equal to %s pixels and Image height must be less than or equal to %s pixels' ) , $ this -> val1 , $ this -> val2 ) ; break ; } }
docstring: Gets the default message for the validator
  @return string the validation message
docstring_tokens: Gets the default message for the validator