Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 950-956 (lines=7) @@
947
	 * @return mixed|WP_Error Number of days since last downtime. Otherwise, a WP_Error instance with the corresponding error.
948
	 */
949
	public function get_monitor_data() {
950
		if ( ! Jetpack::is_module_active( 'monitor' ) ) {
951
			return new WP_Error(
952
				'not_active',
953
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
954
				array( 'status' => 404 )
955
			);
956
		}
957
958
		$monitor       = new Jetpack_Monitor();
959
		$last_downtime = $monitor->monitor_get_last_downtime();
@@ 983-989 (lines=7) @@
980
	 * @return mixed|WP_Error List of services that verified this site. Otherwise, a WP_Error instance with the corresponding error.
981
	 */
982
	public function get_verification_tools_data() {
983
		if ( ! Jetpack::is_module_active( 'verification-tools' ) ) {
984
			return new WP_Error(
985
				'not_active',
986
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
987
				array( 'status' => 404 )
988
			);
989
		}
990
991
		$verification_services_codes = get_option( 'verification_services_codes' );
992
		if (