Code Duplication    Length = 6-6 lines in 2 locations

apps/federatedfilesharing/lib/Controller/OcmController.php 2 locations

@@ 285-290 (lines=6) @@
282
			}
283
			// TODO: check permissions/preconditions in all cases
284
			switch ($notificationType) {
285
				case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED:
286
					$share = $this->getValidShare(
287
						$providerId, $notification['sharedSecret']
288
					);
289
					$this->fedShareManager->acceptShare($share);
290
					break;
291
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
292
					$share = $this->getValidShare(
293
						$providerId, $notification['sharedSecret']
@@ 291-296 (lines=6) @@
288
					);
289
					$this->fedShareManager->acceptShare($share);
290
					break;
291
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
292
					$share = $this->getValidShare(
293
						$providerId, $notification['sharedSecret']
294
					);
295
					$this->fedShareManager->declineShare($share);
296
					break;
297
				case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE:
298
					$shareWith = $notification['shareWith'];
299
					$share = $this->getValidShare(