Completed
Pull Request — master (#4116)
by Robin
17:09
created
lib/private/Files/ObjectStore/Swift.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.