Code Duplication    Length = 9-10 lines in 2 locations

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
		}

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

@@ 163-171 (lines=9) @@
160
								'shareWith' => $emailAddress,
161
							],
162
						];
163
					} else {
164
						$result['wide'][] = [
165
							'label' => $contact['FN'] . " ($emailAddress)",
166
							'value' => [
167
								'shareType' => Share::SHARE_TYPE_EMAIL,
168
								'shareWith' => $emailAddress,
169
							],
170
						];
171
					}
172
				}
173
			}
174
		}