|
@@ 150-153 (lines=4) @@
|
| 147 |
|
'connect_timeout' => 10, |
| 148 |
|
]); |
| 149 |
|
|
| 150 |
|
if ($response->getStatusCode() === Http::STATUS_CREATED) { |
| 151 |
|
$result = json_decode($response->getBody(), true); |
| 152 |
|
return (is_array($result)) ? $result : []; |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
} catch (\Exception $e) { |
| 156 |
|
// if flat re-sharing is not supported by the remote server |
|
@@ 187-190 (lines=4) @@
|
| 184 |
|
'timeout' => 10, |
| 185 |
|
'connect_timeout' => 10, |
| 186 |
|
]); |
| 187 |
|
if ($response->getStatusCode() === Http::STATUS_CREATED) { |
| 188 |
|
$result = json_decode($response->getBody(), true); |
| 189 |
|
return (is_array($result)) ? $result : []; |
| 190 |
|
} |
| 191 |
|
} catch (\Exception $e) { |
| 192 |
|
// log the error and return false |
| 193 |
|
$this->logger->error('error while sending notification for federated share: ' . $e->getMessage()); |