Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 189-197 (lines=9) @@
186
						'shareWith' => $uid,
187
					],
188
				];
189
			} else {
190
				$this->result['users'][] = [
191
					'label' => $userDisplayName,
192
					'value' => [
193
						'shareType' => Share::SHARE_TYPE_USER,
194
						'shareWith' => $uid,
195
					],
196
				];
197
			}
198
		}
199
200
		if ($this->offset === 0 && !$foundUserById) {
@@ 266-274 (lines=9) @@
263
						'shareWith' => $gid,
264
					],
265
				];
266
			} else {
267
				$this->result['groups'][] = [
268
					'label' => $group->getDisplayName(),
269
					'value' => [
270
						'shareType' => Share::SHARE_TYPE_GROUP,
271
						'shareWith' => $gid,
272
					],
273
				];
274
			}
275
		}
276
277
		if ($this->offset === 0 && empty($this->result['exact']['groups'])) {