original_string: public function errorArray()
      {
          $messages = [];
          foreach ($this->failures as $key => $rule) {
              foreach ($rule->getFailures() as $fail) {
                  $messages[] = $fail;
              }
          }
          return $messages;
      }
code: public function errorArray()
      {
          $messages = [];
          foreach ($this->failures as $key => $rule) {
              foreach ($rule->getFailures() as $fail) {
                  $messages[] = $fail;
              }
          }
          return $messages;
      }
code_tokens: public function errorArray ( ) { $ messages = [ ] ; foreach ( $ this -> failures as $ key => $ rule ) { foreach ( $ rule -> getFailures ( ) as $ fail ) { $ messages [ ] = $ fail ; } } return $ messages ; }
docstring: Flatten out the error messages into a single level array
  
  @return array Error set without keys
docstring_tokens: Flatten out the error messages into a single level array