Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 885-893 (lines=9) @@
882
883
			wp_send_json_success();
884
		}
885
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
886
			$module_slug = $_REQUEST['jitmModule'];
887
888
			// User went to WordPress.com, track this
889
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
890
			$this->do_stats( 'server_side' );
891
892
			wp_send_json_success();
893
		}
894
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
895
			$track = $_REQUEST['jitmModule'];
896
@@ 894-902 (lines=9) @@
891
892
			wp_send_json_success();
893
		}
894
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
895
			$track = $_REQUEST['jitmModule'];
896
897
			// User is viewing JITM, track it.
898
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
899
			$this->do_stats( 'server_side' );
900
901
			wp_send_json_success();
902
		}
903
	}
904
905
	/**