Code Duplication    Length = 7-7 lines in 2 locations

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

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