Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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