| @@ 173-181 (lines=9) @@ | ||
| 170 | 'shareWith' => $uid, |
|
| 171 | ], |
|
| 172 | ]; |
|
| 173 | } else { |
|
| 174 | $this->result['users'][] = [ |
|
| 175 | 'label' => $userDisplayName, |
|
| 176 | 'value' => [ |
|
| 177 | 'shareType' => Share::SHARE_TYPE_USER, |
|
| 178 | 'shareWith' => $uid, |
|
| 179 | ], |
|
| 180 | ]; |
|
| 181 | } |
|
| 182 | } |
|
| 183 | ||
| 184 | if ($this->offset === 0 && !$foundUserById) { |
|
| @@ 244-252 (lines=9) @@ | ||
| 241 | 'shareWith' => $gid, |
|
| 242 | ], |
|
| 243 | ]; |
|
| 244 | } else { |
|
| 245 | $this->result['groups'][] = [ |
|
| 246 | 'label' => $gid, |
|
| 247 | 'value' => [ |
|
| 248 | 'shareType' => Share::SHARE_TYPE_GROUP, |
|
| 249 | 'shareWith' => $gid, |
|
| 250 | ], |
|
| 251 | ]; |
|
| 252 | } |
|
| 253 | } |
|
| 254 | ||
| 255 | if ($this->offset === 0 && empty($this->result['exact']['groups'])) { |
|
| @@ 309-318 (lines=10) @@ | ||
| 306 | 'server' => $serverUrl, |
|
| 307 | ], |
|
| 308 | ]; |
|
| 309 | } else { |
|
| 310 | $this->result['remotes'][] = [ |
|
| 311 | 'label' => $contact['FN'], |
|
| 312 | 'value' => [ |
|
| 313 | 'shareType' => Share::SHARE_TYPE_REMOTE, |
|
| 314 | 'shareWith' => $cloudId, |
|
| 315 | 'server' => $serverUrl, |
|
| 316 | ], |
|
| 317 | ]; |
|
| 318 | } |
|
| 319 | } |
|
| 320 | } |
|
| 321 | } |
|