Code Duplication    Length = 7-7 lines in 2 locations

class.jetpack-plan.php 2 locations

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