Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1495-1501 (lines=7) @@
1492
	 * @return mixed|WP_Error Number of days since last downtime. Otherwise, a WP_Error instance with the corresponding error.
1493
	 */
1494
	public function get_monitor_data() {
1495
		if ( ! Jetpack::is_module_active( 'monitor' ) ) {
1496
			return new WP_Error(
1497
				'not_active',
1498
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
1499
				array( 'status' => 404 )
1500
			);
1501
		}
1502
1503
		$monitor       = new Jetpack_Monitor();
1504
		$last_downtime = $monitor->monitor_get_last_downtime();
@@ 1528-1534 (lines=7) @@
1525
	 * @return mixed|WP_Error List of services that verified this site. Otherwise, a WP_Error instance with the corresponding error.
1526
	 */
1527
	public function get_verification_tools_data() {
1528
		if ( ! Jetpack::is_module_active( 'verification-tools' ) ) {
1529
			return new WP_Error(
1530
				'not_active',
1531
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
1532
				array( 'status' => 404 )
1533
			);
1534
		}
1535
1536
		$verification_services_codes = get_option( 'verification_services_codes' );
1537
		if (