Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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