Code Duplication    Length = 4-4 lines in 2 locations

core/helpers/EEH_Form_Fields.helper.php 2 locations

@@ 1319-1322 (lines=4) @@
1316
	 */
1317
	public static function two_digit_months_dropdown_options() {
1318
		$options = array();
1319
		for ( $x = 1; $x <= 12; $x++ ) {
1320
			$mm = str_pad( $x, 2, '0', STR_PAD_LEFT );
1321
			$options[ (string)$mm ] = (string)$mm;
1322
		}
1323
		return EEH_Form_Fields::prep_answer_options( $options );
1324
	}
1325
@@ 1338-1341 (lines=4) @@
1335
		$options = array();
1336
		$current_year = date('y');
1337
		$next_decade = $current_year + 10;
1338
		for ( $x = $current_year; $x <= $next_decade; $x++ ) {
1339
			$yy = str_pad( $x, 2, '0', STR_PAD_LEFT );
1340
			$options[ (string)$yy ] = (string)$yy;
1341
		}
1342
		return EEH_Form_Fields::prep_answer_options( $options );
1343
	}
1344