Code Duplication    Length = 5-5 lines in 2 locations

tests/test-GeoDirectory.php 2 locations

@@ 1107-1111 (lines=5) @@
1104
        if ( $template = apply_filters( 'template_include', $template ) ) {
1105
            $template_contents = file_get_contents( $template );
1106
            $included_header = $included_footer = false;
1107
            if ( false !== stripos( $template_contents, 'get_header();' ) ) {
1108
                do_action( 'get_header', null );
1109
                locate_template( 'header.php', true, false );
1110
                $included_header = true;
1111
            }
1112
            include( $template );
1113
            if ( false !== stripos( $template_contents, 'get_footer();' ) ) {
1114
                do_action( 'get_footer', null );
@@ 1113-1117 (lines=5) @@
1110
                $included_header = true;
1111
            }
1112
            include( $template );
1113
            if ( false !== stripos( $template_contents, 'get_footer();' ) ) {
1114
                do_action( 'get_footer', null );
1115
                locate_template( 'footer.php', true, false );
1116
                $included_footer = true;
1117
            }
1118
            if ( $included_header && $included_footer ) {
1119
                global $wp_scripts;
1120
                $wp_scripts->done = array();