@@ -50,13 +50,13 @@ |
||
50 | 50 | public function getAllStoragesForUser() { |
51 | 51 | $userStorages = $this->userGlobalStoragesService->getAllStoragesForUser(); |
52 | 52 | $mountPoints = []; |
53 | - foreach($userStorages as $userStorage){ |
|
53 | + foreach ($userStorages as $userStorage) { |
|
54 | 54 | /** @var $userStorage OCA\Files_External\Lib\StorageConfig */ |
55 | 55 | $mountPoint = $userStorage->getMountPoint(); |
56 | - if (substr($mountPoint, 0, 1) === '/'){ |
|
56 | + if (substr($mountPoint, 0, 1) === '/') { |
|
57 | 57 | $mountPoint = substr($mountPoint, 1, strlen($mountPoint) - 1); |
58 | 58 | } |
59 | - if (substr($mountPoint, strlen($mountPoint) - 1, 1) !== '/'){ |
|
59 | + if (substr($mountPoint, strlen($mountPoint) - 1, 1) !== '/') { |
|
60 | 60 | $mountPoint .= '/'; |
61 | 61 | } |
62 | 62 | $mountPoints[] = $mountPoint; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | use OCA\Files_External\Service\UserGlobalStoragesService; |
43 | 43 | |
44 | 44 | |
45 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
45 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
46 | 46 | |
47 | 47 | |
48 | 48 | /** |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | // Make SearchMappingService also work without external storage |
73 | 73 | // if app is inactive or not installed. |
74 | 74 | $context->registerService(SearchMappingService::class, function($c) { |
75 | - try{ |
|
75 | + try { |
|
76 | 76 | $userStoragesService = $c->query(UserGlobalStoragesService::class); |
77 | 77 | return new SearchMappingService( |
78 | 78 | $c->query(ConfigService::class), |