Code Duplication    Length = 7-7 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1066-1072 (lines=7) @@
1063
                        $varCleaned[$key] = $value;
1064
                    }
1065
1066
                    if ($convert_array === true) {
1067
                        $varCleaned = \implode(',', $varCleaned);
1068
1069
                        $var = $varCleaned;
1070
                    } else {
1071
                        $var = $varCleaned;
1072
                    }
1073
                }
1074
1075
                break;
@@ 2222-2228 (lines=7) @@
2219
                    $varCleaned[$key] = $value;
2220
                }
2221
2222
                if ($convert_array === true) {
2223
                    $varCleaned = \implode(',', $varCleaned);
2224
2225
                    $var = $varCleaned;
2226
                } else {
2227
                    $var = $varCleaned;
2228
                }
2229
            }
2230
2231
            return $var;