Skip to content

Commit 94f0c10

Browse files
icewind1991blizzz
authored andcommitted
fix some types
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 381aaeb commit 94f0c10

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

apps/files_external/lib/AppInfo/Application.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
use OCA\Files_External\Config\UserPlaceholderHandler;
3434
use OCA\Files_External\Listener\GroupDeletedListener;
3535
use OCA\Files_External\Listener\UserDeletedListener;
36-
use OCA\Files_External\Service\DBConfigService;
3736
use OCA\Files_External\Lib\Auth\AmazonS3\AccessKey;
3837
use OCA\Files_External\Lib\Auth\Builtin;
3938
use OCA\Files_External\Lib\Auth\NullMechanism;
@@ -70,12 +69,7 @@
7069
use OCP\AppFramework\Bootstrap\IRegistrationContext;
7170
use OCP\Files\Config\IMountProviderCollection;
7271
use OCP\Group\Events\GroupDeletedEvent;
73-
use OCP\IGroup;
74-
use OCP\IUser;
7572
use OCP\User\Events\UserDeletedEvent;
76-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
77-
use Symfony\Component\EventDispatcher\GenericEvent;
78-
use function foo\func;
7973

8074
require_once __DIR__ . '/../../3rdparty/autoload.php';
8175

@@ -112,7 +106,7 @@ public function boot(IBootContext $context): void {
112106
'name' => $l->t('External storages'),
113107
];
114108
});
115-
$context->injectFn(function(BackendService $backendService, UserPlaceholderHandler $userConfigHandler) {
109+
$context->injectFn(function (BackendService $backendService, UserPlaceholderHandler $userConfigHandler) {
116110
$backendService->registerBackendProvider($this);
117111
$backendService->registerAuthMechanismProvider($this);
118112
$backendService->registerConfigHandler('user', function () use ($userConfigHandler) {

apps/files_external/lib/Command/Create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function configure() {
119119
}
120120

121121
protected function execute(InputInterface $input, OutputInterface $output): int {
122-
$user = $input->getOption('user');
122+
$user = (string) $input->getOption('user');
123123
$mountPoint = $input->getArgument('mount_point');
124124
$storageIdentifier = $input->getArgument('storage_backend');
125125
$authIdentifier = $input->getArgument('authentication_backend');

apps/files_external/lib/Command/Import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function configure() {
107107
}
108108

109109
protected function execute(InputInterface $input, OutputInterface $output): int {
110-
$user = $input->getOption('user');
110+
$user = (string) $input->getOption('user');
111111
$path = $input->getArgument('path');
112112
if ($path === '-') {
113113
$json = file_get_contents('php://stdin');

0 commit comments

Comments
 (0)