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

@@ 832-835 (lines=4) @@
829
            $rss      = fetch_feed( $url );
830
            $maxitems = 0;
831
832
            if ( ! is_wp_error( $rss ) ) {
833
                $maxitems  = $rss->get_item_quantity( 7 );
834
                $rss_items = $rss->get_items( 0, $maxitems );
835
            }
836
            ?>
837
            <ul>
838
                <?php if ( 0 == $maxitems ) : ?>