original_string: public function normalize( $rule ) {
  		$rule = ucwords( str_replace( [ '-', '_' ], ' ', $rule ) );
  		$rule = lcfirst( str_replace( ' ', '', $rule ) );
  
  		switch ( $rule ) {
  			case 'creditcard':
  				return 'creditCard';
  			case 'int':
  				return 'integer';
  			case 'bool':
  				return 'boolean';
  			default:
  				return $rule;
  		}
  	}
code: public function normalize( $rule ) {
  		$rule = ucwords( str_replace( [ '-', '_' ], ' ', $rule ) );
  		$rule = lcfirst( str_replace( ' ', '', $rule ) );
  
  		switch ( $rule ) {
  			case 'creditcard':
  				return 'creditCard';
  			case 'int':
  				return 'integer';
  			case 'bool':
  				return 'boolean';
  			default:
  				return $rule;
  		}
  	}
code_tokens: public function normalize ( $ rule ) { $ rule = ucwords ( str_replace ( [ '-' , '_' ] , ' ' , $ rule ) ) ; $ rule = lcfirst ( str_replace ( ' ' , '' , $ rule ) ) ; switch ( $ rule ) { case 'creditcard' : return 'creditCard' ; case 'int' : return 'integer' ; case 'bool' : return 'boolean' ; default : return $ rule ; } }
docstring: Normalize a rule name.
  
  @param  string $rule Original rule name.
  @return string
docstring_tokens: Normalize a rule name .