Code Duplication    Length = 6-6 lines in 2 locations

class.jetpack.php 2 locations

@@ 2515-2520 (lines=6) @@
2512
			$mod['module_tags'] = array( self::translate_module_tag( 'Other' ) );
2513
		}
2514
2515
		if ( $mod['plan_classes'] ) {
2516
			$mod['plan_classes'] = explode( ',', $mod['plan_classes'] );
2517
			$mod['plan_classes'] = array_map( 'strtolower', array_map( 'trim', $mod['plan_classes'] ) );
2518
		} else {
2519
			$mod['plan_classes'] = array( 'free' );
2520
		}
2521
2522
		if ( $mod['feature'] ) {
2523
			$mod['feature'] = explode( ',', $mod['feature'] );
@@ 2522-2527 (lines=6) @@
2519
			$mod['plan_classes'] = array( 'free' );
2520
		}
2521
2522
		if ( $mod['feature'] ) {
2523
			$mod['feature'] = explode( ',', $mod['feature'] );
2524
			$mod['feature'] = array_map( 'trim', $mod['feature'] );
2525
		} else {
2526
			$mod['feature'] = array( self::translate_module_tag( 'Other' ) );
2527
		}
2528
2529
		/**
2530
		 * Filters the feature array on a module.