Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 172-180 (lines=9) @@
169
						'shareWith' => $uid,
170
					],
171
				];
172
			} else {
173
				$this->result['users'][] = [
174
					'label' => $userDisplayName,
175
					'value' => [
176
						'shareType' => Share::SHARE_TYPE_USER,
177
						'shareWith' => $uid,
178
					],
179
				];
180
			}
181
		}
182
183
		if ($this->offset === 0 && !$foundUserById) {
@@ 243-251 (lines=9) @@
240
						'shareWith' => $gid,
241
					],
242
				];
243
			} else {
244
				$this->result['groups'][] = [
245
					'label' => $gid,
246
					'value' => [
247
						'shareType' => Share::SHARE_TYPE_GROUP,
248
						'shareWith' => $gid,
249
					],
250
				];
251
			}
252
		}
253
254
		if ($this->offset === 0 && empty($this->result['exact']['groups'])) {