Code Duplication    Length = 9-9 lines in 2 locations

apps/files_sharing/lib/Controller/ShareesAPIController.php 2 locations

@@ 614-622 (lines=9) @@
611
					if (isset($contact['isLocalSystemBook'])) {
612
						if ($exactEmailMatch) {
613
							$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
614
							if (!$this->hasUserInResult($cloud->getUser())) {
615
								$this->result['exact']['users'][] = [
616
									'label' => $contact['FN'] . " ($emailAddress)",
617
									'value' => [
618
										'shareType' => Share::SHARE_TYPE_USER,
619
										'shareWith' => $cloud->getUser(),
620
									],
621
								];
622
							}
623
							return ['results' => [], 'exact' => [], 'exactIdMatch' => true];
624
						}
625
						if ($this->shareeEnumeration) {
@@ 627-635 (lines=9) @@
624
						}
625
						if ($this->shareeEnumeration) {
626
							$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
627
							if (!$this->hasUserInResult($cloud->getUser())) {
628
								$this->result['users'][] = [
629
									'label' => $contact['FN'] . " ($emailAddress)",
630
									'value' => [
631
										'shareType' => Share::SHARE_TYPE_USER,
632
										'shareWith' => $cloud->getUser(),
633
									],
634
								];
635
							}
636
						}
637
						continue;
638
					}