@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } catch (GenericEncryptionException $e) { |
| 105 | 105 | // in case of a encryption exception we delete the file right away |
| 106 | 106 | $this->logger->info( |
| 107 | - "Can't move file " . $path . |
|
| 107 | + "Can't move file ".$path. |
|
| 108 | 108 | " to the trash bin, therefore it was deleted right away"); |
| 109 | 109 | |
| 110 | 110 | return $this->storage->unlink($path); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * @return bool |
| 138 | 138 | */ |
| 139 | 139 | protected function shouldMoveToTrash($path) { |
| 140 | - $normalized = Filesystem::normalizePath($this->mountPoint . '/' . $path); |
|
| 140 | + $normalized = Filesystem::normalizePath($this->mountPoint.'/'.$path); |
|
| 141 | 141 | $parts = explode('/', $normalized); |
| 142 | 142 | if (count($parts) < 4 || strpos($normalized, '/appdata_') === 0) { |
| 143 | 143 | return false; |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * Setup the storate wrapper callback |
| 213 | 213 | */ |
| 214 | 214 | public static function setupStorage() { |
| 215 | - \OC\Files\Filesystem::addStorageWrapper('oc_trashbin', function ($mountPoint, $storage) { |
|
| 215 | + \OC\Files\Filesystem::addStorageWrapper('oc_trashbin', function($mountPoint, $storage) { |
|
| 216 | 216 | return new \OCA\Files_Trashbin\Storage( |
| 217 | 217 | ['storage' => $storage, 'mountPoint' => $mountPoint], |
| 218 | 218 | \OC::$server->query(ITrashManager::class), |