Code Duplication    Length = 7-7 lines in 2 locations

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

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