Code Duplication    Length = 4-4 lines in 2 locations

classes/autoptimizePartners.php 1 location

@@ 59-62 (lines=4) @@
56
            $rss      = fetch_feed( 'http://feeds.feedburner.com/OptimizingMattersDownloads' );
57
            $maxitems = 0;
58
59
            if ( ! is_wp_error( $rss ) ) {
60
                $maxitems  = $rss->get_item_quantity( 20 );
61
                $rss_items = $rss->get_items( 0, $maxitems );
62
            }
63
64
            if ( 0 == $maxitems ) {
65
                $output .= $no_feed_text;

classes/autoptimizeConfig.php 1 location

@@ 861-864 (lines=4) @@
858
            $rss      = fetch_feed( $url );
859
            $maxitems = 0;
860
861
            if ( ! is_wp_error( $rss ) ) {
862
                $maxitems  = $rss->get_item_quantity( 7 );
863
                $rss_items = $rss->get_items( 0, $maxitems );
864
            }
865
            ?>
866
            <ul>
867
                <?php if ( 0 == $maxitems ) : ?>