Code Duplication    Length = 3-3 lines in 2 locations

classes/fields/datetime.php 2 locations

@@ 340-342 (lines=3) @@
337
			), true
338
		) ) ) {
339
			$value = $this->convert_date( $value, static::$storage_format, $format );
340
		} elseif ( 1 === (int) pods_v( static::$type . '_allow_empty', $options, 1 ) ) {
341
			$value = static::$empty_value;
342
		} else {
343
			$value = date_i18n( static::$storage_format );
344
		}
345
@@ 402-404 (lines=3) @@
399
			} else {
400
				$value = date_i18n( $format, strtotime( (string) $value ) );
401
			}
402
		} elseif ( 0 === (int) pods_v( static::$type . '_allow_empty', $options, 1 ) ) {
403
			$value = date_i18n( $format );
404
		} else {
405
			$value = '';
406
		}
407