Code Duplication    Length = 15-15 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 4983-4997 (lines=15) @@
4980
							}//end if
4981
						}//end if
4982
4983
						if ( is_array( $value ) ) {
4984
							if ( ! in_array( $the_match, $value ) ) {
4985
								$match_okay = false;
4986
							} elseif ( 'OR' === $match_relation ) {
4987
								$match_okay = true;
4988
4989
								break;
4990
							}
4991
						} elseif ( $value == $the_match ) {
4992
							$match_okay = false;
4993
						} elseif ( 'OR' === $match_relation ) {
4994
							$match_okay = true;
4995
4996
							break;
4997
						}
4998
					}//end foreach
4999
5000
					if ( ! $match_okay ) {
@@ 5041-5055 (lines=15) @@
5038
						}//end if
5039
					}//end if
5040
5041
					if ( is_array( $value ) ) {
5042
						if ( ! in_array( $match, $value ) ) {
5043
							$okay = false;
5044
						} elseif ( 'OR' === $relation ) {
5045
							$okay = true;
5046
5047
							break;
5048
						}
5049
					} elseif ( $value != $match ) {
5050
						$okay = false;
5051
					} elseif ( 'OR' === $relation ) {
5052
						$okay = true;
5053
5054
						break;
5055
					}
5056
				}//end if
5057
			}//end foreach
5058