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