protected function normalizeArray(array $data)
    {
        $ret = [];

        foreach ($data as $key => $value) {
            if (!\is_string($key)) {
                continue;
            }

            $ret[$key[0]] = [
                'value' => $value,
                'pattern' => $key,
            ];
        }

        return $ret;
    }
protected function normalizeArray(array $data)
    {
        $ret = [];

        foreach ($data as $key => $value) {
            if (!\is_string($key)) {
                continue;
            }

            $ret[$key[0]] = [
                'value' => $value,
                'pattern' => $key,
            ];
        }

        return $ret;
    }
protected function normalizeArray ( array $ data ) { $ ret = [ ] ; foreach ( $ data as $ key => $ value ) { if ( ! \ is_string ( $ key ) ) { continue ; } $ ret [ $ key [ 0 ] ] = [ 'value' => $ value , 'pattern' => $ key , ] ; } return $ ret ; }
Normalize a preg_replace match array, removing the numeric keys and returning an associative array
with the value and pattern values for the matched Transformer.

@return array
Normalize a preg_replace match array removing the numeric keys and returning an associative array with the value and pattern values for the matched Transformer .