@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | private function getCachedToken(string $cacheKey) { |
65 | - $cachedTokenString = $this->cache->get($cacheKey . '/token'); |
|
65 | + $cachedTokenString = $this->cache->get($cacheKey.'/token'); |
|
66 | 66 | if ($cachedTokenString) { |
67 | 67 | return json_decode($cachedTokenString, true); |
68 | 68 | } else { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ] |
87 | 87 | ]); |
88 | 88 | } |
89 | - $this->cache->set($cacheKey . '/token', $value); |
|
89 | + $this->cache->set($cacheKey.'/token', $value); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | } |
114 | 114 | $this->params = array_merge(self::DEFAULT_OPTIONS, $this->params); |
115 | 115 | |
116 | - $cacheKey = $userName . '@' . $this->params['url'] . '/' . $this->params['container']; |
|
116 | + $cacheKey = $userName.'@'.$this->params['url'].'/'.$this->params['container']; |
|
117 | 117 | $token = $this->getCachedToken($cacheKey); |
118 | 118 | $this->params['cachedToken'] = $token; |
119 | 119 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | if ($authService instanceof IdentityV3Service) { |
150 | 150 | $token = $authService->generateTokenFromCache($cachedToken); |
151 | 151 | if (\is_null($token->catalog)) { |
152 | - $this->logger->warning('Invalid cached token for swift, no catalog set: ' . json_encode($cachedToken)); |
|
152 | + $this->logger->warning('Invalid cached token for swift, no catalog set: '.json_encode($cachedToken)); |
|
153 | 153 | } else if ($token->hasExpired()) { |
154 | 154 | $this->logger->debug('Cached token for swift expired'); |
155 | 155 | } else { |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | } catch (ConnectException $e) { |
243 | 243 | /** @var RequestInterface $request */ |
244 | 244 | $request = $e->getRequest(); |
245 | - $host = $request->getUri()->getHost() . ':' . $request->getUri()->getPort(); |
|
245 | + $host = $request->getUri()->getHost().':'.$request->getUri()->getPort(); |
|
246 | 246 | \OC::$server->getLogger()->error("Can't connect to object storage server at $host"); |
247 | 247 | throw new StorageNotAvailableException("Can't connect to object storage server at $host", StorageNotAvailableException::STATUS_ERROR, $e); |
248 | 248 | } |