Code Duplication    Length = 7-9 lines in 2 locations

lib/Service/GSDownstreamService.php 2 locations

@@ 141-147 (lines=7) @@
138
	 * @throws GlobalScaleDSyncException
139
	 * @throws GlobalScaleEventException
140
	 */
141
	public function statusEvent(GSEvent $event) {
142
		$this->globalScaleService->checkEvent($event);
143
144
		$gs = $this->globalScaleService->getGlobalScaleEvent($event);
145
		$gs->verify($event, false);
146
		$gs->manage($event);
147
	}
148
149
150
	/**
@@ 153-161 (lines=9) @@
150
	/**
151
	 * @param GSEvent $event
152
	 */
153
	public function onNewEvent(GSEvent $event) {
154
		try {
155
			$this->globalScaleService->checkEvent($event);
156
157
			$gs = $this->globalScaleService->getGlobalScaleEvent($event);
158
			$gs->manage($event);
159
		} catch (Exception $e) {
160
		}
161
	}
162
163
}
164