Code Duplication    Length = 4-4 lines in 2 locations

core/helpers/EEH_Form_Fields.helper.php 2 locations

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