@@ -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(),  | 
                                                        
@@ -188,7 +188,7 @@ discard block  | 
                                                    ||
| 188 | 188 |  		) { | 
                                                        
| 189 | 189 | $message =  | 
                                                        
| 190 | 190 |  				'Passed token seems to be valid, but it does not contain all necessary information . ("' | 
                                                        
| 191 | - . $token . '")';  | 
                                                        |
| 191 | + . $token.'")';  | 
                                                        |
| 192 | 192 | throw new CheckException($message, Http::STATUS_NOT_FOUND);  | 
                                                        
| 193 | 193 | }  | 
                                                        
| 194 | 194 | }  | 
                                                        
@@ -202,7 +202,7 @@ discard block  | 
                                                    ||
| 202 | 202 | */  | 
                                                        
| 203 | 203 |  	private function checkItemType($linkItem) { | 
                                                        
| 204 | 204 |  		if (!isset($linkItem['item_type'])) { | 
                                                        
| 205 | - $message = 'No item type set for share id: ' . $linkItem['id'];  | 
                                                        |
| 205 | + $message = 'No item type set for share id: '.$linkItem['id'];  | 
                                                        |
| 206 | 206 | throw new CheckException($message, Http::STATUS_NOT_FOUND);  | 
                                                        
| 207 | 207 | }  | 
                                                        
| 208 | 208 | }  | 
                                                        
@@ -254,7 +254,7 @@ discard block  | 
                                                    ||
| 254 | 254 | $this->checkPassword($linkItem, $password);  | 
                                                        
| 255 | 255 |  		} else { | 
                                                        
| 256 | 256 | throw new CheckException(  | 
                                                        
| 257 | - 'Unknown share type ' . $linkItem['share_type'] . ' for share id '  | 
                                                        |
| 257 | + 'Unknown share type '.$linkItem['share_type'].' for share id '  | 
                                                        |
| 258 | 258 | . $linkItem['id'], Http::STATUS_NOT_FOUND  | 
                                                        
| 259 | 259 | );  | 
                                                        
| 260 | 260 | }  | 
                                                        
@@ -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 | |