Code Duplication    Length = 3-7 lines in 2 locations

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

@@ 1458-1460 (lines=3) @@
1455
			return new WP_Error( 'not_installed', esc_html__( 'Please install Akismet.', 'jetpack' ), array( 'status' => 400 ) );
1456
		}
1457
1458
		if ( ! class_exists( 'Akismet' ) ) {
1459
			return new WP_Error( 'not_active', esc_html__( 'Please activate Akismet.', 'jetpack' ), array( 'status' => 400 ) );
1460
		}
1461
1462
		return true;
1463
	}
@@ 1669-1675 (lines=7) @@
1666
	 * @return mixed|WP_Error VaultPress site data. Otherwise, a WP_Error instance with the corresponding error.
1667
	 */
1668
	public function get_vaultpress_data() {
1669
		if ( ! class_exists( 'VaultPress' ) ) {
1670
			return new WP_Error(
1671
				'not_active',
1672
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
1673
				array( 'status' => 404 )
1674
			);
1675
		}
1676
1677
		$vaultpress = new VaultPress();
1678
		if ( ! $vaultpress->is_registered() ) {