Code Duplication    Length = 6-6 lines in 2 locations

classes/Pods.php 1 location

@@ 3534-3539 (lines=6) @@
3531
3532
			$fields[ $field[ 'name' ] ] = $field;
3533
3534
			if ( empty( $this->id ) && null !== $default_value ) {
3535
				$this->row_override[ $field[ 'name' ] ] = $default_value;
3536
			}
3537
			elseif ( !empty( $this->id ) && null !== $value ) {
3538
				$this->row[ $field[ 'name' ] ] = $value;
3539
			}
3540
		}
3541
3542
		unset( $form_fields ); // Cleanup

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