Code Duplication    Length = 7-7 lines in 2 locations

class.jetpack-plan.php 2 locations

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