@@ -72,13 +72,13 @@ |
||
72 | 72 | |
73 | 73 | private function disableApp(string $appId, OutputInterface $output): void { |
74 | 74 | if ($this->appManager->isInstalled($appId) === false) { |
75 | - $output->writeln('No such app enabled: ' . $appId); |
|
75 | + $output->writeln('No such app enabled: '.$appId); |
|
76 | 76 | return; |
77 | 77 | } |
78 | 78 | |
79 | 79 | try { |
80 | 80 | $this->appManager->disableApp($appId); |
81 | - $output->writeln($appId . ' disabled'); |
|
81 | + $output->writeln($appId.' disabled'); |
|
82 | 82 | } catch (\Exception $e) { |
83 | 83 | $output->writeln($e->getMessage()); |
84 | 84 | $this->exitCode = 2; |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * @param OutputInterface $output |
95 | 95 | */ |
96 | 96 | private function enableApp(string $appId, array $groupIds, OutputInterface $output): void { |
97 | - $groupNames = array_map(function (IGroup $group) { |
|
97 | + $groupNames = array_map(function(IGroup $group) { |
|
98 | 98 | return $group->getDisplayName(); |
99 | 99 | }, $groupIds); |
100 | 100 | |
@@ -111,13 +111,13 @@ discard block |
||
111 | 111 | |
112 | 112 | if ($groupIds === []) { |
113 | 113 | $this->appManager->enableApp($appId); |
114 | - $output->writeln($appId . ' enabled'); |
|
114 | + $output->writeln($appId.' enabled'); |
|
115 | 115 | } else { |
116 | 116 | $this->appManager->enableAppForGroups($appId, $groupIds); |
117 | - $output->writeln($appId . ' enabled for groups: ' . implode(', ', $groupNames)); |
|
117 | + $output->writeln($appId.' enabled for groups: '.implode(', ', $groupNames)); |
|
118 | 118 | } |
119 | 119 | } catch (AppPathNotFoundException $e) { |
120 | - $output->writeln($appId . ' not found'); |
|
120 | + $output->writeln($appId.' not found'); |
|
121 | 121 | $this->exitCode = 1; |
122 | 122 | } catch (\Exception $e) { |
123 | 123 | $output->writeln($e->getMessage()); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | */ |
148 | 148 | public function completeOptionValues($optionName, CompletionContext $context) { |
149 | 149 | if ($optionName === 'groups') { |
150 | - return array_map(function (IGroup $group) { |
|
150 | + return array_map(function(IGroup $group) { |
|
151 | 151 | return $group->getGID(); |
152 | 152 | }, $this->groupManager->search($context->getCurrentWord())); |
153 | 153 | } |