Completed
Pull Request — stable9 (#47)
by Olivier
08:46
created
environment/environment.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	 * without having to know whether they're private or public
141 141
 	 */
142 142
 	public function setStandardEnv() {
143
-		$this->fromRootToFolder = $this->userFolder->getPath() . '/';
143
+		$this->fromRootToFolder = $this->userFolder->getPath().'/';
144 144
 	}
145 145
 
146 146
 	/**
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 	 */
153 153
 	public function getNodeFromVirtualRoot($subPath) {
154 154
 		$relativePath = $this->getRelativePath($this->fromRootToFolder);
155
-		$path = $relativePath . '/' . $subPath;
155
+		$path = $relativePath.'/'.$subPath;
156 156
 		$node = $this->getNodeFromUserFolder($path);
157 157
 
158 158
 		return $this->getResourceFromId($node->getId());
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 			try {
179 179
 				$node = $folder->get($path);
180 180
 			} catch (NotFoundException $exception) {
181
-				$message = 'Could not find anything at: ' . $exception->getMessage();
181
+				$message = 'Could not find anything at: '.$exception->getMessage();
182 182
 				throw new NotFoundEnvException($message);
183 183
 			}
184 184
 		}
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 	public function getResourceFromId($resourceId) {
199 199
 		$resourcesArray = $this->userFolder->getById($resourceId);
200 200
 		if ($resourcesArray[0] === null) {
201
-			throw new NotFoundEnvException('Could not locate file linked to ID: ' . $resourceId);
201
+			throw new NotFoundEnvException('Could not locate file linked to ID: '.$resourceId);
202 202
 		}
203 203
 
204 204
 		return $resourcesArray[0];
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 			if ($nodeType === 'dir') {
228 228
 				$rootFolder = $node;
229 229
 			} else {
230
-				throw new NotFoundEnvException($node->getPath() . ' is not a folder');
230
+				throw new NotFoundEnvException($node->getPath().' is not a folder');
231 231
 			}
232 232
 		}
233 233
 
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 	 */
341 341
 	private function buildFromRootToFolder($fileSource) {
342 342
 		$resource = $this->getResourceFromId($fileSource);
343
-		$fromRootToFolder = $resource->getPath() . '/';
343
+		$fromRootToFolder = $resource->getPath().'/';
344 344
 
345 345
 		return $fromRootToFolder;
346 346
 	}
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 	 * @return string
361 361
 	 */
362 362
 	private function getRelativePath($fullPath) {
363
-		$folderPath = $this->userFolder->getPath() . '/';
363
+		$folderPath = $this->userFolder->getPath().'/';
364 364
 		$origShareRelPath = str_replace($folderPath, '', $fullPath);
365 365
 
366 366
 		return $origShareRelPath;
Please login to merge, or discard this patch.
appinfo/app.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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/
Please login to merge, or discard this patch.
middleware/envcheckmiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.