protected function normalizeNativeRule(array $rule)
    {
        $normalized = [];
        foreach ($rule as $key=>$parameters) {
            $normalized[$key] = is_array($parameters) ? $parameters : [$parameters];
        }
        return $normalized;
    }
protected function normalizeNativeRule(array $rule)
    {
        $normalized = [];
        foreach ($rule as $key=>$parameters) {
            $normalized[$key] = is_array($parameters) ? $parameters : [$parameters];
        }
        return $normalized;
    }
protected function normalizeNativeRule ( array $ rule ) { $ normalized = [ ] ; foreach ( $ rule as $ key => $ parameters ) { $ normalized [ $ key ] = is_array ( $ parameters ) ? $ parameters : [ $ parameters ] ; } return $ normalized ; }
Make every parameters to array if they are not already arrays.

@param array $rule

@return array
Make every parameters to array if they are not already arrays .