Completed
Push — master ( c17b1b...8f13d8 )
by Olivier
13:31 queued 09:59
created
controller/pagecontroller.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
middleware/checkmiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
middleware/checkexception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
controller/pathmanipulation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
controller/httperror.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
controller/filescontroller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
environment/environmentexception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
http/imageresponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
service/previewservice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.