Code Duplication    Length = 9-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1320-1328 (lines=9) @@
1317
			'value_bundle',
1318
		);
1319
1320
		if ( in_array( $plan['product_slug'], $premium_plans ) ) {
1321
			$plan['supports'] = array(
1322
				'videopress',
1323
				'akismet',
1324
				'vaultpress',
1325
				'wordads',
1326
			);
1327
			$plan['class'] = 'premium';
1328
		}
1329
1330
		// Define what paid modules are supported by professional plans
1331
		$business_plans = array(
@@ 1337-1347 (lines=11) @@
1334
			'business-bundle',
1335
		);
1336
1337
		if ( in_array( $plan['product_slug'], $business_plans ) ) {
1338
			$plan['supports'] = array(
1339
				'videopress',
1340
				'akismet',
1341
				'vaultpress',
1342
				'seo-tools',
1343
				'google-analytics',
1344
				'wordads',
1345
			);
1346
			$plan['class'] = 'business';
1347
		}
1348
1349
		// Make sure we have an array here in the event database data is stale
1350
		if ( ! isset( $plan['supports'] ) ) {