protected function parseFailedRules($failedRules)
    {
        // Parsed failed rules container
        $parsedFailedRules = [];

        foreach ($failedRules as $field => $ruleAttributes) {
            foreach ($ruleAttributes as $rule => $attributes) {
                $parsedFailedRules[$field] = strtolower($field.'.'.$rule);
            }
        }

        return $parsedFailedRules;
    }
protected function parseFailedRules($failedRules)
    {
        // Parsed failed rules container
        $parsedFailedRules = [];

        foreach ($failedRules as $field => $ruleAttributes) {
            foreach ($ruleAttributes as $rule => $attributes) {
                $parsedFailedRules[$field] = strtolower($field.'.'.$rule);
            }
        }

        return $parsedFailedRules;
    }
protected function parseFailedRules ( $ failedRules ) { // Parsed failed rules container $ parsedFailedRules = [ ] ; foreach ( $ failedRules as $ field => $ ruleAttributes ) { foreach ( $ ruleAttributes as $ rule => $ attributes ) { $ parsedFailedRules [ $ field ] = strtolower ( $ field . '.' . $ rule ) ; } } return $ parsedFailedRules ; }
Parse failed rules.

@author Morten Rugaard <moru@nodes.dk>
@param  $failedRules
@return array
Parse failed rules .