Code Duplication    Length = 3-7 lines in 2 locations

_inc/lib/core-api/class.jetpack-core-api-module-endpoints.php 2 locations

@@ 1276-1278 (lines=3) @@
1273
			return new WP_Error( 'not_installed', esc_html__( 'Please install Akismet.', 'jetpack' ), array( 'status' => 400 ) );
1274
		}
1275
1276
		if ( ! class_exists( 'Akismet' ) ) {
1277
			return new WP_Error( 'not_active', esc_html__( 'Please activate Akismet.', 'jetpack' ), array( 'status' => 400 ) );
1278
		}
1279
1280
		return true;
1281
	}
@@ 1487-1493 (lines=7) @@
1484
	 * @return mixed|WP_Error VaultPress site data. Otherwise, a WP_Error instance with the corresponding error.
1485
	 */
1486
	public function get_vaultpress_data() {
1487
		if ( ! class_exists( 'VaultPress' ) ) {
1488
			return new WP_Error(
1489
				'not_active',
1490
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
1491
				array( 'status' => 404 )
1492
			);
1493
		}
1494
1495
		$vaultpress = new VaultPress();
1496
		if ( ! $vaultpress->is_registered() ) {