@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * without having to know whether they're private or public |
| 144 | 144 | */ |
| 145 | 145 | public function setStandardEnv() { |
| 146 | - $this->fromRootToFolder = $this->userFolder->getPath() . '/'; |
|
| 146 | + $this->fromRootToFolder = $this->userFolder->getPath().'/'; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | */ |
| 165 | 165 | public function getNodeFromVirtualRoot($subPath) { |
| 166 | 166 | $relativePath = $this->getRelativePath($this->fromRootToFolder); |
| 167 | - $path = $relativePath . '/' . $subPath; |
|
| 167 | + $path = $relativePath.'/'.$subPath; |
|
| 168 | 168 | $node = $this->getNodeFromUserFolder($path); |
| 169 | 169 | |
| 170 | 170 | return $this->getResourceFromId($node->getId()); |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | try { |
| 191 | 191 | $node = $folder->get($path); |
| 192 | 192 | } catch (NotFoundException $exception) { |
| 193 | - $message = 'Could not find anything at: ' . $exception->getMessage(); |
|
| 193 | + $message = 'Could not find anything at: '.$exception->getMessage(); |
|
| 194 | 194 | throw new NotFoundEnvException($message); |
| 195 | 195 | } |
| 196 | 196 | } |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | if ($nodeType === 'dir') { |
| 245 | 245 | $rootFolder = $node; |
| 246 | 246 | } else { |
| 247 | - throw new NotFoundEnvException($node->getPath() . ' is not a folder'); |
|
| 247 | + throw new NotFoundEnvException($node->getPath().' is not a folder'); |
|
| 248 | 248 | } |
| 249 | 249 | } |
| 250 | 250 | |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | $resourcesArray = $folder->getById($resourceId); |
| 359 | 359 | |
| 360 | 360 | if ($resourcesArray[0] === null) { |
| 361 | - throw new NotFoundEnvException('Could not locate node linked to ID: ' . $resourceId); |
|
| 361 | + throw new NotFoundEnvException('Could not locate node linked to ID: '.$resourceId); |
|
| 362 | 362 | } |
| 363 | 363 | |
| 364 | 364 | return $resourcesArray[0]; |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | */ |
| 377 | 377 | private function buildFromRootToFolder($fileSource) { |
| 378 | 378 | $resource = $this->getResourceFromId($fileSource); |
| 379 | - $fromRootToFolder = $resource->getPath() . '/'; |
|
| 379 | + $fromRootToFolder = $resource->getPath().'/'; |
|
| 380 | 380 | |
| 381 | 381 | return $fromRootToFolder; |
| 382 | 382 | } |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | * @return string |
| 397 | 397 | */ |
| 398 | 398 | private function getRelativePath($fullPath) { |
| 399 | - $folderPath = $this->userFolder->getPath() . '/'; |
|
| 399 | + $folderPath = $this->userFolder->getPath().'/'; |
|
| 400 | 400 | $origShareRelPath = str_replace($folderPath, '', $fullPath); |
| 401 | 401 | |
| 402 | 402 | return $origShareRelPath; |