Code Duplication    Length = 3-7 lines in 2 locations

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

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