Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsUI.php 1 location

@@ 1854-1859 (lines=6) @@
1851
1852
			$fields[ $field['name'] ] = $field;
1853
1854
			if ( empty( $this->id ) && null !== $default_value ) {
1855
				$this->pod->row_override[ $field['name'] ] = $default_value;
1856
			} elseif ( ! empty( $this->id ) && null !== $value ) {
1857
				$this->pod->row[ $field['name'] ] = $value;
1858
			}
1859
		}//end foreach
1860
1861
		unset( $form_fields );
1862
		// Cleanup

classes/Pods.php 1 location

@@ 3925-3930 (lines=6) @@
3922
3923
			$fields[ $field['name'] ] = $field;
3924
3925
			if ( empty( $this->id ) && null !== $default_value ) {
3926
				$this->row_override[ $field['name'] ] = $default_value;
3927
			} elseif ( ! empty( $this->id ) && null !== $value ) {
3928
				$this->row[ $field['name'] ] = $value;
3929
			}
3930
		}
3931
3932
		unset( $form_fields ); // Cleanup
3933