Code Duplication    Length = 9-11 lines in 2 locations

class.jetpack.php 2 locations

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