Passed
Push — master ( c2dddf...46e6c4 )
by Joas
14:48 queued 13s
created
lib/private/User/Session.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
 			// Failed, maybe the user used their email address
462 462
 			$users = $this->manager->getByEmail($user);
463 463
 			if (!(\count($users) === 1 && $this->login($users[0]->getUID(), $password))) {
464
-				$this->logger->warning('Login failed: \'' . $user . '\' (Remote IP: \'' . \OC::$server->getRequest()->getRemoteAddress() . '\')', ['app' => 'core']);
464
+				$this->logger->warning('Login failed: \''.$user.'\' (Remote IP: \''.\OC::$server->getRequest()->getRemoteAddress().'\')', ['app' => 'core']);
465 465
 
466 466
 				$throttler->registerAttempt('login', $request->getRemoteAddress(), ['user' => $user]);
467 467
 
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
 		} catch (InvalidTokenException $ex) {
534 534
 			$this->logger->logException($ex, [
535 535
 				'level' => ILogger::DEBUG,
536
-				'message' => 'Token is not valid: ' . $ex->getMessage(),
536
+				'message' => 'Token is not valid: '.$ex->getMessage(),
537 537
 			]);
538 538
 			return false;
539 539
 		}
@@ -563,7 +563,7 @@  discard block
 block discarded – undo
563 563
 			}
564 564
 
565 565
 			// trigger any other initialization
566
-			\OC::$server->getEventDispatcher()->dispatch(IUser::class . '::firstLogin', new GenericEvent($this->getUser()));
566
+			\OC::$server->getEventDispatcher()->dispatch(IUser::class.'::firstLogin', new GenericEvent($this->getUser()));
567 567
 		}
568 568
 	}
