@@ -67,7 +67,7 @@ |
||
67 | 67 | try { |
68 | 68 | return $node && $this->isAllowed($node) && $this->isAvailable($node); |
69 | 69 | } catch (\Exception $exception) { |
70 | - $message = 'The folder is not available: ' . $exception->getMessage(); |
|
70 | + $message = 'The folder is not available: '.$exception->getMessage(); |
|
71 | 71 | $this->logger->error($message); |
72 | 72 | |
73 | 73 | return false; |
@@ -300,7 +300,7 @@ |
||
300 | 300 | */ |
301 | 301 | private function buildErrorMessage($exception, $folder) { |
302 | 302 | $configPath = $this->environment->getPathFromVirtualRoot($folder); |
303 | - $errorMessage = $exception->getMessage() . ". Config location: /$configPath"; |
|
303 | + $errorMessage = $exception->getMessage().". Config location: /$configPath"; |
|
304 | 304 | $this->logger->error($errorMessage); |
305 | 305 | $config = ['error' => ['message' => $errorMessage]]; |
306 | 306 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * @param string $msg the message contained in the exception |
26 | 26 | */ |
27 | 27 | public function __construct($msg) { |
28 | - Util::writeLog('galleryplus', 'Exception: ' . $msg, Util::ERROR); |
|
28 | + Util::writeLog('galleryplus', 'Exception: '.$msg, Util::ERROR); |
|
29 | 29 | parent::__construct($msg); |
30 | 30 | } |
31 | 31 | } |
@@ -73,9 +73,9 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | if (!empty($type)) { |
76 | - echo 'event: ' . $type . PHP_EOL; |
|
76 | + echo 'event: '.$type.PHP_EOL; |
|
77 | 77 | } |
78 | - echo 'data: ' . json_encode($data) . PHP_EOL; |
|
78 | + echo 'data: '.json_encode($data).PHP_EOL; |
|
79 | 79 | |
80 | 80 | echo PHP_EOL; |
81 | 81 | flush(); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | private function validateMessage($type, $data) { |
102 | 102 | if ($data && !preg_match('/^[A-Za-z0-9_]+$/', $type)) { |
103 | - throw new \BadMethodCallException('Type needs to be alphanumeric (' . $type . ')'); |
|
103 | + throw new \BadMethodCallException('Type needs to be alphanumeric ('.$type.')'); |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 | } |
@@ -324,8 +324,8 @@ |
||
324 | 324 | $preview = $this->preview; |
325 | 325 | $fixedPreviewObject = new Image($fixedPreview); |
326 | 326 | // Get the location where the broken thumbnail is stored |
327 | - $thumbnailFolder = $this->dataDir . '/' . $owner . '/'; |
|
328 | - $thumbnail = $thumbnailFolder . $preview->isCached($file->getId()); |
|
327 | + $thumbnailFolder = $this->dataDir.'/'.$owner.'/'; |
|
328 | + $thumbnail = $thumbnailFolder.$preview->isCached($file->getId()); |
|
329 | 329 | |
330 | 330 | // Caching it for next time |
331 | 331 | if ($fixedPreviewObject->save($thumbnail)) { |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | $c->query('OCP\INavigationManager') |
27 | 27 | ->add( |
28 | - function () use ($c, $appName) { |
|
28 | + function() use ($c, $appName) { |
|
29 | 29 | $urlGenerator = $c->query('OCP\IURLGenerator'); |
30 | 30 | $l10n = $c->query('OCP\IL10N'); |
31 | 31 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | // The route that will be shown on startup when called from within ownCloud |
40 | 40 | // Public links are using another route, see appinfo/routes.php |
41 | - 'href' => $urlGenerator->linkToRoute($appName . '.page.index'), |
|
41 | + 'href' => $urlGenerator->linkToRoute($appName.'.page.index'), |
|
42 | 42 | |
43 | 43 | // The icon that will be shown in the navigation |
44 | 44 | // This file needs to exist in img/ |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * @param string $msg the message contained in the exception |
26 | 26 | */ |
27 | 27 | public function __construct($msg) { |
28 | - Util::writeLog('galleryplus', 'Exception: ' . $msg, Util::ERROR); |
|
28 | + Util::writeLog('galleryplus', 'Exception: '.$msg, Util::ERROR); |
|
29 | 29 | parent::__construct($msg); |
30 | 30 | } |
31 | 31 | } |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | ) { |
181 | 181 | $message = |
182 | 182 | 'Passed token seems to be valid, but it does not contain all necessary information . ("' |
183 | - . $token . '")'; |
|
183 | + . $token.'")'; |
|
184 | 184 | throw new CheckException($message, Http::STATUS_NOT_FOUND); |
185 | 185 | } |
186 | 186 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | */ |
195 | 195 | private function checkItemType($share) { |
196 | 196 | if ($share->getNodeType() === null) { |
197 | - $message = 'No item type set for share id: ' . $share->getId(); |
|
197 | + $message = 'No item type set for share id: '.$share->getId(); |
|
198 | 198 | throw new CheckException($message, Http::STATUS_NOT_FOUND); |
199 | 199 | } |
200 | 200 | } |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $this->checkPassword($share, $password); |
237 | 237 | } else { |
238 | 238 | throw new CheckException( |
239 | - 'Unknown share type ' . $share->getShareType() . ' for share id ' |
|
239 | + 'Unknown share type '.$share->getShareType().' for share id ' |
|
240 | 240 | . $share->getId(), Http::STATUS_NOT_FOUND |
241 | 241 | ); |
242 | 242 | } |