Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 321-327 (lines=7) @@
318
			}
319
			// TODO: check permissions/preconditions in all cases
320
			switch ($notificationType) {
321
				case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED:
322
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
323
					$share = $this->ocmMiddleware->getValidShare(
324
						$providerId, $notification['sharedSecret']
325
					);
326
					$this->fedShareManager->acceptShare($share);
327
					break;
328
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
329
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
330
					$share = $this->ocmMiddleware->getValidShare(
@@ 328-334 (lines=7) @@
325
					);
326
					$this->fedShareManager->acceptShare($share);
327
					break;
328
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
329
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
330
					$share = $this->ocmMiddleware->getValidShare(
331
						$providerId, $notification['sharedSecret']
332
					);
333
					$this->fedShareManager->declineShare($share);
334
					break;
335
				case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE:
336
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
337
					$share = $this->ocmMiddleware->getValidShare(