Code Duplication    Length = 8-8 lines in 2 locations

includes/htmlform/fields/HTMLDateTimeField.php 2 locations

@@ 51-58 (lines=8) @@
48
			$ret['placeholder'] = $this->msg( "htmlform-{$this->mType}-placeholder" )->text();
49
		}
50
51
		if ( in_array( 'min', $list ) && isset( $this->mParams['min'] ) ) {
52
			$min = $this->parseDate( $this->mParams['min'] );
53
			if ( $min ) {
54
				$ret['min'] = $this->formatDate( $min );
55
				// Because Html::expandAttributes filters it out
56
				$ret['data-min'] = $ret['min'];
57
			}
58
		}
59
		if ( in_array( 'max', $list ) && isset( $this->mParams['max'] ) ) {
60
			$max = $this->parseDate( $this->mParams['max'] );
61
			if ( $max ) {
@@ 59-66 (lines=8) @@
56
				$ret['data-min'] = $ret['min'];
57
			}
58
		}
59
		if ( in_array( 'max', $list ) && isset( $this->mParams['max'] ) ) {
60
			$max = $this->parseDate( $this->mParams['max'] );
61
			if ( $max ) {
62
				$ret['max'] = $this->formatDate( $max );
63
				// Because Html::expandAttributes filters it out
64
				$ret['data-max'] = $ret['max'];
65
			}
66
		}
67
68
		$ret['step'] = 1;
69
		// Because Html::expandAttributes filters it out