Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 826-834 (lines=9) @@
823
824
			wp_send_json_success();
825
		}
826
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
827
			$module_slug = $_REQUEST['jitmModule'];
828
829
			// User went to WordPress.com, track this
830
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
831
			$this->do_stats( 'server_side' );
832
833
			wp_send_json_success();
834
		}
835
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
836
			$track = $_REQUEST['jitmModule'];
837
@@ 835-843 (lines=9) @@
832
833
			wp_send_json_success();
834
		}
835
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
836
			$track = $_REQUEST['jitmModule'];
837
838
			// User is viewing JITM, track it.
839
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
840
			$this->do_stats( 'server_side' );
841
842
			wp_send_json_success();
843
		}
844
	}
845
846
	/**