Code Duplication    Length = 9-11 lines in 2 locations

class.jetpack.php 2 locations

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