Code Duplication    Length = 9-9 lines in 2 locations

includes/acf/core/location.php 2 locations

@@ 554-562 (lines=9) @@
551
	        
552
	        
553
	         // compare
554
	        if( $rule['operator'] == "==" ) {
555
	        	
556
	        	$match = ( $front_page == $post->ID );
557
	        	
558
	        } elseif( $rule['operator'] == "!=" ) {
559
	        	
560
	        	$match = ( $front_page != $post->ID );
561
	        
562
	        }
563
	        
564
        } elseif( $rule['value'] == 'posts_page') {
565
        	
@@ 571-579 (lines=9) @@
568
	        
569
	        
570
	        // compare
571
	        if( $rule['operator'] == "==" ) {
572
	        
573
	        	$match = ( $posts_page == $post->ID );
574
	        
575
	        } elseif( $rule['operator'] == "!=" ) {
576
	        	
577
	        	$match = ( $posts_page != $post->ID );
578
	        	
579
	        }
580
	        
581
        } elseif( $rule['value'] == 'top_level') {
582