Code Duplication    Length = 5-5 lines in 3 locations

src/Oci8/Query/Processors/OracleProcessor.php 3 locations

@@ 26-30 (lines=5) @@
23
        $parameter = 0;
24
        $statement = $this->prepareStatement($query, $sql);
25
26
        for ($i = 0; $i < count($values); $i++) {
27
            ${'param' . $i} = $values[$i];
28
            $statement->bindParam($parameter, ${'param' . $i});
29
            $parameter++;
30
        }
31
        $statement->bindParam($parameter, $id, PDO::PARAM_INT, 10);
32
        $statement->execute();
33
@@ 67-71 (lines=5) @@
64
        $statement = $this->prepareStatement($query, $sql);
65
66
        // bind values.
67
        for ($i = 0; $i < count($values); $i++) {
68
            ${'param' . $i} = $values[$i];
69
            $statement->bindParam($parameter, ${'param' . $i});
70
            $parameter++;
71
        }
72
73
        // bind blob fields.
74
        for ($i = 0; $i < count($binaries); $i++) {
@@ 74-78 (lines=5) @@
71
        }
72
73
        // bind blob fields.
74
        for ($i = 0; $i < count($binaries); $i++) {
75
            ${'binary' . $i} = $binaries[$i];
76
            $statement->bindParam($parameter, ${'binary' . $i}, PDO::PARAM_LOB, -1);
77
            $parameter++;
78
        }
79
80
        // bind output param for the returning clause.
81
        $statement->bindParam($parameter, $id, PDO::PARAM_INT, 10);