Completed
Pull Request — master (#8711)
by Robin
28:47 queued 11:07
created
lib/private/Files/ObjectStore/ObjectStoreStorage.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 			throw new \Exception('missing IObjectStore instance');
56 56
 		}
57 57
 		if (isset($params['storageid'])) {
58
-			$this->id = 'object::store:' . $params['storageid'];
58
+			$this->id = 'object::store:'.$params['storageid'];
59 59
 		} else {
60
-			$this->id = 'object::store:' . $this->objectStore->getStorageId();
60
+			$this->id = 'object::store:'.$this->objectStore->getStorageId();
61 61
 		}
62 62
 		if (isset($params['objectPrefix'])) {
63 63
 			$this->objectPrefix = $params['objectPrefix'];
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 				if ($ex->getCode() !== 404) {
192 192
 					$this->logger->logException($ex, [
193 193
 						'app' => 'objectstore',
194
-						'message' => 'Could not delete object ' . $this->getURN($stat['fileid']) . ' for ' . $path,
194
+						'message' => 'Could not delete object '.$this->getURN($stat['fileid']).' for '.$path,
195 195
 					]);
196 196
 					return false;
197 197
 				}
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 	 */
224 224
 	protected function getURN($fileId) {
225 225
 		if (is_numeric($fileId)) {
226
-			return $this->objectPrefix . $fileId;
226
+			return $this->objectPrefix.$fileId;
227 227
 		}
228 228
 		return null;
229 229
 	}
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 					} catch (\Exception $ex) {
278 278
 						$this->logger->logException($ex, [
279 279
 							'app' => 'objectstore',
280
-							'message' => 'Count not get object ' . $this->getURN($stat['fileid']) . ' for file ' . $path,
280
+							'message' => 'Count not get object '.$this->getURN($stat['fileid']).' for file '.$path,
281 281
 						]);
282 282
 						return false;
283 283
 					}
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 			case 'wb+':
291 291
 				$tmpFile = \OC::$server->getTempManager()->getTemporaryFile($ext);
292 292
 				$handle = fopen($tmpFile, $mode);
293
-				return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
293
+				return CallbackWrapper::wrap($handle, null, null, function() use ($path, $tmpFile) {
294 294
 					$this->writeBack($tmpFile, $path);
295 295
 				});
296 296
 			case 'a':
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
 					file_put_contents($tmpFile, $source);
308 308
 				}
309 309
 				$handle = fopen($tmpFile, $mode);
310
-				return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
310
+				return CallbackWrapper::wrap($handle, null, null, function() use ($path, $tmpFile) {
311 311
 					$this->writeBack($tmpFile, $path);
312 312
 				});
313 313
 		}
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 
317 317
 	public function file_exists($path) {
318 318
 		$path = $this->normalizePath($path);
319
-		return (bool)$this->stat($path);
319
+		return (bool) $this->stat($path);
320 320
 	}
321 321
 
322 322
 	public function rename($source, $target) {
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 			} catch (\Exception $ex) {
374 374
 				$this->logger->logException($ex, [
375 375
 					'app' => 'objectstore',
376
-					'message' => 'Could not create object for ' . $path,
376
+					'message' => 'Could not create object for '.$path,
377 377
 				]);
378 378
 				throw $ex;
379 379
 			}
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 			$this->getCache()->remove($path);
414 414
 			$this->logger->logException($ex, [
415 415
 				'app' => 'objectstore',
416
-				'message' => 'Could not create object ' . $this->getURN($fileId) . ' for ' . $path,
416
+				'message' => 'Could not create object '.$this->getURN($fileId).' for '.$path,
417 417
 			]);
418 418
 			throw $ex; // make this bubble up
419 419
 		}
Please login to merge, or discard this patch.