Code Duplication    Length = 5-6 lines in 2 locations

classes/Pods.php 1 location

@@ 3646-3651 (lines=6) @@
3643
			elseif ( isset( $this->fields[ $field[ 'name' ] ] ) )
3644
				$field = array_merge( $this->fields[ $field[ 'name' ] ], $field );
3645
3646
			if ( pods_v( 'hidden', $field, false, null, true ) || 'hidden' == $field[ 'type' ] ) {
3647
				continue;
3648
			}
3649
			elseif ( !PodsForm::permission( $field[ 'type' ], $field[ 'name' ], $field[ 'options' ], $fields, $pod, $pod->id() ) ) {
3650
				continue;
3651
			}
3652
3653
			$fields[ $field[ 'name' ] ] = $field;
3654
		}

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