@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | IClientService $httpClientService, |
| 75 | 75 | ICloudIdManager $cloudIdManager, |
| 76 | 76 | ILogger $logger) { |
| 77 | - $this->cloudFederationProvider= []; |
|
| 77 | + $this->cloudFederationProvider = []; |
|
| 78 | 78 | $this->appManager = $appManager; |
| 79 | 79 | $this->httpClientService = $httpClientService; |
| 80 | 80 | $this->cloudIdManager = $cloudIdManager; |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | |
| 141 | 141 | $client = $this->httpClientService->newClient(); |
| 142 | 142 | try { |
| 143 | - $response = $client->post($ocmEndPoint . '/shares', [ |
|
| 143 | + $response = $client->post($ocmEndPoint.'/shares', [ |
|
| 144 | 144 | 'body' => json_encode($share->getShare()), |
| 145 | 145 | 'headers' => ['content-type' => 'application/json'], |
| 146 | 146 | 'timeout' => 10, |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | |
| 181 | 181 | $client = $this->httpClientService->newClient(); |
| 182 | 182 | try { |
| 183 | - $response = $client->post($ocmEndPoint . '/notifications', [ |
|
| 183 | + $response = $client->post($ocmEndPoint.'/notifications', [ |
|
| 184 | 184 | 'body' => json_encode($notification->getMessage()), |
| 185 | 185 | 'headers' => ['content-type' => 'application/json'], |
| 186 | 186 | 'timeout' => 10, |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | } |
| 193 | 193 | } catch (\Exception $e) { |
| 194 | 194 | // log the error and return false |
| 195 | - $this->logger->error('error while sending notification for federated share: ' . $e->getMessage()); |
|
| 195 | + $this->logger->error('error while sending notification for federated share: '.$e->getMessage()); |
|
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | return false; |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | |
| 221 | 221 | $client = $this->httpClientService->newClient(); |
| 222 | 222 | try { |
| 223 | - $response = $client->get($url . '/ocm-provider/', ['timeout' => 10, 'connect_timeout' => 10]); |
|
| 223 | + $response = $client->get($url.'/ocm-provider/', ['timeout' => 10, 'connect_timeout' => 10]); |
|
| 224 | 224 | } catch (\Exception $e) { |
| 225 | 225 | $this->ocmEndPoints[$url] = ''; |
| 226 | 226 | return ''; |