Code Duplication    Length = 7-7 lines in 2 locations

class.jetpack-plan.php 2 locations

@@ 126-132 (lines=7) @@
123
			'value_bundle-2y',
124
		);
125
126
		if ( in_array( $plan['product_slug'], $premium_plans, true ) ) {
127
			$supports[]    = 'akismet';
128
			$supports[]    = 'simple-payments';
129
			$supports[]    = 'vaultpress';
130
			$supports[]    = 'videopress';
131
			$plan['class'] = 'premium';
132
		}
133
134
		// Define what paid modules are supported by professional plans.
135
		$business_plans = array(
@@ 145-151 (lines=7) @@
142
			'vip',
143
		);
144
145
		if ( in_array( $plan['product_slug'], $business_plans, true ) ) {
146
			$supports[]    = 'akismet';
147
			$supports[]    = 'simple-payments';
148
			$supports[]    = 'vaultpress';
149
			$supports[]    = 'videopress';
150
			$plan['class'] = 'business';
151
		}
152
153
		// get available features.
154
		foreach ( Jetpack::get_available_modules() as $module_slug ) {