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

@@ 3969-3974 (lines=6) @@
3966
3967
			$fields[ $field['name'] ] = $field;
3968
3969
			if ( empty( $this->id ) && null !== $default_value ) {
3970
				$this->row_override[ $field['name'] ] = $default_value;
3971
			} elseif ( ! empty( $this->id ) && null !== $value ) {
3972
				$this->row[ $field['name'] ] = $value;
3973
			}
3974
		}//end foreach
3975
3976
		// Cleanup.
3977
		unset( $form_fields );