Code Duplication    Length = 5-5 lines in 2 locations

classes/autoptimizeCriticalCSSCore.php 1 location

@@ 442-446 (lines=5) @@
439
        $src_url = get_home_url();
440
441
        // Avoid AO optimizations if required by config or avoid lazyload if lazyload is active in AO.
442
        if ( ! empty( $ao_ccss_noptimize ) ) {
443
            $src_url .= '?ao_noptirocket=1';
444
        } elseif ( class_exists( 'autoptimizeImages', false ) && autoptimizeImages::should_lazyload_wrapper() ) {
445
            $src_url .= '?ao_nolazy=1';
446
        }
447
448
        $src_url = apply_filters( 'autoptimize_filter_ccss_cron_srcurl', $src_url );
449

classes/autoptimizeCriticalCSSCron.php 1 location

@@ 465-469 (lines=5) @@
462
        $src_url = $site_host . $path;
463
464
        // Avoid AO optimizations if required by config or avoid lazyload if lazyload is active in AO.
465
        if ( ! empty( $ao_ccss_noptimize ) ) {
466
            $src_url .= '?ao_noptirocket=1';
467
        } elseif ( class_exists( 'autoptimizeImages', false ) && autoptimizeImages::should_lazyload_wrapper() ) {
468
            $src_url .= '?ao_nolazy=1';
469
        }
470
471
        $src_url = apply_filters( 'autoptimize_filter_ccss_cron_srcurl', $src_url );
472