Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 836-844 (lines=9) @@
833
834
			wp_send_json_success();
835
		}
836
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
837
			$module_slug = $_REQUEST['jitmModule'];
838
839
			// User went to WordPress.com, track this
840
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
841
			$this->do_stats( 'server_side' );
842
843
			wp_send_json_success();
844
		}
845
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
846
			$track = $_REQUEST['jitmModule'];
847
@@ 845-853 (lines=9) @@
842
843
			wp_send_json_success();
844
		}
845
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
846
			$track = $_REQUEST['jitmModule'];
847
848
			// User is viewing JITM, track it.
849
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
850
			$this->do_stats( 'server_side' );
851
852
			wp_send_json_success();
853
		}
854
	}
855
856
	/**