Passed
Push — master ( 1d8da4...323fe4 )
by Roeland
09:56 queued 10s
created
lib/private/CapabilitiesManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 */
52 52
 	public function getCapabilities(bool $public = false) : array {
53 53
 		$capabilities = [];
54
-		foreach($this->capabilities as $capability) {
54
+		foreach ($this->capabilities as $capability) {
55 55
 			try {
56 56
 				$c = $capability();
57 57
 			} catch (QueryException $e) {
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
 			}
65 65
 
66 66
 			if ($c instanceof ICapability) {
67
-				if(!$public || $c instanceof IPublicCapability) {
67
+				if (!$public || $c instanceof IPublicCapability) {
68 68
 					$capabilities = array_replace_recursive($capabilities, $c->getCapabilities());
69 69
 				}
70 70
 			} else {
71
-				throw new \InvalidArgumentException('The given Capability (' . get_class($c) . ') does not implement the ICapability interface');
71
+				throw new \InvalidArgumentException('The given Capability ('.get_class($c).') does not implement the ICapability interface');
72 72
 			}
73 73
 		}
74 74
 
Please login to merge, or discard this patch.
lib/public/SystemTag/SystemTagsEntityEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	 */
63 63
 	public function addEntityCollection(string $name, \Closure $entityExistsFunction) {
64 64
 		if (isset($this->collections[$name])) {
65
-			throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"');
65
+			throw new \OutOfBoundsException('Duplicate entity name "'.$name.'"');
66 66
 		}
67 67
 
68 68
 		$this->collections[$name] = $entityExistsFunction;
Please login to merge, or discard this patch.
lib/public/Security/IHasher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,5 +63,5 @@
 block discarded – undo
63 63
 	 * @return bool Whether $hash is a valid hash of $message
64 64
 	 * @since 8.0.0
65 65
 	 */
66
-	public function verify(string $message, string $hash, &$newHash = null): bool ;
66
+	public function verify(string $message, string $hash, &$newHash = null): bool;
67 67
 }
Please login to merge, or discard this patch.
lib/public/User/Backend/ABackend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,6 @@
 block discarded – undo
67 67
 			$implements |= Backend::COUNT_USERS;
68 68
 		}
69 69
 
70
-		return (bool)($actions & $implements);
70
+		return (bool) ($actions & $implements);
71 71
 	}
72 72
 }
Please login to merge, or discard this patch.
lib/public/Group/Backend/ABackend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
 			$implements |= GroupInterface::REMOVE_FROM_GOUP;
63 63
 		}
64 64
 
65
-		return (bool)($actions & $implements);
65
+		return (bool) ($actions & $implements);
66 66
 	}
67 67
 }
Please login to merge, or discard this patch.
apps/admin_audit/lib/Actions/Action.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 						array $params,
51 51
 						array $elements,
52 52
 						bool $obfuscateParameters = false) {
53
-		foreach($elements as $element) {
54
-			if(!isset($params[$element])) {
53
+		foreach ($elements as $element) {
54
+			if (!isset($params[$element])) {
55 55
 				if ($obfuscateParameters) {
56 56
 					$this->logger->critical(
57 57
 						'$params["'.$element.'"] was missing.',
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
 		}
72 72
 
73 73
 		$replaceArray = [];
74
-		foreach($elements as $element) {
75
-			if($params[$element] instanceof \DateTime) {
74
+		foreach ($elements as $element) {
75
+			if ($params[$element] instanceof \DateTime) {
76 76
 				$params[$element] = $params[$element]->format('Y-m-d H:i:s');
77 77
 			}
78 78
 			$replaceArray[] = $params[$element];
Please login to merge, or discard this patch.
apps/provisioning_api/lib/Controller/AppsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
 	public function getApps(string $filter = null): DataResponse {
63 63
 		$apps = (new OC_App())->listAllApps();
64 64
 		$list = [];
65
-		foreach($apps as $app) {
65
+		foreach ($apps as $app) {
66 66
 			$list[] = $app['id'];
67 67
 		}
68
-		if($filter){
69
-			switch($filter){
68
+		if ($filter) {
69
+			switch ($filter) {
70 70
 				case 'enabled':
71 71
 					return new DataResponse(['apps' => \OC_App::getEnabledApps()]);
72 72
 					break;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	public function getAppInfo(string $app): DataResponse {
93 93
 		$info = \OCP\App::getAppInfo($app);
94
-		if(!is_null($info)) {
94
+		if (!is_null($info)) {
95 95
 			return new DataResponse(OC_App::getAppInfo($app));
96 96
 		}
97 97
 
Please login to merge, or discard this patch.
apps/files_external/lib/Controller/ApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 		$user = $this->userSession->getUser()->getUID();
100 100
 
101 101
 		$mounts = \OC_Mount_Config::getAbsoluteMountPoints($user);
102
-		foreach($mounts as $mountPoint => $mount) {
102
+		foreach ($mounts as $mountPoint => $mount) {
103 103
 			$entries[] = $this->formatMount($mountPoint, $mount);
104 104
 		}
105 105
 
Please login to merge, or discard this patch.
lib/private/Log.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 		// interpolate $message as defined in PSR-3
211 211
 		$replace = [];
212 212
 		foreach ($context as $key => $val) {
213
-			$replace['{' . $key . '}'] = $val;
213
+			$replace['{'.$key.'}'] = $val;
214 214
 		}
215 215
 		$message = strtr($message, $replace);
216 216
 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 	}
318 318
 
319 319
 	public function getLogPath():string {
320
-		if($this->logger instanceof IFileBased) {
320
+		if ($this->logger instanceof IFileBased) {
321 321
 			return $this->logger->getLogFilePath();
322 322
 		}
323 323
 		throw new \RuntimeException('Log implementation has no path');
Please login to merge, or discard this patch.