@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $this->config = $config; |
100 | 100 | |
101 | 101 | $this->excludedPaths[] = 'files_encryption'; |
102 | - $this->excludedPaths[] = 'appdata_' . $config->getSystemValue('instanceid', null); |
|
102 | + $this->excludedPaths[] = 'appdata_'.$config->getSystemValue('instanceid', null); |
|
103 | 103 | $this->excludedPaths[] = 'files_external'; |
104 | 104 | } |
105 | 105 | |
@@ -139,12 +139,12 @@ discard block |
||
139 | 139 | * @throws EncryptionHeaderKeyExistsException if header key is already in use |
140 | 140 | */ |
141 | 141 | public function createHeader(array $headerData, IEncryptionModule $encryptionModule) { |
142 | - $header = self::HEADER_START . ':' . self::HEADER_ENCRYPTION_MODULE_KEY . ':' . $encryptionModule->getId() . ':'; |
|
142 | + $header = self::HEADER_START.':'.self::HEADER_ENCRYPTION_MODULE_KEY.':'.$encryptionModule->getId().':'; |
|
143 | 143 | foreach ($headerData as $key => $value) { |
144 | 144 | if (in_array($key, $this->ocHeaderKeys)) { |
145 | 145 | throw new EncryptionHeaderKeyExistsException($key); |
146 | 146 | } |
147 | - $header .= $key . ':' . $value . ':'; |
|
147 | + $header .= $key.':'.$value.':'; |
|
148 | 148 | } |
149 | 149 | $header .= self::HEADER_END; |
150 | 150 | |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | $result = []; |
270 | 270 | if ($users === [] && $groups === []) { |
271 | 271 | $users = $this->userManager->search('', null, null); |
272 | - $result = array_map(function (IUser $user) { |
|
272 | + $result = array_map(function(IUser $user) { |
|
273 | 273 | return $user->getUID(); |
274 | 274 | }, $users); |
275 | 275 | } else { |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | $storageService = \OC::$server->get(GlobalStoragesService::class); |
305 | 305 | $storages = $storageService->getAllStorages(); |
306 | 306 | foreach ($storages as $storage) { |
307 | - if (strpos($path, '/files/' . $storage->getMountPoint()) === 0) { |
|
307 | + if (strpos($path, '/files/'.$storage->getMountPoint()) === 0) { |
|
308 | 308 | if ($this->isMountPointApplicableToUser($storage, $uid)) { |
309 | 309 | return true; |
310 | 310 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | use OCP\Group\Events\GroupDeletedEvent; |
72 | 72 | use OCP\User\Events\UserDeletedEvent; |
73 | 73 | |
74 | -require_once __DIR__ . '/../../3rdparty/autoload.php'; |
|
74 | +require_once __DIR__.'/../../3rdparty/autoload.php'; |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * @package OCA\Files_External\AppInfo |
@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | public function boot(IBootContext $context): void { |
96 | - $context->injectFn(function (IMountProviderCollection $mountProviderCollection, ConfigAdapter $configAdapter) { |
|
96 | + $context->injectFn(function(IMountProviderCollection $mountProviderCollection, ConfigAdapter $configAdapter) { |
|
97 | 97 | $mountProviderCollection->registerProvider($configAdapter); |
98 | 98 | }); |
99 | - \OCA\Files\App::getNavigationManager()->add(function () { |
|
99 | + \OCA\Files\App::getNavigationManager()->add(function() { |
|
100 | 100 | $l = \OC::$server->getL10N('files_external'); |
101 | 101 | return [ |
102 | 102 | 'id' => 'extstoragemounts', |
@@ -106,10 +106,10 @@ discard block |
||
106 | 106 | 'name' => $l->t('External storage'), |
107 | 107 | ]; |
108 | 108 | }); |
109 | - $context->injectFn(function (BackendService $backendService, UserPlaceholderHandler $userConfigHandler) { |
|
109 | + $context->injectFn(function(BackendService $backendService, UserPlaceholderHandler $userConfigHandler) { |
|
110 | 110 | $backendService->registerBackendProvider($this); |
111 | 111 | $backendService->registerAuthMechanismProvider($this); |
112 | - $backendService->registerConfigHandler('user', function () use ($userConfigHandler) { |
|
112 | + $backendService->registerConfigHandler('user', function() use ($userConfigHandler) { |
|
113 | 113 | return $userConfigHandler; |
114 | 114 | }); |
115 | 115 | }); |