@@ -190,7 +190,7 @@ |
||
190 | 190 | /** |
191 | 191 | * Shows the albums and pictures the token gives access to |
192 | 192 | * |
193 | - * @param $token |
|
193 | + * @param string $token |
|
194 | 194 | * |
195 | 195 | * @return TemplateResponse |
196 | 196 | */ |
@@ -122,7 +122,7 @@ |
||
122 | 122 | return $this->showPublicPage($token); |
123 | 123 | } else { |
124 | 124 | $url = $this->urlGenerator->linkToRoute( |
125 | - $this->appName . '.files_public.download', |
|
125 | + $this->appName.'.files_public.download', |
|
126 | 126 | [ |
127 | 127 | 'token' => $token, |
128 | 128 | 'fileId' => $node->getId(), |
@@ -149,7 +149,7 @@ |
||
149 | 149 | */ |
150 | 150 | private function redirectToErrorPage($message, $code) { |
151 | 151 | $url = $this->urlGenerator->linkToRoute( |
152 | - $this->appName . '.page.error_page', ['code' => $code] |
|
152 | + $this->appName.'.page.error_page', ['code' => $code] |
|
153 | 153 | ); |
154 | 154 | |
155 | 155 | $response = new RedirectResponse($url); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * @param int $code the HTTP status code |
30 | 30 | */ |
31 | 31 | public function __construct($msg, $code = 0) { |
32 | - Util::writeLog('galleryplus', 'Exception: ' . $msg . ' (' . $code . ')', Util::ERROR); |
|
32 | + Util::writeLog('galleryplus', 'Exception: '.$msg.' ('.$code.')', Util::ERROR); |
|
33 | 33 | parent::__construct($msg, $code); |
34 | 34 | } |
35 | 35 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $subFolders = explode('/', $relativePath); |
43 | 43 | |
44 | 44 | if (count($subFolders) > 2) { |
45 | - $reducedPath = $currFolderPath . $subFolders[0] . '/' . array_pop($subFolders); |
|
45 | + $reducedPath = $currFolderPath.$subFolders[0].'/'.array_pop($subFolders); |
|
46 | 46 | } else { |
47 | 47 | $reducedPath = $path; |
48 | 48 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | return new JSONResponse( |
47 | 47 | [ |
48 | - 'message' => $message . ' (' . $code . ')', |
|
48 | + 'message' => $message.' ('.$code.')', |
|
49 | 49 | 'success' => false |
50 | 50 | ], |
51 | 51 | $code |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $message = $exception->getMessage(); |
64 | 64 | $code = $this->getHttpStatusCode($exception); |
65 | 65 | $url = $urlGenerator->linkToRoute( |
66 | - $appName . '.page.error_page', ['code' => $code] |
|
66 | + $appName.'.page.error_page', ['code' => $code] |
|
67 | 67 | ); |
68 | 68 | |
69 | 69 | $response = new RedirectResponse($url); |
@@ -117,7 +117,7 @@ |
||
117 | 117 | } catch (ServiceException $exception) { |
118 | 118 | $code = $this->getHttpStatusCode($exception); |
119 | 119 | $url = $this->urlGenerator->linkToRoute( |
120 | - $this->appName . '.page.error_page', ['code' => $code] |
|
120 | + $this->appName.'.page.error_page', ['code' => $code] |
|
121 | 121 | ); |
122 | 122 | |
123 | 123 | $response = new RedirectResponse($url); |
@@ -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 | } |
@@ -38,10 +38,10 @@ |
||
38 | 38 | $this->preview = $image['preview']; |
39 | 39 | |
40 | 40 | $this->setStatus($statusCode); |
41 | - $this->addHeader('Content-type', $image['mimetype'] . '; charset=utf-8'); |
|
41 | + $this->addHeader('Content-type', $image['mimetype'].'; charset=utf-8'); |
|
42 | 42 | $this->addHeader('Content-Disposition', |
43 | - 'attachment; filename*=UTF-8\'\'' . rawurlencode($name) . '; filename="' |
|
44 | - . rawurlencode($name) . '"' |
|
43 | + 'attachment; filename*=UTF-8\'\''.rawurlencode($name).'; filename="' |
|
44 | + . rawurlencode($name).'"' |
|
45 | 45 | ); |
46 | 46 | } |
47 | 47 |
@@ -243,7 +243,7 @@ |
||
243 | 243 | } |
244 | 244 | } catch (\Exception $exception) { |
245 | 245 | throw new InternalServerErrorServiceException( |
246 | - 'Something went wrong when trying to read' . $file->getPath() |
|
246 | + 'Something went wrong when trying to read'.$file->getPath() |
|
247 | 247 | ); |
248 | 248 | } |
249 | 249 |