Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 952-960 (lines=9) @@
949
950
			wp_send_json_success();
951
		}
952
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
953
			$module_slug = $_REQUEST['jitmModule'];
954
955
			// User went to WordPress.com, track this
956
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
957
			$this->do_stats( 'server_side' );
958
959
			wp_send_json_success();
960
		}
961
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
962
			$track = $_REQUEST['jitmModule'];
963
@@ 961-969 (lines=9) @@
958
959
			wp_send_json_success();
960
		}
961
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
962
			$track = $_REQUEST['jitmModule'];
963
964
			// User is viewing JITM, track it.
965
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
966
			$this->do_stats( 'server_side' );
967
968
			wp_send_json_success();
969
		}
970
	}
971
972
	/**