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

@@ 3955-3960 (lines=6) @@
3952
3953
			$fields[ $field['name'] ] = $field;
3954
3955
			if ( empty( $this->id ) && null !== $default_value ) {
3956
				$this->row_override[ $field['name'] ] = $default_value;
3957
			} elseif ( ! empty( $this->id ) && null !== $value ) {
3958
				$this->row[ $field['name'] ] = $value;
3959
			}
3960
		}//end foreach
3961
3962
		// Cleanup.
3963
		unset( $form_fields );