Code Duplication    Length = 3-3 lines in 2 locations

classes/fields/datetime.php 2 locations

@@ 351-353 (lines=3) @@
348
			), true
349
		) ) ) {
350
			$value = $this->convert_date( $value, static::$storage_format, $format );
351
		} elseif ( 1 === (int) pods_v( static::$type . '_allow_empty', $options, 1 ) ) {
352
			$value = static::$empty_value;
353
		} else {
354
			$value = date_i18n( static::$storage_format );
355
		}
356
@@ 413-415 (lines=3) @@
410
			} else {
411
				$value = date_i18n( $format, strtotime( (string) $value ) );
412
			}
413
		} elseif ( 0 === (int) pods_v( static::$type . '_allow_empty', $options, 1 ) ) {
414
			$value = date_i18n( $format );
415
		} else {
416
			$value = '';
417
		}
418