Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 310-315 (lines=6) @@
307
			}
308
			// TODO: check permissions/preconditions in all cases
309
			switch ($notificationType) {
310
				case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED:
311
					$share = $this->getValidShare(
312
						$providerId, $notification['sharedSecret']
313
					);
314
					$this->fedShareManager->acceptShare($share);
315
					break;
316
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
317
					$share = $this->getValidShare(
318
						$providerId, $notification['sharedSecret']
@@ 316-321 (lines=6) @@
313
					);
314
					$this->fedShareManager->acceptShare($share);
315
					break;
316
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
317
					$share = $this->getValidShare(
318
						$providerId, $notification['sharedSecret']
319
					);
320
					$this->fedShareManager->declineShare($share);
321
					break;
322
				case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE:
323
					$shareWithAddress = new Address($notification['shareWith']);
324
					$localShareWith = $shareWithAddress->getUserId();