Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 771-779 (lines=9) @@
768
769
			wp_send_json_success();
770
		}
771
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
772
			$module_slug = $_REQUEST['jitmModule'];
773
774
			// User went to WordPress.com, track this
775
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
776
			$this->do_stats( 'server_side' );
777
778
			wp_send_json_success();
779
		}
780
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
781
			$track = $_REQUEST['jitmModule'];
782
@@ 780-788 (lines=9) @@
777
778
			wp_send_json_success();
779
		}
780
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
781
			$track = $_REQUEST['jitmModule'];
782
783
			// User is viewing JITM, track it.
784
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
785
			$this->do_stats( 'server_side' );
786
787
			wp_send_json_success();
788
		}
789
	}
790
791
	/**