Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 959-965 (lines=7) @@
956
	 * @return mixed|WP_Error Number of days since last downtime. Otherwise, a WP_Error instance with the corresponding error.
957
	 */
958
	public function get_monitor_data() {
959
		if ( ! Jetpack::is_module_active( 'monitor' ) ) {
960
			return new WP_Error(
961
				'not_active',
962
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
963
				array( 'status' => 404 )
964
			);
965
		}
966
967
		$monitor       = new Jetpack_Monitor();
968
		$last_downtime = $monitor->monitor_get_last_downtime();
@@ 992-998 (lines=7) @@
989
	 * @return mixed|WP_Error List of services that verified this site. Otherwise, a WP_Error instance with the corresponding error.
990
	 */
991
	public function get_verification_tools_data() {
992
		if ( ! Jetpack::is_module_active( 'verification-tools' ) ) {
993
			return new WP_Error(
994
				'not_active',
995
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
996
				array( 'status' => 404 )
997
			);
998
		}
999
1000
		$verification_services_codes = get_option( 'verification_services_codes' );
1001
		if (