Code Duplication    Length = 5-5 lines in 2 locations

classes/Pods.php 1 location

@@ 4041-4045 (lines=5) @@
4038
				$field = array_merge( $this->fields[ $field['name'] ], $field );
4039
			}
4040
4041
			if ( pods_v( 'hidden', $field, false, true ) || 'hidden' === $field['type'] ) {
4042
				continue;
4043
			} elseif ( ! PodsForm::permission( $field['type'], $field['name'], $field['options'], $fields, $pod, $pod->id() ) ) {
4044
				continue;
4045
			}
4046
4047
			$fields[ $field['name'] ] = $field;
4048
		}

classes/PodsUI.php 1 location

@@ 1964-1968 (lines=5) @@
1961
				$field = array_merge( $this->pod->fields[ $field['name'] ], $field );
1962
			}
1963
1964
			if ( pods_v( 'hidden', $field, false, null, true ) || 'hidden' === $field['type'] ) {
1965
				continue;
1966
			} elseif ( ! PodsForm::permission( $field['type'], $field['name'], $field['options'], $fields, $pod, $pod->id() ) ) {
1967
				continue;
1968
			}
1969
1970
			$fields[ $field['name'] ] = $field;
1971