Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 308-314 (lines=7) @@
305
			}
306
307
			switch ($notificationType) {
308
				case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED:
309
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
310
					$share = $this->ocmMiddleware->getValidShare(
311
						$providerId, $notification['sharedSecret']
312
					);
313
					$this->fedShareManager->acceptShare($share);
314
					break;
315
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
316
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
317
					$share = $this->ocmMiddleware->getValidShare(
@@ 315-321 (lines=7) @@
312
					);
313
					$this->fedShareManager->acceptShare($share);
314
					break;
315
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
316
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
317
					$share = $this->ocmMiddleware->getValidShare(
318
						$providerId, $notification['sharedSecret']
319
					);
320
					$this->fedShareManager->declineShare($share);
321
					break;
322
				case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE:
323
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
324
					$this->ocmMiddleware->assertNotNull(