Code Duplication    Length = 7-7 lines in 2 locations

class.jetpack-plan.php 2 locations

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