Code Duplication    Length = 7-7 lines in 2 locations

class.jetpack-plan.php 2 locations

@@ 145-151 (lines=7) @@
142
			'value_bundle-2y',
143
		);
144
145
		if ( in_array( $plan['product_slug'], $premium_plans, true ) ) {
146
			$supports[]    = 'akismet';
147
			$supports[]    = 'simple-payments';
148
			$supports[]    = 'vaultpress';
149
			$supports[]    = 'videopress';
150
			$plan['class'] = 'premium';
151
		}
152
153
		// Define what paid modules are supported by professional plans.
154
		$business_plans = array(
@@ 166-172 (lines=7) @@
163
			'vip',
164
		);
165
166
		if ( in_array( $plan['product_slug'], $business_plans, true ) ) {
167
			$supports[]    = 'akismet';
168
			$supports[]    = 'simple-payments';
169
			$supports[]    = 'vaultpress';
170
			$supports[]    = 'videopress';
171
			$plan['class'] = 'business';
172
		}
173
174
		// get available features.
175
		foreach ( Jetpack::get_available_modules() as $module_slug ) {