Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 594-602 (lines=9) @@
591
592
			wp_send_json_success();
593
		}
594
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
595
			$module_slug = $_REQUEST['jitmModule'];
596
597
			// User went to WordPress.com, track this
598
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
599
			$this->do_stats( 'server_side' );
600
601
			wp_send_json_success();
602
		}
603
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
604
			$track = $_REQUEST['jitmModule'];
605
@@ 603-611 (lines=9) @@
600
601
			wp_send_json_success();
602
		}
603
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
604
			$track = $_REQUEST['jitmModule'];
605
606
			// User is viewing JITM, track it.
607
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
608
			$this->do_stats( 'server_side' );
609
610
			wp_send_json_success();
611
		}
612
	}
613
614
	/**