Code Duplication    Length = 7-7 lines in 2 locations

class.jetpack-plan.php 2 locations

@@ 102-108 (lines=7) @@
99
			'value_bundle-2y',
100
		);
101
102
		if ( in_array( $plan['product_slug'], $premium_plans, true ) ) {
103
			$supports[]    = 'akismet';
104
			$supports[]    = 'simple-payments';
105
			$supports[]    = 'vaultpress';
106
			$supports[]    = 'videopress';
107
			$plan['class'] = 'premium';
108
		}
109
110
		// Define what paid modules are supported by professional plans.
111
		$business_plans = array(
@@ 121-127 (lines=7) @@
118
			'vip',
119
		);
120
121
		if ( in_array( $plan['product_slug'], $business_plans, true ) ) {
122
			$supports[]    = 'akismet';
123
			$supports[]    = 'simple-payments';
124
			$supports[]    = 'vaultpress';
125
			$supports[]    = 'videopress';
126
			$plan['class'] = 'business';
127
		}
128
129
		// get available features.
130
		foreach ( Jetpack::get_available_modules() as $module_slug ) {