Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 943-949 (lines=7) @@
940
	 * @return mixed|WP_Error Number of days since last downtime. Otherwise, a WP_Error instance with the corresponding error.
941
	 */
942
	public function get_monitor_data() {
943
		if ( ! Jetpack::is_module_active( 'monitor' ) ) {
944
			return new WP_Error(
945
				'not_active',
946
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
947
				array( 'status' => 404 )
948
			);
949
		}
950
951
		$monitor       = new Jetpack_Monitor();
952
		$last_downtime = $monitor->monitor_get_last_downtime();
@@ 976-982 (lines=7) @@
973
	 * @return mixed|WP_Error List of services that verified this site. Otherwise, a WP_Error instance with the corresponding error.
974
	 */
975
	public function get_verification_tools_data() {
976
		if ( ! Jetpack::is_module_active( 'verification-tools' ) ) {
977
			return new WP_Error(
978
				'not_active',
979
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
980
				array( 'status' => 404 )
981
			);
982
		}
983
984
		$verification_services_codes = get_option( 'verification_services_codes' );
985
		if (