Code Duplication    Length = 7-7 lines in 2 locations

class.jetpack-plan.php 2 locations

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