Code Duplication    Length = 11-11 lines in 2 locations

includes/acf/core/location.php 2 locations

@@ 907-917 (lines=11) @@
904
			
905
			if( $rule['operator'] == "==" ) {
906
				
907
	        	if( $user_id === 'new' ) {
908
	        		
909
	        		// case: add user
910
		        	$match = ( $rule['value'] == get_option('default_role') );
911
		        	
912
	        	} else {
913
	        		
914
	        		// case: edit user
915
		        	$match = ( user_can($user_id, $rule['value']) );
916
		        	
917
	        	}
918
	        	
919
	        	
920
	        	// override for "all"
@@ 929-939 (lines=11) @@
926
				
927
	        } elseif( $rule['operator'] == "!=" ) {
928
	        	
929
	        	if( $user_id === 'new' ) {
930
	        		
931
	        		// case: add user
932
		        	$match = ( $rule['value'] != get_option('default_role') );
933
		        	
934
	        	} else {
935
	        		
936
	        		// case: edit user
937
		        	$match = ( !user_can($user_id, $rule['value']) );
938
		        	
939
	        	}
940
	        	
941
	        	
942
	        	// override for "all"