Code Duplication    Length = 9-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1307-1315 (lines=9) @@
1304
			'value_bundle',
1305
		);
1306
1307
		if ( in_array( $plan['product_slug'], $premium_plans ) ) {
1308
			$plan['supports'] = array(
1309
				'videopress',
1310
				'akismet',
1311
				'vaultpress',
1312
				'wordads',
1313
			);
1314
			$plan['class'] = 'premium';
1315
		}
1316
1317
		// Define what paid modules are supported by professional plans
1318
		$business_plans = array(
@@ 1324-1334 (lines=11) @@
1321
			'business-bundle',
1322
		);
1323
1324
		if ( in_array( $plan['product_slug'], $business_plans ) ) {
1325
			$plan['supports'] = array(
1326
				'videopress',
1327
				'akismet',
1328
				'vaultpress',
1329
				'seo-tools',
1330
				'google-analytics',
1331
				'wordads',
1332
			);
1333
			$plan['class'] = 'business';
1334
		}
1335
1336
		// Make sure we have an array here in the event database data is stale
1337
		if ( ! isset( $plan['supports'] ) ) {