Code Duplication    Length = 7-7 lines in 2 locations

Migration/ParametrizedMigrationQuery.php 2 locations

@@ 66-72 (lines=7) @@
63
            $bindIndex  = 1;
64
            foreach ($params as $value) {
65
                $typeIndex = $bindIndex + $typeOffset;
66
                if (isset($types[$typeIndex])) {
67
                    $type                       = $types[$typeIndex];
68
                    $value                      = $this->convertToDatabaseValue($value, $type);
69
                    $resolvedParams[$bindIndex] = $value;
70
                } else {
71
                    $resolvedParams[$bindIndex] = $value;
72
                }
73
                $bindIndex++;
74
            }
75
        } else {
@@ 78-84 (lines=7) @@
75
        } else {
76
            // Named parameters
77
            foreach ($params as $name => $value) {
78
                if (isset($types[$name])) {
79
                    $type                  = $types[$name];
80
                    $value                 = $this->convertToDatabaseValue($value, $type);
81
                    $resolvedParams[$name] = $value;
82
                } else {
83
                    $resolvedParams[$name] = $value;
84
                }
85
            }
86
        }
87