Code Duplication    Length = 7-8 lines in 2 locations

src/Database/DBDblibFunctions.php 1 location

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

src/Database/DBMysqlFunctions.php 1 location

@@ 121-128 (lines=8) @@
118
                    $s .= '%p';
119
                    break;
120
121
                default:
122
123
                    if ($ch == '\\') {
124
                        $i++;
125
                        $ch = substr($fmt, $i, 1);
126
                    }
127
                    $s .= $ch;
128
                    break;
129
            }
130
        }
131
        $s.="')";