Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1368-1374 (lines=7) @@
1365
	 * @return mixed|WP_Error Number of days since last downtime. Otherwise, a WP_Error instance with the corresponding error.
1366
	 */
1367
	public function get_monitor_data() {
1368
		if ( ! Jetpack::is_module_active( 'monitor' ) ) {
1369
			return new WP_Error(
1370
				'not_active',
1371
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
1372
				array( 'status' => 404 )
1373
			);
1374
		}
1375
1376
		$monitor       = new Jetpack_Monitor();
1377
		$last_downtime = $monitor->monitor_get_last_downtime();
@@ 1401-1407 (lines=7) @@
1398
	 * @return mixed|WP_Error List of services that verified this site. Otherwise, a WP_Error instance with the corresponding error.
1399
	 */
1400
	public function get_verification_tools_data() {
1401
		if ( ! Jetpack::is_module_active( 'verification-tools' ) ) {
1402
			return new WP_Error(
1403
				'not_active',
1404
				esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ),
1405
				array( 'status' => 404 )
1406
			);
1407
		}
1408
1409
		$verification_services_codes = get_option( 'verification_services_codes' );
1410
		if (