@@ -74,14 +74,14 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | if (isset($params['apiKey'])) { |
| 76 | 76 | $this->client = new Rackspace($params['url'], $params); |
| 77 | - $cacheKey = $this->params['username'] . '@' . $this->params['url'] . '/' . $this->params['bucket']; |
|
| 77 | + $cacheKey = $this->params['username'].'@'.$this->params['url'].'/'.$this->params['bucket']; |
|
| 78 | 78 | } else { |
| 79 | 79 | $this->client = new OpenStack($params['url'], $params); |
| 80 | - $cacheKey = $this->params['username'] . '@' . $this->params['url'] . '/' . $this->params['bucket']; |
|
| 80 | + $cacheKey = $this->params['username'].'@'.$this->params['url'].'/'.$this->params['bucket']; |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | $cacheFactory = \OC::$server->getMemCacheFactory(); |
| 84 | - $this->memcache = $cacheFactory->create('swift::' . $cacheKey); |
|
| 84 | + $this->memcache = $cacheFactory->create('swift::'.$cacheKey); |
|
| 85 | 85 | |
| 86 | 86 | $this->params = $params; |
| 87 | 87 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | } |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | - $availableRegions = implode(', ', array_map(function ($endpoint) { |
|
| 190 | + $availableRegions = implode(', ', array_map(function($endpoint) { |
|
| 191 | 191 | return $endpoint->region; |
| 192 | 192 | }, $endPoints)); |
| 193 | 193 | |
@@ -195,9 +195,9 @@ discard block |
||
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | private function getAvailableServiceNames(Catalog $catalog) { |
| 198 | - return array_map(function (CatalogItem $item) { |
|
| 198 | + return array_map(function(CatalogItem $item) { |
|
| 199 | 199 | return $item->getName(); |
| 200 | - }, array_filter($catalog->getItems(), function (CatalogItem $item) { |
|
| 200 | + }, array_filter($catalog->getItems(), function(CatalogItem $item) { |
|
| 201 | 201 | return $item->hasType(Service::DEFAULT_TYPE); |
| 202 | 202 | })); |
| 203 | 203 | } |