@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $storageConfigs = $this->userGlobalStoragesService->getAllStoragesForUser(); |
129 | 129 | |
130 | - $storages = array_map(function (StorageConfig $storageConfig) use ($user) { |
|
130 | + $storages = array_map(function(StorageConfig $storageConfig) use ($user) { |
|
131 | 131 | try { |
132 | 132 | $this->prepareStorageConfig($storageConfig, $user); |
133 | 133 | return $this->constructStorage($storageConfig); |
@@ -138,16 +138,16 @@ discard block |
||
138 | 138 | }, $storageConfigs); |
139 | 139 | |
140 | 140 | |
141 | - \OC\Files\Cache\Storage::getGlobalCache()->loadForStorageIds(array_map(function (Storage\IStorage $storage) { |
|
141 | + \OC\Files\Cache\Storage::getGlobalCache()->loadForStorageIds(array_map(function(Storage\IStorage $storage) { |
|
142 | 142 | return $storage->getId(); |
143 | 143 | }, $storages)); |
144 | 144 | |
145 | - $availableStorages = array_map(function (Storage\IStorage $storage, StorageConfig $storageConfig) { |
|
145 | + $availableStorages = array_map(function(Storage\IStorage $storage, StorageConfig $storageConfig) { |
|
146 | 146 | try { |
147 | 147 | $availability = $storage->getAvailability(); |
148 | 148 | if (!$availability['available'] && !Availability::shouldRecheck($availability)) { |
149 | 149 | $storage = new FailedStorage([ |
150 | - 'exception' => new StorageNotAvailableException('Storage with mount id ' . $storageConfig->getId() . ' is not available') |
|
150 | + 'exception' => new StorageNotAvailableException('Storage with mount id '.$storageConfig->getId().' is not available') |
|
151 | 151 | ]); |
152 | 152 | } |
153 | 153 | } catch (\Exception $e) { |
@@ -157,13 +157,13 @@ discard block |
||
157 | 157 | return $storage; |
158 | 158 | }, $storages, $storageConfigs); |
159 | 159 | |
160 | - $mounts = array_map(function (StorageConfig $storageConfig, Storage\IStorage $storage) use ($user, $loader) { |
|
160 | + $mounts = array_map(function(StorageConfig $storageConfig, Storage\IStorage $storage) use ($user, $loader) { |
|
161 | 161 | if ($storageConfig->getType() === StorageConfig::MOUNT_TYPE_PERSONAl) { |
162 | 162 | return new PersonalMount( |
163 | 163 | $this->userStoragesService, |
164 | 164 | $storageConfig->getId(), |
165 | 165 | $storage, |
166 | - '/' . $user->getUID() . '/files' . $storageConfig->getMountPoint(), |
|
166 | + '/'.$user->getUID().'/files'.$storageConfig->getMountPoint(), |
|
167 | 167 | null, |
168 | 168 | $loader, |
169 | 169 | $storageConfig->getMountOptions(), |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | } else { |
173 | 173 | return new ExternalMountPoint( |
174 | 174 | $storage, |
175 | - '/' . $user->getUID() . '/files' . $storageConfig->getMountPoint(), |
|
175 | + '/'.$user->getUID().'/files'.$storageConfig->getMountPoint(), |
|
176 | 176 | null, |
177 | 177 | $loader, |
178 | 178 | $storageConfig->getMountOptions(), |