Code Duplication    Length = 6-6 lines in 2 locations

includes/htmlform/fields/HTMLDateTimeField.php 2 locations

@@ 169-174 (lines=6) @@
166
			'id' => $this->mID,
167
		];
168
169
		if ( isset( $this->mParams['min'] ) ) {
170
			$min = $this->parseDate( $this->mParams['min'] );
171
			if ( $min ) {
172
				$params['min'] = $this->formatDate( $min );
173
			}
174
		}
175
		if ( isset( $this->mParams['max'] ) ) {
176
			$max = $this->parseDate( $this->mParams['max'] );
177
			if ( $max ) {
@@ 175-180 (lines=6) @@
172
				$params['min'] = $this->formatDate( $min );
173
			}
174
		}
175
		if ( isset( $this->mParams['max'] ) ) {
176
			$max = $this->parseDate( $this->mParams['max'] );
177
			if ( $max ) {
178
				$params['max'] = $this->formatDate( $max );
179
			}
180
		}
181
182
		return new MediaWiki\Widget\DateTimeInputWidget( $params );
183
	}