Completed
Pull Request — master (#5567)
by Julius
32:01 queued 15:35
created
core/Controller/OCSController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 			'edition' => '',
96 96
 		);
97 97
 
98
-		if($this->userSession->isLoggedIn()) {
98
+		if ($this->userSession->isLoggedIn()) {
99 99
 			$result['capabilities'] = $this->capabilitiesManager->getCapabilities();
100 100
 		} else {
101 101
 			$result['capabilities'] = $this->capabilitiesManager->getCapabilities(true);
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	public function getIdentityProof($cloudId) {
139 139
 		$userObject = $this->userManager->get($cloudId);
140 140
 
141
-		if($userObject !== null) {
141
+		if ($userObject !== null) {
142 142
 			$key = $this->keyManager->getKey($userObject);
143 143
 			$data = [
144 144
 				'public' => $key->getPublic(),
Please login to merge, or discard this patch.
lib/private/CapabilitiesManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	 */
49 49
 	public function getCapabilities($public = false) {
50 50
 		$capabilities = [];
51
-		foreach($this->capabilities as $capability) {
51
+		foreach ($this->capabilities as $capability) {
52 52
 			try {
53 53
 				$c = $capability();
54 54
 			} catch (QueryException $e) {
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 			}
58 58
 
59 59
 			if ($c instanceof ICapability) {
60
-				if(!$public || ($public && $c instanceof IPublicCapability)) {
60
+				if (!$public || ($public && $c instanceof IPublicCapability)) {
61 61
 					$capabilities = array_replace_recursive($capabilities, $c->getCapabilities());
62 62
 				}
63 63
 			} else {
64
-				throw new \InvalidArgumentException('The given Capability (' . get_class($c) . ') does not implement the ICapability interface');
64
+				throw new \InvalidArgumentException('The given Capability ('.get_class($c).') does not implement the ICapability interface');
65 65
 			}
66 66
 		}
67 67
 
Please login to merge, or discard this patch.