Code Duplication    Length = 7-7 lines in 2 locations

tests/phpunit/includes/testcase.php 2 locations

@@ 319-325 (lines=7) @@
316
        $wpdb->query('COMMIT;');
317
    }
318
319
    function _create_temporary_tables( $query ) 
320
    {
321
        if ('CREATE TABLE' === substr(trim($query), 0, 12) ) {
322
              return substr_replace(trim($query), 'CREATE TEMPORARY TABLE', 0, 12);
323
        }
324
        return $query;
325
    }
326
327
    function _drop_temporary_tables( $query ) 
328
    {
@@ 327-333 (lines=7) @@
324
        return $query;
325
    }
326
327
    function _drop_temporary_tables( $query ) 
328
    {
329
        if ('DROP TABLE' === substr(trim($query), 0, 10) ) {
330
              return substr_replace(trim($query), 'DROP TEMPORARY TABLE', 0, 10);
331
        }
332
        return $query;
333
    }
334
335
    function get_wp_die_handler( $handler ) 
336
    {