Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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