@@ -103,6 +103,6 @@ |
||
| 103 | 103 | $time = new \DateTime('now', $timeZone); |
| 104 | 104 | $timestampInfo = $time->format($this->config->getSystemValue('logdateformat', \DateTime::ATOM)); |
| 105 | 105 | |
| 106 | - return $timestampInfo . ' ' . $this->formatter->format($message); |
|
| 106 | + return $timestampInfo.' '.$this->formatter->format($message); |
|
| 107 | 107 | } |
| 108 | 108 | } |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | public function getBody() { |
| 56 | 56 | return $this->stream ? |
| 57 | - $this->response->getBody()->detach(): |
|
| 58 | - $this->response->getBody()->getContents(); |
|
| 57 | + $this->response->getBody()->detach() : $this->response->getBody()->getContents(); |
|
| 59 | 58 | } |
| 60 | 59 | |
| 61 | 60 | /** |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * @return string |
| 62 | 62 | */ |
| 63 | 63 | public function __toString() { |
| 64 | - return __CLASS__ . ": [{$this->code}]: {$this->message} ({$this->hint})\n"; |
|
| 64 | + return __CLASS__.": [{$this->code}]: {$this->message} ({$this->hint})\n"; |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function execute($jobList, ILogger $logger = null) { |
| 59 | 59 | // add an interval of 15 mins |
| 60 | - $this->setInterval(15*60); |
|
| 60 | + $this->setInterval(15 * 60); |
|
| 61 | 61 | |
| 62 | 62 | $this->jobList = $jobList; |
| 63 | 63 | $this->logger = $logger; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | try { |
| 91 | 91 | $repair->addStep($step); |
| 92 | 92 | } catch (\Exception $ex) { |
| 93 | - $this->logger->logException($ex,[ |
|
| 93 | + $this->logger->logException($ex, [ |
|
| 94 | 94 | 'app' => 'migration' |
| 95 | 95 | ]); |
| 96 | 96 | |
@@ -41,6 +41,6 @@ |
||
| 41 | 41 | * @return string |
| 42 | 42 | */ |
| 43 | 43 | public function getResourcePath() { |
| 44 | - return $this->webPath . '/' . $this->resource; |
|
| 44 | + return $this->webPath.'/'.$this->resource; |
|
| 45 | 45 | } |
| 46 | 46 | } |
@@ -41,13 +41,13 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function cas($key, $old, $new) { |
| 43 | 43 | //no native cas, emulate with locking |
| 44 | - if ($this->add($key . '_lock', true)) { |
|
| 44 | + if ($this->add($key.'_lock', true)) { |
|
| 45 | 45 | if ($this->get($key) === $old) { |
| 46 | 46 | $this->set($key, $new); |
| 47 | - $this->remove($key . '_lock'); |
|
| 47 | + $this->remove($key.'_lock'); |
|
| 48 | 48 | return true; |
| 49 | 49 | } else { |
| 50 | - $this->remove($key . '_lock'); |
|
| 50 | + $this->remove($key.'_lock'); |
|
| 51 | 51 | return false; |
| 52 | 52 | } |
| 53 | 53 | } else { |
@@ -38,13 +38,13 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function cad($key, $old) { |
| 40 | 40 | //no native cas, emulate with locking |
| 41 | - if ($this->add($key . '_lock', true)) { |
|
| 41 | + if ($this->add($key.'_lock', true)) { |
|
| 42 | 42 | if ($this->get($key) === $old) { |
| 43 | 43 | $this->remove($key); |
| 44 | - $this->remove($key . '_lock'); |
|
| 44 | + $this->remove($key.'_lock'); |
|
| 45 | 45 | return true; |
| 46 | 46 | } else { |
| 47 | - $this->remove($key . '_lock'); |
|
| 47 | + $this->remove($key.'_lock'); |
|
| 48 | 48 | return false; |
| 49 | 49 | } |
| 50 | 50 | } else { |
@@ -372,12 +372,12 @@ |
||
| 372 | 372 | \OC\Files\Filesystem::initMountPoints($userId); |
| 373 | 373 | |
| 374 | 374 | try { |
| 375 | - $folder = $this->get('/' . $userId . '/files'); |
|
| 375 | + $folder = $this->get('/'.$userId.'/files'); |
|
| 376 | 376 | } catch (NotFoundException $e) { |
| 377 | - if (!$this->nodeExists('/' . $userId)) { |
|
| 378 | - $this->newFolder('/' . $userId); |
|
| 377 | + if (!$this->nodeExists('/'.$userId)) { |
|
| 378 | + $this->newFolder('/'.$userId); |
|
| 379 | 379 | } |
| 380 | - $folder = $this->newFolder('/' . $userId . '/files'); |
|
| 380 | + $folder = $this->newFolder('/'.$userId.'/files'); |
|
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | $this->userFolderCache->set($userId, $folder); |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | return null; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - return new MountPoint('\OC\Files\ObjectStore\HomeObjectStoreStorage', '/' . $user->getUID(), $config['arguments'], $loader); |
|
| 67 | + return new MountPoint('\OC\Files\ObjectStore\HomeObjectStoreStorage', '/'.$user->getUID(), $config['arguments'], $loader); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |