Code Duplication    Length = 9-11 lines in 2 locations

class.jetpack.php 2 locations

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