| @@ 180-188 (lines=9) @@ | ||
| 177 | 'shareWith' => $uid, |
|
| 178 | ], |
|
| 179 | ]; |
|
| 180 | } else { |
|
| 181 | $this->result['users'][] = [ |
|
| 182 | 'label' => $user->getDisplayName(), |
|
| 183 | 'value' => [ |
|
| 184 | 'shareType' => Share::SHARE_TYPE_USER, |
|
| 185 | 'shareWith' => $uid, |
|
| 186 | ], |
|
| 187 | ]; |
|
| 188 | } |
|
| 189 | } |
|
| 190 | ||
| 191 | if ($this->offset === 0 && !$foundUserById) { |
|
| @@ 257-265 (lines=9) @@ | ||
| 254 | 'shareWith' => $gid, |
|
| 255 | ], |
|
| 256 | ]; |
|
| 257 | } else { |
|
| 258 | $this->result['groups'][] = [ |
|
| 259 | 'label' => $group->getDisplayName(), |
|
| 260 | 'value' => [ |
|
| 261 | 'shareType' => Share::SHARE_TYPE_GROUP, |
|
| 262 | 'shareWith' => $gid, |
|
| 263 | ], |
|
| 264 | ]; |
|
| 265 | } |
|
| 266 | } |
|
| 267 | ||
| 268 | if ($this->offset === 0 && empty($this->result['exact']['groups'])) { |
|