Code Duplication    Length = 9-11 lines in 2 locations

class.jetpack.php 2 locations

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