Code Duplication    Length = 9-9 lines in 2 locations

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

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