Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack-plan.php 2 locations

@@ 150-157 (lines=8) @@
147
			'value_bundle-2y',
148
		);
149
150
		if ( in_array( $plan['product_slug'], $premium_plans, true ) ) {
151
			$supports[]    = 'akismet';
152
			$supports[]    = 'simple-payments';
153
			$supports[]    = 'recurring-payments';
154
			$supports[]    = 'vaultpress';
155
			$supports[]    = 'videopress';
156
			$plan['class'] = 'premium';
157
		}
158
159
		// Define what paid modules are supported by professional plans.
160
		$business_plans = array(
@@ 172-179 (lines=8) @@
169
			'vip',
170
		);
171
172
		if ( in_array( $plan['product_slug'], $business_plans, true ) ) {
173
			$supports[]    = 'akismet';
174
			$supports[]    = 'simple-payments';
175
			$supports[]    = 'recurring-payments';
176
			$supports[]    = 'vaultpress';
177
			$supports[]    = 'videopress';
178
			$plan['class'] = 'business';
179
		}
180
181
		// get available features.
182
		foreach ( Jetpack::get_available_modules() as $module_slug ) {