@@ -74,8 +74,8 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | protected function execute(InputInterface $input, OutputInterface $output): int { |
| 77 | - $groups = $this->groupManager->search('', (int)$input->getOption('limit'), (int)$input->getOption('offset')); |
|
| 78 | - $this->writeArrayInOutputFormat($input, $output, $this->formatGroups($groups, (bool)$input->getOption('info'))); |
|
| 77 | + $groups = $this->groupManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset')); |
|
| 78 | + $this->writeArrayInOutputFormat($input, $output, $this->formatGroups($groups, (bool) $input->getOption('info'))); |
|
| 79 | 79 | return 0; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -84,19 +84,19 @@ discard block |
||
| 84 | 84 | * @return array |
| 85 | 85 | */ |
| 86 | 86 | private function formatGroups(array $groups, bool $addInfo = false) { |
| 87 | - $keys = array_map(function (IGroup $group) { |
|
| 87 | + $keys = array_map(function(IGroup $group) { |
|
| 88 | 88 | return $group->getGID(); |
| 89 | 89 | }, $groups); |
| 90 | 90 | |
| 91 | 91 | if ($addInfo) { |
| 92 | - $values = array_map(function (IGroup $group) { |
|
| 92 | + $values = array_map(function(IGroup $group) { |
|
| 93 | 93 | return [ |
| 94 | 94 | 'backends' => $group->getBackendNames(), |
| 95 | 95 | 'users' => array_keys($group->getUsers()), |
| 96 | 96 | ]; |
| 97 | 97 | }, $groups); |
| 98 | 98 | } else { |
| 99 | - $values = array_map(function (IGroup $group) { |
|
| 99 | + $values = array_map(function(IGroup $group) { |
|
| 100 | 100 | return array_keys($group->getUsers()); |
| 101 | 101 | }, $groups); |
| 102 | 102 | } |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | $gid = $input->getArgument('groupid'); |
| 68 | 68 | $group = $this->groupManager->get($gid); |
| 69 | 69 | if (!$group instanceof IGroup) { |
| 70 | - $output->writeln('<error>Group "' . $gid . '" does not exist.</error>'); |
|
| 70 | + $output->writeln('<error>Group "'.$gid.'" does not exist.</error>'); |
|
| 71 | 71 | return 1; |
| 72 | 72 | } else { |
| 73 | 73 | $groupOutput = [ |