Code Duplication    Length = 6-6 lines in 2 locations

includes/htmlform/fields/HTMLDateTimeField.php 2 locations

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