Code Duplication    Length = 7-8 lines in 2 locations

src/Database/DBDblibFunctions.php 1 location

@@ 116-122 (lines=7) @@
113
                    $s .= "substring(convert(char(19),$col,0),18,2)";
114
                    break;
115
116
                default:
117
                    if ($ch == '\\') {
118
                        $i++;
119
                        $ch = substr($fmt, $i, 1);
120
                    }
121
                    $s .= $this->qstr($ch);
122
                    break;
123
            }
124
        }
125
        return $s;

src/Database/DBMysqlFunctions.php 1 location

@@ 130-137 (lines=8) @@
127
                    $s .= '%p';
128
                    break;
129
130
                default:
131
132
                    if ($ch == '\\') {
133
                        $i++;
134
                        $ch = substr($fmt, $i, 1);
135
                    }
136
                    $s .= $ch;
137
                    break;
138
            }
139
        }
140
        $s.="')";