Passed
Push — master ( 10388e...c84c13 )
by Joas
11:57 queued 10s
created
core/Command/App/Disable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,13 +72,13 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
core/Command/App/Enable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.