Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 781-789 (lines=9) @@
778
779
			wp_send_json_success();
780
		}
781
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
782
			$module_slug = $_REQUEST['jitmModule'];
783
784
			// User went to WordPress.com, track this
785
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
786
			$this->do_stats( 'server_side' );
787
788
			wp_send_json_success();
789
		}
790
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
791
			$track = $_REQUEST['jitmModule'];
792
@@ 790-798 (lines=9) @@
787
788
			wp_send_json_success();
789
		}
790
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
791
			$track = $_REQUEST['jitmModule'];
792
793
			// User is viewing JITM, track it.
794
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
795
			$this->do_stats( 'server_side' );
796
797
			wp_send_json_success();
798
		}
799
	}
800
801
	/**