Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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