Code Duplication    Length = 10-10 lines in 2 locations

src/DB.php 2 locations

@@ 175-184 (lines=10) @@
172
     * @param array $array
173
     * @return string
174
     */
175
    private static function get_bind_exe($array = array())
176
    {
177
        $keys = array_keys($array);
178
        $values = null;
179
        foreach (array_slice($keys, 0, count($array) - 1) as $key => $value) {
180
            $values [] = ':' . $value;
181
        }
182
        $values[] = ':' . end($keys);
183
        return $values;
184
    }
185
186
    /**
187
     * @param array $array
@@ 200-209 (lines=10) @@
197
     * @param array $array
198
     * @return string
199
     */
200
    private static function get_keys($array = array())
201
    {
202
        $keys = array_keys($array);
203
        $values = null;
204
        foreach (array_slice($keys, 0, count($array) - 1) as $key => $value) {
205
            $values .= $value . ', ';
206
        }
207
        $all = $values . end($keys);
208
        return $all;
209
    }
210
211
212
    /**