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