Code Duplication    Length = 7-7 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1095-1101 (lines=7) @@
1092
                        $varCleaned[$key] = $value;
1093
                    }
1094
1095
                    if ($convert_array === true) {
1096
                        $varCleaned = \implode(',', $varCleaned);
1097
1098
                        $var = $varCleaned;
1099
                    } else {
1100
                        $var = $varCleaned;
1101
                    }
1102
                }
1103
1104
                break;
@@ 2255-2261 (lines=7) @@
2252
                    $varCleaned[$key] = $value;
2253
                }
2254
2255
                if ($convert_array === true) {
2256
                    $varCleaned = \implode(',', $varCleaned);
2257
2258
                    $var = $varCleaned;
2259
                } else {
2260
                    $var = $varCleaned;
2261
                }
2262
            }
2263
2264
            return $var;