Code Duplication    Length = 9-10 lines in 2 locations

lib/private/Collaboration/Collaborators/MailPlugin.php 1 location

@@ 133-141 (lines=9) @@
130
								'shareWith' => $emailAddress,
131
							],
132
						];
133
					} else {
134
						$result['wide'][] = [
135
							'label' => $contact['FN'] . " ($emailAddress)",
136
							'value' => [
137
								'shareType' => Share::SHARE_TYPE_EMAIL,
138
								'shareWith' => $emailAddress,
139
							],
140
						];
141
					}
142
				}
143
			}
144
		}

lib/private/Collaboration/Collaborators/RemotePlugin.php 1 location

@@ 89-98 (lines=10) @@
86
								'server' => $serverUrl,
87
							],
88
						];
89
					} else {
90
						$result['wide'][] = [
91
							'label' => $contact['FN'] . " ($cloudId)",
92
							'value' => [
93
								'shareType' => Share::SHARE_TYPE_REMOTE,
94
								'shareWith' => $cloudId,
95
								'server' => $serverUrl,
96
							],
97
						];
98
					}
99
				}
100
			}
101
		}