Code Duplication    Length = 9-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1352-1360 (lines=9) @@
1349
			'jetpack_premium_monthly',
1350
		);
1351
1352
		if ( in_array( $plan['product_slug'], $premium_plans ) ) {
1353
			$plan['supports'] = array(
1354
				'videopress',
1355
				'akismet',
1356
				'vaultpress',
1357
				'wordads',
1358
			);
1359
			$plan['class'] = 'premium';
1360
		}
1361
1362
		// Define what paid modules are supported by professional plans
1363
		$business_plans = array(
@@ 1368-1378 (lines=11) @@
1365
			'jetpack_business_monthly',
1366
		);
1367
1368
		if ( in_array( $plan['product_slug'], $business_plans ) ) {
1369
			$plan['supports'] = array(
1370
				'videopress',
1371
				'akismet',
1372
				'vaultpress',
1373
				'seo-tools',
1374
				'google-analytics',
1375
				'wordads',
1376
			);
1377
			$plan['class'] = 'business';
1378
		}
1379
1380
		// Make sure we have an array here in the event database data is stale
1381
		if ( ! isset( $plan['supports'] ) ) {