Passed
Push — master ( 2abeff...6d9f78 )
by Robin
17:18 queued 13s
created
core/Command/Group/ListCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
 	}
71 71
 
72 72
 	protected function execute(InputInterface $input, OutputInterface $output): int {
73
-		$groups = $this->groupManager->search('', (int)$input->getOption('limit'), (int)$input->getOption('offset'));
74
-		$this->writeArrayInOutputFormat($input, $output, $this->formatGroups($groups, (bool)$input->getOption('info')));
73
+		$groups = $this->groupManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
74
+		$this->writeArrayInOutputFormat($input, $output, $this->formatGroups($groups, (bool) $input->getOption('info')));
75 75
 		return 0;
76 76
 	}
77 77
 
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
 	 */
82 82
 	public function usersForGroup(IGroup $group) {
83 83
 		$users = array_keys($group->getUsers());
84
-		return array_map(function ($userId) {
85
-			return (string)$userId;
84
+		return array_map(function($userId) {
85
+			return (string) $userId;
86 86
 		}, $users);
87 87
 	}
88 88
 
@@ -91,19 +91,19 @@  discard block
 block discarded – undo
91 91
 	 * @return array
92 92
 	 */
93 93
 	private function formatGroups(array $groups, bool $addInfo = false) {
94
-		$keys = array_map(function (IGroup $group) {
94
+		$keys = array_map(function(IGroup $group) {
95 95
 			return $group->getGID();
96 96
 		}, $groups);
97 97
 
98 98
 		if ($addInfo) {
99
-			$values = array_map(function (IGroup $group) {
99
+			$values = array_map(function(IGroup $group) {
100 100
 				return [
101 101
 					'backends' => $group->getBackendNames(),
102 102
 					'users' => $this->usersForGroup($group),
103 103
 				];
104 104
 			}, $groups);
105 105
 		} else {
106
-			$values = array_map(function (IGroup $group) {
106
+			$values = array_map(function(IGroup $group) {
107 107
 				return $this->usersForGroup($group);
108 108
 			}, $groups);
109 109
 		}
Please login to merge, or discard this patch.