original_string: public function getInvalidRules($field = null)
      {
          return $field ?
              isset($this->invalidRules[$field]) ? $this->invalidRules[$field] : array()
              : $this->invalidRules;
      }
code: public function getInvalidRules($field = null)
      {
          return $field ?
              isset($this->invalidRules[$field]) ? $this->invalidRules[$field] : array()
              : $this->invalidRules;
      }
code_tokens: public function getInvalidRules ( $ field = null ) { return $ field ? isset ( $ this -> invalidRules [ $ field ] ) ? $ this -> invalidRules [ $ field ] : array ( ) : $ this -> invalidRules ; }
docstring: Get invalid rules by field
  
  @param string $field
  @return array
docstring_tokens: Get invalid rules by field