Passed
Push — master ( 0999f0...13fe7b )
by Morris
11:47
created
core/Command/App/Remove.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -77,14 +77,14 @@  discard block
 block discarded – undo
77 77
 
78 78
 		// Check if the app is installed
79 79
 		if (!\OC_App::getAppPath($appId)) {
80
-			$output->writeln($appId . ' is not installed');
80
+			$output->writeln($appId.' is not installed');
81 81
 			return 1;
82 82
 		}
83 83
 
84 84
 		// Removing shipped apps is not possible, therefore we pre-check that
85 85
 		// before trying to remove it
86 86
 		if ($this->manager->isShipped($appId)) {
87
-			$output->writeln($appId . ' could not be removed as it is a shipped app');
87
+			$output->writeln($appId.' could not be removed as it is a shipped app');
88 88
 			return 1;
89 89
 		}
90 90
 
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
 		if (!$input->getOption('keep-data')) {
94 94
 			try {
95 95
 				$this->manager->disableApp($appId);
96
-				$output->writeln($appId . ' disabled');
97
-			} catch(Throwable $e) {
98
-				$output->writeln('<error>Error: ' . $e->getMessage() . '</error>');
96
+				$output->writeln($appId.' disabled');
97
+			} catch (Throwable $e) {
98
+				$output->writeln('<error>Error: '.$e->getMessage().'</error>');
99 99
 				$this->logger->logException($e, [
100 100
 					'app' => 'CLI',
101 101
 					'level' => ILogger::ERROR
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
 		// Let's try to remove the app...
108 108
 		try {
109 109
 			$result = $this->installer->removeApp($appId);
110
-		} catch(Throwable $e) {
111
-			$output->writeln('<error>Error: ' . $e->getMessage() . '</error>');
110
+		} catch (Throwable $e) {
111
+			$output->writeln('<error>Error: '.$e->getMessage().'</error>');
112 112
 			$this->logger->logException($e, [
113 113
 				'app' => 'CLI',
114 114
 				'level' => ILogger::ERROR
@@ -116,12 +116,12 @@  discard block
 block discarded – undo
116 116
 			return 1;
117 117
 		}
118 118
 
119
-		if($result === false) {
120
-			$output->writeln($appId . ' could not be removed');
119
+		if ($result === false) {
120
+			$output->writeln($appId.' could not be removed');
121 121
 			return 1;
122 122
 		}
123 123
 
124
-		$output->writeln($appId . ' removed');
124
+		$output->writeln($appId.' removed');
125 125
 
126 126
 		return 0;
127 127
 	}
Please login to merge, or discard this patch.