public function errorArray()
    {
        $messages = [];
        foreach ($this->failures as $key => $rule) {
            foreach ($rule->getFailures() as $fail) {
                $messages[] = $fail;
            }
        }
        return $messages;
    }
public function errorArray()
    {
        $messages = [];
        foreach ($this->failures as $key => $rule) {
            foreach ($rule->getFailures() as $fail) {
                $messages[] = $fail;
            }
        }
        return $messages;
    }
public function errorArray ( ) { $ messages = [ ] ; foreach ( $ this -> failures as $ key => $ rule ) { foreach ( $ rule -> getFailures ( ) as $ fail ) { $ messages [ ] = $ fail ; } } return $ messages ; }
Flatten out the error messages into a single level array

@return array Error set without keys
Flatten out the error messages into a single level array