protected function replacements($ruleName, array $keyRules)
    {

        $ruleKey = str_contains($ruleName, '.') ? explode('.', $ruleName)[0] : $ruleName;

        // No parameters found ? give up
        if (!isset($keyRules[$ruleKey][0])) {
            return [];
        }

        if (!isset($this->placeholders[$ruleKey])) {
            return [$ruleKey => $keyRules[$ruleKey][0]];
        }

        $replacements = [];

        foreach ($this->placeholders[$ruleKey] as $i=>$name) {

            if (isset($keyRules[$ruleKey][$i])) {
                $replacements[$name] = $keyRules[$ruleKey][$i];
            }

        }

        return $replacements;
    }