Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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