|
@@ -1,6 +1,6 @@ discard block |
|
|
block discarded – undo |
|
1
|
1
|
<?php |
|
2
|
2
|
|
|
3
|
|
-declare(strict_types = 1); |
|
|
3
|
+declare(strict_types=1); |
|
4
|
4
|
/** |
|
5
|
5
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors |
|
6
|
6
|
* SPDX-License-Identifier: AGPL-3.0-or-later |
|
@@ -39,7 +39,7 @@ discard block |
|
|
block discarded – undo |
|
39
|
39
|
public function execute(InputInterface $input, OutputInterface $output): int { |
|
40
|
40
|
$io = new SymfonyStyle($input, $output); |
|
41
|
41
|
$settingClass = $input->getArgument('settingClass'); |
|
42
|
|
- if (!in_array(IDelegatedSettings::class, (array)class_implements($settingClass), true)) { |
|
|
42
|
+ if (!in_array(IDelegatedSettings::class, (array) class_implements($settingClass), true)) { |
|
43
|
43
|
$io->error('The specified class isn’t a valid delegated setting.'); |
|
44
|
44
|
return 2; |
|
45
|
45
|
} |
|
@@ -52,7 +52,7 @@ discard block |
|
|
block discarded – undo |
|
52
|
52
|
|
|
53
|
53
|
$this->authorizedGroupService->create($groupId, $settingClass); |
|
54
|
54
|
|
|
55
|
|
- $io->success('Administration of ' . $settingClass . ' delegated to ' . $groupId . '.'); |
|
|
55
|
+ $io->success('Administration of '.$settingClass.' delegated to '.$groupId.'.'); |
|
56
|
56
|
|
|
57
|
57
|
return 0; |
|
58
|
58
|
} |
Please login to merge, or discard this patch.