Code Duplication    Length = 9-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1295-1303 (lines=9) @@
1292
			'jetpack_premium_monthly',
1293
		);
1294
1295
		if ( in_array( $plan['product_slug'], $premium_plans ) ) {
1296
			$plan['supports'] = array(
1297
				'videopress',
1298
				'akismet',
1299
				'vaultpress',
1300
				'wordads',
1301
			);
1302
			$plan['class'] = 'premium';
1303
		}
1304
1305
		// Define what paid modules are supported by professional plans
1306
		$business_plans = array(
@@ 1311-1321 (lines=11) @@
1308
			'jetpack_business_monthly',
1309
		);
1310
1311
		if ( in_array( $plan['product_slug'], $business_plans ) ) {
1312
			$plan['supports'] = array(
1313
				'videopress',
1314
				'akismet',
1315
				'vaultpress',
1316
				'seo-tools',
1317
				'google-analytics',
1318
				'wordads',
1319
			);
1320
			$plan['class'] = 'business';
1321
		}
1322
1323
		// Make sure we have an array here in the event database data is stale
1324
		if ( ! isset( $plan['supports'] ) ) {