Code Duplication    Length = 9-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1266-1274 (lines=9) @@
1263
			'jetpack_premium_monthly',
1264
		);
1265
1266
		if ( in_array( $plan['product_slug'], $premium_plans ) ) {
1267
			$plan['supports'] = array(
1268
				'videopress',
1269
				'akismet',
1270
				'vaultpress',
1271
				'wordads',
1272
			);
1273
			$plan['class'] = 'premium';
1274
		}
1275
1276
		// Define what paid modules are supported by professional plans
1277
		$business_plans = array(
@@ 1282-1292 (lines=11) @@
1279
			'jetpack_business_monthly',
1280
		);
1281
1282
		if ( in_array( $plan['product_slug'], $business_plans ) ) {
1283
			$plan['supports'] = array(
1284
				'videopress',
1285
				'akismet',
1286
				'vaultpress',
1287
				'seo-tools',
1288
				'google-analytics',
1289
				'wordads',
1290
			);
1291
			$plan['class'] = 'business';
1292
		}
1293
1294
		// Make sure we have an array here in the event database data is stale
1295
		if ( ! isset( $plan['supports'] ) ) {