Passed
Push — master ( 65fd24...fc096a )
by Joas
17:08 queued 14s
created
lib/public/AppFramework/OCSController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,10 +67,10 @@
 block discarded – undo
67 67
 								$corsMaxAge = 1728000) {
68 68
 		parent::__construct($appName, $request, $corsMethods,
69 69
 							$corsAllowedHeaders, $corsMaxAge);
70
-		$this->registerResponder('json', function ($data) {
70
+		$this->registerResponder('json', function($data) {
71 71
 			return $this->buildOCSResponse('json', $data);
72 72
 		});
73
-		$this->registerResponder('xml', function ($data) {
73
+		$this->registerResponder('xml', function($data) {
74 74
 			return $this->buildOCSResponse('xml', $data);
75 75
 		});
76 76
 	}
Please login to merge, or discard this patch.
lib/public/AppFramework/App.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 
83 83
 		if ($runIsSetupDirectly) {
84 84
 			$applicationClassName = get_class($this);
85
-			$e = new \RuntimeException('App class ' . $applicationClassName . ' is not setup via query() but directly');
85
+			$e = new \RuntimeException('App class '.$applicationClassName.' is not setup via query() but directly');
86 86
 			$setUpViaQuery = false;
87 87
 
88 88
 			$classNameParts = explode('\\', trim($applicationClassName, '\\'));
Please login to merge, or discard this patch.
lib/private/Authentication/Listeners/UserDeletedTokenCleanupListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 				$this->manager->invalidateTokenById($uid, $token->getId());
65 65
 			}
66 66
 		} catch (Throwable $e) {
67
-			$this->logger->error('Could not clean up auth tokens after user deletion: ' . $e->getMessage(), [
67
+			$this->logger->error('Could not clean up auth tokens after user deletion: '.$e->getMessage(), [
68 68
 				'exception' => $e,
69 69
 			]);
70 70
 		}
Please login to merge, or discard this patch.
apps/settings/templates/settings/personal/security/twofactor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
 ?>
26 26
 
27 27
 <div id="two-factor-auth" class="section">
28
-	<h2><?php p($l->t('Two-Factor Authentication'));?></h2>
28
+	<h2><?php p($l->t('Two-Factor Authentication')); ?></h2>
29 29
 	<a target="_blank" rel="noreferrer noopener" class="icon-info"
30
-	   title="<?php p($l->t('Open documentation'));?>"
30
+	   title="<?php p($l->t('Open documentation')); ?>"
31 31
 	   href="<?php p(link_to_docs('user-2fa')); ?>"></a>
32
-	<p class="settings-hint"><?php p($l->t('Use a second factor besides your password to increase security for your account.'));?></p>
33
-	<p class="settings-hint"><?php p($l->t('If you use third party applications to connect to Nextcloud, please make sure to create and configure an app password for each before enabling second factor authentication.'));?></p>
32
+	<p class="settings-hint"><?php p($l->t('Use a second factor besides your password to increase security for your account.')); ?></p>
33
+	<p class="settings-hint"><?php p($l->t('If you use third party applications to connect to Nextcloud, please make sure to create and configure an app password for each before enabling second factor authentication.')); ?></p>
34 34
 	<ul>
35 35
 	<?php foreach ($_['twoFactorProviderData']['providers'] as $data) { ?>
36 36
 		<li>
Please login to merge, or discard this patch.
lib/private/Hooks/EmitterTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher::addListener
42 42
 	 */
43 43
 	public function listen($scope, $method, callable $callback) {
44
-		$eventName = $scope . '::' . $method;
44
+		$eventName = $scope.'::'.$method;
45 45
 		if (!isset($this->listeners[$eventName])) {
46 46
 			$this->listeners[$eventName] = [];
47 47
 		}
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		$names = [];
61 61
 		$allNames = array_keys($this->listeners);
62 62
 		if ($scope and $method) {
63
-			$name = $scope . '::' . $method;
63
+			$name = $scope.'::'.$method;
64 64
 			if (isset($this->listeners[$name])) {
65 65
 				$names[] = $name;
66 66
 			}
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 * @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher::dispatchTyped
102 102
 	 */
103 103
 	protected function emit($scope, $method, array $arguments = []) {
104
-		$eventName = $scope . '::' . $method;
104
+		$eventName = $scope.'::'.$method;
105 105
 		if (isset($this->listeners[$eventName])) {
106 106
 			foreach ($this->listeners[$eventName] as $callback) {
107 107
 				call_user_func_array($callback, $arguments);
Please login to merge, or discard this patch.
lib/private/SubAdmin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,10 +70,10 @@  discard block
 block discarded – undo
70 70
 		$this->dbConn = $dbConn;
71 71
 		$this->eventDispatcher = $eventDispatcher;
72 72
 
73
-		$this->userManager->listen('\OC\User', 'postDelete', function ($user) {
73
+		$this->userManager->listen('\OC\User', 'postDelete', function($user) {
74 74
 			$this->post_deleteUser($user);
75 75
 		});
76
-		$this->groupManager->listen('\OC\Group', 'postDelete', function ($group) {
76
+		$this->groupManager->listen('\OC\Group', 'postDelete', function($group) {
77 77
 			$this->post_deleteGroup($group);
78 78
 		});
79 79
 	}
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	 * @return array ['displayName' => displayname]
166 166
 	 */
167 167
 	public function getSubAdminsGroupsName(IUser $user): array {
168
-		return array_map(function ($group) {
168
+		return array_map(function($group) {
169 169
 			return ['displayName' => $group->getDisplayName()];
170 170
 		}, $this->getSubAdminsGroups($user));
171 171
 	}
Please login to merge, or discard this patch.
apps/lookup_server_connector/lib/AppInfo/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 	 */
60 60
 	private function registerEventListeners(EventDispatcher $dispatcher,
61 61
 											IAppContainer $appContainer): void {
62
-		$dispatcher->addListener('OC\AccountManager::userUpdated', function (GenericEvent $event) use ($appContainer) {
62
+		$dispatcher->addListener('OC\AccountManager::userUpdated', function(GenericEvent $event) use ($appContainer) {
63 63
 			/** @var IUser $user */
64 64
 			$user = $event->getSubject();
65 65
 
Please login to merge, or discard this patch.
apps/files_sharing/lib/External/MountProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 		$managerProvider = $this->managerProvider;
64 64
 		$manager = $managerProvider();
65 65
 		$data['manager'] = $manager;
66
-		$mountPoint = '/' . $user->getUID() . '/files/' . ltrim($data['mountpoint'], '/');
66
+		$mountPoint = '/'.$user->getUID().'/files/'.ltrim($data['mountpoint'], '/');
67 67
 		$data['mountpoint'] = $mountPoint;
68 68
 		$data['cloudId'] = $this->cloudIdManager->getCloudId($data['owner'], $data['remote']);
69 69
 		$data['certificateManager'] = \OC::$server->getCertificateManager();
Please login to merge, or discard this patch.
lib/private/AppFramework/Routing/RouteParser.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 		$postfix = $route['postfix'] ?? '';
96 96
 		$root = $this->buildRootPrefix($route, $appName, $routeNamePrefix);
97 97
 
98
-		$url = $root . '/' . ltrim($route['url'], '/');
98
+		$url = $root.'/'.ltrim($route['url'], '/');
99 99
 		$verb = strtoupper($route['verb'] ?? 'GET');
100 100
 
101 101
 		$split = explode('#', $name, 2);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		$controllerName = $this->buildControllerName($controller);
108 108
 		$actionName = $this->buildActionName($action);
109 109
 
110
-		$routeName = $routeNamePrefix . $appName . '.' . $controller . '.' . $action . $postfix;
110
+		$routeName = $routeNamePrefix.$appName.'.'.$controller.'.'.$action.$postfix;
111 111
 
112 112
 		$routeObject = new Route($url);
113 113
 		$routeObject->method($verb);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
 			// the url parameter used as id to the resource
188 188
 			foreach ($actions as $action) {
189
-				$url = $root . '/' . ltrim($config['url'], '/');
189
+				$url = $root.'/'.ltrim($config['url'], '/');
190 190
 				$method = $action['name'];
191 191
 
192 192
 				$verb = strtoupper($action['verb'] ?? 'GET');
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 				$controllerName = $this->buildControllerName($controller);
201 201
 				$actionName = $this->buildActionName($method);
202 202
 
203
-				$routeName = $routeNamePrefix . $appName . '.' . strtolower($resource) . '.' . $method;
203
+				$routeName = $routeNamePrefix.$appName.'.'.strtolower($resource).'.'.$method;
204 204
 
205 205
 				$route = new Route($url);
206 206
 				$route->method($verb);
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	}
216 216
 
217 217
 	private function buildRootPrefix(array $route, string $appName, string $routeNamePrefix): string {
218
-		$defaultRoot = $appName === 'core' ? '' : '/apps/' . $appName;
218
+		$defaultRoot = $appName === 'core' ? '' : '/apps/'.$appName;
219 219
 		$root = $route['root'] ?? $defaultRoot;
220 220
 
221 221
 		if ($routeNamePrefix !== '') {
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	 */
239 239
 	private function buildControllerName(string $controller): string {
240 240
 		if (!isset($this->controllerNameCache[$controller])) {
241
-			$this->controllerNameCache[$controller] = $this->underScoreToCamelCase(ucfirst($controller)) . 'Controller';
241
+			$this->controllerNameCache[$controller] = $this->underScoreToCamelCase(ucfirst($controller)).'Controller';
242 242
 		}
243 243
 		return $this->controllerNameCache[$controller];
244 244
 	}
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 		$pattern = '/_[a-z]?/';
262 262
 		return preg_replace_callback(
263 263
 			$pattern,
264
-			function ($matches) {
264
+			function($matches) {
265 265
 				return strtoupper(ltrim($matches[0], '_'));
266 266
 			},
267 267
 			$str);
Please login to merge, or discard this patch.