Code Duplication    Length = 20-20 lines in 2 locations

src/Statement/Preprocessor/ArrayParameter/Associative.php 1 location

@@ 18-37 (lines=20) @@
15
     *
16
     * @return bool
17
     */
18
    public function process(string &$query, array &$parameters, array $whereInParameters)
19
    {
20
        $partials = [];
21
        foreach ($whereInParameters as $key => $values) {
22
            if (is_numeric($key)) {
23
                continue;
24
            }
25
26
            $partials[$key] = $this->getQueryPartial($parameters[$key], $key);
27
        }
28
29
        if (!$partials) {
30
            return false;
31
        }
32
33
        $query      = $this->replaceQueryPartials($query, $partials);
34
        $parameters = $this->injectParameterPartials($parameters, $partials);
35
36
        return true;
37
    }
38
39
    /**
40
     * @param array  $parameterValues

src/Statement/Preprocessor/ArrayParameter/Numeric.php 1 location

@@ 18-37 (lines=20) @@
15
     *
16
     * @return bool
17
     */
18
    public function process(string &$query, array &$parameters, array $whereInParameters)
19
    {
20
        $partials = [];
21
        foreach ($whereInParameters as $key => $values) {
22
            if (!is_numeric($key)) {
23
                continue;
24
            }
25
26
            $partials[$key] = $this->getInQueryPartial($parameters, $key);
27
        }
28
29
        if (!$partials) {
30
            return false;
31
        }
32
33
        $query      = $this->replaceQueryPartials($query, $partials);
34
        $parameters = $this->injectParameterPartials($parameters, $partials);
35
36
        return true;
37
    }
38
39
    /**
40
     * @param array $parameters