Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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