Completed
Push — stable9 ( 41758a...bf53b6 )
by Lukas
15:58 queued 12:53
created
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.
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.
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.
controller/httperror.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 
51 51
 		// If the exception is not of type ForbiddenServiceException only show a
52 52
 		// generic error message to avoid leaking information.
53
-		if(!($exception instanceof ForbiddenServiceException)) {
53
+		if (!($exception instanceof ForbiddenServiceException)) {
54 54
 			$logger->logException($exception, ['app' => 'gallery']);
55 55
 			$message = sprintf('An error occurred. Request ID: %s', $request->getId());
56 56
 		} else {
57
-			$message = $exception->getMessage() . ' (' . $code . ')';
57
+			$message = $exception->getMessage().' ('.$code.')';
58 58
 		}
59 59
 
60 60
 		return new JSONResponse(
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 		$message = $exception->getMessage();
78 78
 		$code = $this->getHttpStatusCode($exception);
79 79
 		$url = $urlGenerator->linkToRoute(
80
-			$appName . '.page.error_page', ['code' => $code]
80
+			$appName.'.page.error_page', ['code' => $code]
81 81
 		);
82 82
 
83 83
 		$response = new RedirectResponse($url);
Please login to merge, or discard this patch.
service/searchfolderservice.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 	}
98 98
 
99 99
 	/**
100
-	 * @param $depth
100
+	 * @param integer $depth
101 101
 	 *
102 102
 	 * @return bool
103 103
 	 */
Please login to merge, or discard this patch.
middleware/checkexception.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
 	 * @param int $code the HTTP status code
30 30
 	 */
31 31
 	public function __construct($msg, $code = 0) {
32
-		if($msg !== 'Share is a write-only share') {
33
-			Util::writeLog('gallery', 'Exception: ' . $msg . ' (' . $code . ')', Util::ERROR);
32
+		if ($msg !== 'Share is a write-only share') {
33
+			Util::writeLog('gallery', 'Exception: '.$msg.' ('.$code.')', Util::ERROR);
34 34
 		}
35 35
 		parent::__construct($msg, $code);
36 36
 	}
Please login to merge, or discard this patch.
middleware/envcheckmiddleware.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 						"Share is a write-only share", Http::STATUS_FORBIDDEN
136 136
 					);
137 137
 				}
138
-			} catch(\OCP\Share\Exceptions\ShareNotFound $e) {}
138
+			} catch (\OCP\Share\Exceptions\ShareNotFound $e) {}
139 139
 
140 140
 			$linkItem = $this->getLinkItem($token);
141 141
 			$password = $this->request->getParam('password');
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 		) {
205 205
 			$message =
206 206
 				'Passed token seems to be valid, but it does not contain all necessary information . ("'
207
-				. $token . '")';
207
+				. $token.'")';
208 208
 			throw new CheckException($message, Http::STATUS_NOT_FOUND);
209 209
 		}
210 210
 	}
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	 */
219 219
 	private function checkItemType($linkItem) {
220 220
 		if (!isset($linkItem['item_type'])) {
221
-			$message = 'No item type set for share id: ' . $linkItem['id'];
221
+			$message = 'No item type set for share id: '.$linkItem['id'];
222 222
 			throw new CheckException($message, Http::STATUS_NOT_FOUND);
223 223
 		}
224 224
 	}
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 			$this->checkPassword($linkItem, $password);
271 271
 		} else {
272 272
 			throw new CheckException(
273
-				'Unknown share type ' . $linkItem['share_type'] . ' for share id '
273
+				'Unknown share type '.$linkItem['share_type'].' for share id '
274 274
 				. $linkItem['id'], Http::STATUS_NOT_FOUND
275 275
 			);
276 276
 		}
Please login to merge, or discard this patch.
service/serviceexception.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
 	 * @param string $msg the message contained in the exception
26 26
 	 */
27 27
 	public function __construct($msg) {
28
-		if($msg !== 'Share is a write-only share') {
29
-			Util::writeLog('gallery', 'Exception: ' . $msg, Util::ERROR);
28
+		if ($msg !== 'Share is a write-only share') {
29
+			Util::writeLog('gallery', 'Exception: '.$msg, Util::ERROR);
30 30
 		}
31 31
 		parent::__construct($msg);
32 32
 	}
Please login to merge, or discard this patch.