Code Duplication    Length = 4-4 lines in 2 locations

tests/bootstrap.php 1 location

@@ 30-33 (lines=4) @@
27
    if ( getenv('CUSTOM_CONSTANTS' ) ) {
28
        define( 'AUTOPTIMIZE_CACHE_CHILD_DIR', '/c/ao/' );
29
        $pathname = WP_CONTENT_DIR . AUTOPTIMIZE_CACHE_CHILD_DIR;
30
        if ( is_multisite() && apply_filters( 'autoptimize_separate_blog_caches', true ) ) {
31
            $blog_id   = get_current_blog_id();
32
            $pathname .= $blog_id . '/';
33
        }
34
        define( 'AUTOPTIMIZE_CACHE_DIR', $pathname );
35
36
        $custom_site_url = 'http://localhost/wordpress';

classes/autoptimizeCache.php 1 location

@@ 351-354 (lines=4) @@
348
    {
349
        $pathname = self::get_pathname_base();
350
351
        if ( is_multisite() && apply_filters( 'autoptimize_separate_blog_caches', true ) ) {
352
            $blog_id   = get_current_blog_id();
353
            $pathname .= $blog_id . '/';
354
        }
355
356
        return $pathname;
357
    }