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

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