src/Config.php
protected static function _prepareRules($rules)
    {
        foreach ($rules as $_name => $_rules) {
            $rules[$_name] = array_flip($_rules);
        }

        $rules = call_user_func_array('array_merge', $rules);

        return array_keys($rules);
    }
protected static function _prepareRules($rules)
    {
        foreach ($rules as $_name => $_rules) {
            $rules[$_name] = array_flip($_rules);
        }

        $rules = call_user_func_array('array_merge', $rules);

        return array_keys($rules);
    }
protected static function _prepareRules ( $ rules ) { foreach ( $ rules as $ _name => $ _rules ) { $ rules [ $ _name ] = array_flip ( $ _rules ) ; } $ rules = call_user_func_array ( 'array_merge' , $ rules ) ; return array_keys ( $ rules ) ; }
Combines a map of rule levels to rule lists into one list.

@since [*next-version*]

@param array $rules Map of rule level to rule list, where rule list is a numeric array of string names.

@return array A unique list of all rules combined in a numeric array of strings.
Combines a map of rule levels to rule lists into one list .