Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1549-1555 (lines=7) @@
1546
	 * @return mixed|WP_Error Number of days since last downtime. Otherwise, a WP_Error instance with the corresponding error.
1547
	 */
1548
	public function get_monitor_data() {
1549
		if ( ! Jetpack::is_module_active( 'monitor' ) ) {
1550
			return new WP_Error(
1551
				'not_active',
1552
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
1553
				array( 'status' => 404 )
1554
			);
1555
		}
1556
1557
		$monitor       = new Jetpack_Monitor();
1558
		$last_downtime = $monitor->monitor_get_last_downtime();
@@ 1582-1588 (lines=7) @@
1579
	 * @return mixed|WP_Error List of services that verified this site. Otherwise, a WP_Error instance with the corresponding error.
1580
	 */
1581
	public function get_verification_tools_data() {
1582
		if ( ! Jetpack::is_module_active( 'verification-tools' ) ) {
1583
			return new WP_Error(
1584
				'not_active',
1585
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
1586
				array( 'status' => 404 )
1587
			);
1588
		}
1589
1590
		$verification_services_codes = get_option( 'verification_services_codes' );
1591
		if (