Code Duplication    Length = 7-7 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1101-1107 (lines=7) @@
1098
                        $varCleaned[$key] = $value;
1099
                    }
1100
1101
                    if ($convert_array === true) {
1102
                        $varCleaned = \implode(',', $varCleaned);
1103
1104
                        $var = $varCleaned;
1105
                    } else {
1106
                        $var = $varCleaned;
1107
                    }
1108
                }
1109
1110
                break;
@@ 2261-2267 (lines=7) @@
2258
                    $varCleaned[$key] = $value;
2259
                }
2260
2261
                if ($convert_array === true) {
2262
                    $varCleaned = \implode(',', $varCleaned);
2263
2264
                    $var = $varCleaned;
2265
                } else {
2266
                    $var = $varCleaned;
2267
                }
2268
            }
2269
2270
            return $var;