569 569
 
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
 	private function checkTokenCredentials(IToken $dbToken, $token) {
726 726
 		// Check whether login credentials are still valid and the user was not disabled
727 727
 		// This check is performed each 5 minutes
728
-		$lastCheck = $dbToken->getLastCheck() ? : 0;
728
+		$lastCheck = $dbToken->getLastCheck() ?: 0;
729 729
 		$now = $this->timeFactory->getTime();
730 730
 		if ($lastCheck > ($now - 60 * 5)) {
731 731
 			// Checked performed recently, nothing to do now
@@ -985,9 +985,9 @@  discard block
 block discarded – undo
985 985
 		setcookie('nc_session_id', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT, '', $secureCookie, true);
986 986
 		// old cookies might be stored under /webroot/ instead of /webroot
987 987
 		// and Firefox doesn't like it!
988
-		setcookie('nc_username', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT . '/', '', $secureCookie, true);
989
-		setcookie('nc_token', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT . '/', '', $secureCookie, true);
990
-		setcookie('nc_session_id', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT . '/', '', $secureCookie, true);
988
+		setcookie('nc_username', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT.'/', '', $secureCookie, true);
989
+		setcookie('nc_token', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT.'/', '', $secureCookie, true);
990
+		setcookie('nc_session_id', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT.'/', '', $secureCookie, true);
991 991
 	}
992 992
 
993 993
 	/**
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Storage/SFTPWriteStream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		if (isset($context[$name])) {
71 71
 			$context = $context[$name];
72 72
 		} else {
73
-			throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set');
73
+			throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set');
74 74
 		}
75 75
 		if (isset($context['session']) and $context['session'] instanceof \phpseclib\Net\SFTP) {
76 76
 			$this->sftp = $context['session'];
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
 	public function stream_open($path, $mode, $options, &$opened_path) {
84 84
 		[, $path] = explode('://', $path);
85
-		$path = '/' . ltrim($path);
85
+		$path = '/'.ltrim($path);
86 86
 		$path = str_replace('//', '/', $path);
87 87
 
88 88
 		$this->loadContext('sftp');
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Storage/SFTPReadStream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		if (isset($context[$name])) {
71 71
 			$context = $context[$name];
72 72
 		} else {
73
-			throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set');
73
+			throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set');
74 74
 		}
75 75
 		if (isset($context['session']) and $context['session'] instanceof \phpseclib\Net\SFTP) {
76 76
 			$this->sftp = $context['session'];
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
 	public function stream_open($path, $mode, $options, &$opened_path) {
84 84
 		[, $path] = explode('://', $path);
85
-		$path = '/' . ltrim($path);
85
+		$path = '/'.ltrim($path);
86 86
 		$path = str_replace('//', '/', $path);
87 87
 
88 88
 		$this->loadContext('sftp');
Please login to merge, or discard this patch.
apps/comments/lib/AppInfo/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 	}
88 88
 
89 89
 	protected function registerCommentsEventHandler(IServerContainer $container) {
90
-		$container->getCommentsManager()->registerEventHandler(function () {
90
+		$container->getCommentsManager()->registerEventHandler(function() {
91 91
 			return $this->getContainer()->query(EventHandler::class);
92 92
 		});
93 93
 	}
Please login to merge, or discard this patch.
apps/comments/lib/Listener/CommentsEntityEventListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
 			return;
37 37
 		}
38 38
 
39
-		$event->addEntityCollection('files', function ($name) {
40
-			$nodes = \OC::$server->getUserFolder()->getById((int)$name);
39
+		$event->addEntityCollection('files', function($name) {
40
+			$nodes = \OC::$server->getUserFolder()->getById((int) $name);
41 41
 			return !empty($nodes);
42 42
 		});
43 43
 	}
Please login to merge, or discard this patch.
apps/accessibility/lib/Migration/RepairUserConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	 */
75 75
 	public function run(IOutput $output) {
76 76
 		$output->startProgress();
77
-		$this->userManager->callForSeenUsers(function (IUser $user) use ($output) {
77
+		$this->userManager->callForSeenUsers(function(IUser $user) use ($output) {
78 78
 			$theme = $this->config->getUserValue($user->getUID(), Application::APP_ID, 'theme', false);
79 79
 			if ($theme === 'themedark') {
80 80
 				$this->config->setUserValue($user->getUID(), Application::APP_ID, 'theme', 'dark');
Please login to merge, or discard this patch.
lib/private/Support/CrashReport/Registry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 				 * we can not inject it. Thus the static call.
132 132
 				 */
133 133
 				\OC::$server->getLogger()->logException($e, [
134
-					'message' => 'Could not load lazy crash reporter: ' . $e->getMessage(),
134
+					'message' => 'Could not load lazy crash reporter: '.$e->getMessage(),
135 135
 					'level' => ILogger::FATAL,
136 136
 				]);
137 137
 			}
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 				 * we can not inject it. Thus the static call.
148 148
 				 */
149 149
 				\OC::$server->getLogger()->logException($e, [
150
-					'message' => 'Could not register lazy crash reporter: ' . $e->getMessage(),
150
+					'message' => 'Could not register lazy crash reporter: '.$e->getMessage(),
151 151
 					'level' => ILogger::FATAL,
152 152
 				]);
153 153
 			}
Please login to merge, or discard this patch.
apps/files_sharing/lib/Migration/OwncloudGuestShareType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
 		$query = $this->connection->getQueryBuilder();
71 71
 		$query->update('share')
72
-			->set('share_type',  $query->createNamedParameter(IShare::TYPE_GUEST))
72
+			->set('share_type', $query->createNamedParameter(IShare::TYPE_GUEST))
73 73
 			->where($query->expr()->eq('share_type', $query->createNamedParameter(IShare::TYPE_EMAIL)));
74 74
 		$query->execute();
75 75
 	}
Please login to merge, or discard this patch.
core/Controller/AutoCompleteController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	public function get($search, $itemType, $itemId, $sorter = null, $shareTypes = [IShare::TYPE_USER], $limit = 10): DataResponse {
76 76
 		// if enumeration/user listings are disabled, we'll receive an empty
77 77
 		// result from search() – thus nothing else to do here.
78
-		[$results,] = $this->collaboratorSearch->search($search, $shareTypes, false, $limit, 0);
78
+		[$results, ] = $this->collaboratorSearch->search($search, $shareTypes, false, $limit, 0);
79 79
 
80 80
 		$event = new AutoCompleteEvent([
81 81
 			'search' => $search,
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 			'shareTypes' => $shareTypes,
87 87
 			'limit' => $limit,
88 88
 		]);
89
-		$this->dispatcher->dispatch(IManager::class . '::filterResults', $event);
89
+		$this->dispatcher->dispatch(IManager::class.'::filterResults', $event);
90 90
 		$results = $event->getResults();
91 91
 
92 92
 		$exactMatches = $results['exact'];
Please login to merge, or discard this patch.