RedBeanPHP\Logger\RDefault\Debug::normalizeBindings PHP Method

normalizeBindings() protected method

Replaces numeric binding keys with :slot1 :slot2 etc.
protected normalizeBindings ( array $bindings ) : array
$bindings array bindings to normalize
return array
    protected function normalizeBindings($bindings)
    {
        $i = 0;
        $newBindings = array();
        foreach ($bindings as $key => $value) {
            if (is_numeric($key)) {
                $newKey = ':slot' . $i;
                $newBindings[$newKey] = $value;
                $i++;
            } else {
                $newBindings[$key] = $value;
            }
        }
        return $newBindings;
    }