Completed
Push — master ( 3acc4f...dc910c )
by
unknown
24:17
created
core/templates/loginflow/grant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	</p>
38 38
 	<p class="info">
39 39
 		<?php print_unescaped($l->t('You are about to grant %1$s access to your %2$s account.', [
40
-			'<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>',
40
+			'<strong>'.\OCP\Util::sanitizeHTML($_['client']).'</strong>',
41 41
 			\OCP\Util::sanitizeHTML($_['instanceName'])
42 42
 		])) ?>
43 43
 	</p>
Please login to merge, or discard this patch.
lib/private/Share/Constants.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 
78 78
 	public const FORMAT_NONE = -1;
79 79
 	public const FORMAT_STATUSES = -2;
80
-	public const FORMAT_SOURCES = -3;  // ToDo Check if it is still in use otherwise remove it
80
+	public const FORMAT_SOURCES = -3; // ToDo Check if it is still in use otherwise remove it
81 81
 
82 82
 	public const RESPONSE_FORMAT = 'json'; // default response format for ocs calls
83 83
 
Please login to merge, or discard this patch.
lib/private/App/AppStore/Bundles/HubBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 		$architecture = function_exists('php_uname') ? php_uname('m') : null;
43 43
 		if (isset($architecture) && PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) {
44 44
 			$hubApps[] = 'richdocuments';
45
-			$hubApps[] = 'richdocumentscode' . ($architecture === 'aarch64' ? '_arm64' : '');
45
+			$hubApps[] = 'richdocumentscode'.($architecture === 'aarch64' ? '_arm64' : '');
46 46
 		}
47 47
 
48 48
 		return $hubApps;
Please login to merge, or discard this patch.
lib/private/Accounts/AccountManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
 	public function searchUsers(string $property, array $values): array {
373 373
 		// the value col is limited to 255 bytes. It is used for searches only.
374
-		$values = array_map(function (string $value) {
374
+		$values = array_map(function(string $value) {
375 375
 			return Util::shortenMultibyteString($value, 255);
376 376
 		}, $values);
377 377
 		$chunks = array_chunk($values, 500);
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
 	protected function sendEmailVerificationEmail(IUser $user, string $email): bool {
452 452
 		$ref = \substr(hash('sha256', $email), 0, 8);
453 453
 		$key = $this->crypto->encrypt($email);
454
-		$token = $this->verificationToken->create($user, 'verifyMail' . $ref, $email);
454
+		$token = $this->verificationToken->create($user, 'verifyMail'.$ref, $email);
455 455
 
456 456
 		$link = $this->urlGenerator->linkToRouteAbsolute(
457 457
 			'provisioning_api.Verification.verifyMail',
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
 	 * build default user record in case not data set exists yet
670 670
 	 */
671 671
 	protected function buildDefaultUserRecord(IUser $user): array {
672
-		$scopes = array_merge(self::DEFAULT_SCOPES, array_filter($this->config->getSystemValue('account_manager.default_property_scope', []), static function (string $scope, string $property) {
672
+		$scopes = array_merge(self::DEFAULT_SCOPES, array_filter($this->config->getSystemValue('account_manager.default_property_scope', []), static function(string $scope, string $property) {
673 673
 			return in_array($property, self::ALLOWED_PROPERTIES, true) && in_array($scope, self::ALLOWED_SCOPES, true);
674 674
 		}, ARRAY_FILTER_USE_BOTH));
675 675
 
Please login to merge, or discard this patch.
lib/private/Memcache/Memcached.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	}
106 106
 
107 107
 	public function get($key) {
108
-		$result = self::$cache->get($this->getNameSpace() . $key);
108
+		$result = self::$cache->get($this->getNameSpace().$key);
109 109
 		if ($result === false and self::$cache->getResultCode() == \Memcached::RES_NOTFOUND) {
110 110
 			return null;
111 111
 		} else {
@@ -115,20 +115,20 @@  discard block
 block discarded – undo
115 115
 
116 116
 	public function set($key, $value, $ttl = 0) {
117 117
 		if ($ttl > 0) {
118
-			$result = self::$cache->set($this->getNameSpace() . $key, $value, $ttl);
118
+			$result = self::$cache->set($this->getNameSpace().$key, $value, $ttl);
119 119
 		} else {
120
-			$result = self::$cache->set($this->getNameSpace() . $key, $value);
120
+			$result = self::$cache->set($this->getNameSpace().$key, $value);
121 121
 		}
122 122
 		return $result || $this->isSuccess();
123 123
 	}
124 124
 
125 125
 	public function hasKey($key) {
126
-		self::$cache->get($this->getNameSpace() . $key);
126
+		self::$cache->get($this->getNameSpace().$key);
127 127
 		return self::$cache->getResultCode() === \Memcached::RES_SUCCESS;
128 128
 	}
129 129
 
130 130
 	public function remove($key) {
131
-		$result = self::$cache->delete($this->getNameSpace() . $key);
131
+		$result = self::$cache->delete($this->getNameSpace().$key);
132 132
 		return $result || $this->isSuccess() || self::$cache->getResultCode() === \Memcached::RES_NOTFOUND;
133 133
 	}
134 134
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * @return bool
148 148
 	 */
149 149
 	public function add($key, $value, $ttl = 0) {
150
-		$result = self::$cache->add($this->getPrefix() . $key, $value, $ttl);
150
+		$result = self::$cache->add($this->getPrefix().$key, $value, $ttl);
151 151
 		return $result || $this->isSuccess();
152 152
 	}
153 153
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 */
161 161
 	public function inc($key, $step = 1) {
162 162
 		$this->add($key, 0);
163
-		$result = self::$cache->increment($this->getPrefix() . $key, $step);
163
+		$result = self::$cache->increment($this->getPrefix().$key, $step);
164 164
 
165 165
 		if (self::$cache->getResultCode() !== \Memcached::RES_SUCCESS) {
166 166
 			return false;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 	 * @return int | bool
178 178
 	 */
179 179
 	public function dec($key, $step = 1) {
180
-		$result = self::$cache->decrement($this->getPrefix() . $key, $step);
180
+		$result = self::$cache->decrement($this->getPrefix().$key, $step);
181 181
 
182 182
 		if (self::$cache->getResultCode() !== \Memcached::RES_SUCCESS) {
183 183
 			return false;
Please login to merge, or discard this patch.
lib/private/Diagnostics/EventLogger.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
 	}
61 61
 
62 62
 	public function isLoggingActivated(): bool {
63
-		$systemValue = (bool)$this->config->getValue('diagnostics.logging', false)
64
-			|| (bool)$this->config->getValue('profiler', false);
63
+		$systemValue = (bool) $this->config->getValue('diagnostics.logging', false)
64
+			|| (bool) $this->config->getValue('profiler', false);
65 65
 
66 66
 		if ($systemValue && $this->config->getValue('debug', false)) {
67 67
 			return true;
@@ -125,12 +125,12 @@  discard block
 block discarded – undo
125 125
 			$duration = $event->getDuration();
126 126
 			$timeInMs = round($duration * 1000, 4);
127 127
 
128
-			$loggingMinimum = (int)$this->config->getValue('diagnostics.logging.threshold', 0);
128
+			$loggingMinimum = (int) $this->config->getValue('diagnostics.logging.threshold', 0);
129 129
 			if ($loggingMinimum === 0 || $timeInMs < $loggingMinimum) {
130 130
 				return;
131 131
 			}
132 132
 
133
-			$message = microtime() . ' - ' . $event->getId() . ': ' . $timeInMs . ' (' . $event->getDescription() . ')';
133
+			$message = microtime().' - '.$event->getId().': '.$timeInMs.' ('.$event->getDescription().')';
134 134
 			$this->logger->debug($message, ['app' => 'diagnostics']);
135 135
 		}
136 136
 	}
Please login to merge, or discard this patch.
lib/private/Files/SimpleFS/SimpleFolder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 	public function getDirectoryListing(): array {
53 53
 		$listing = $this->folder->getDirectoryListing();
54 54
 
55
-		$fileListing = array_map(function (Node $file) {
55
+		$fileListing = array_map(function(Node $file) {
56 56
 			if ($file instanceof File) {
57 57
 				return new SimpleFile($file);
58 58
 			}
Please login to merge, or discard this patch.
core/templates/loginflowv2/grant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	</p>
38 38
 	<p class="info">
39 39
 		<?php print_unescaped($l->t('You are about to grant %1$s access to your %2$s account.', [
40
-			'<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>',
40
+			'<strong>'.\OCP\Util::sanitizeHTML($_['client']).'</strong>',
41 41
 			\OCP\Util::sanitizeHTML($_['instanceName'])
42 42
 		])) ?>
43 43
 	</p>
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		$token = $argument['token'];
76 76
 		$action = $argument['action'];
77 77
 		$data = json_decode($argument['data'], true);
78
-		$try = (int)$argument['try'] + 1;
78
+		$try = (int) $argument['try'] + 1;
79 79
 
80 80
 		$result = $this->notifications->sendUpdateToRemote($remote, $remoteId, $token, $action, $data, $try);
81 81
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 				'token' => $argument['token'],
96 96
 				'data' => $argument['data'],
97 97
 				'action' => $argument['action'],
98
-				'try' => (int)$argument['try'] + 1,
98
+				'try' => (int) $argument['try'] + 1,
99 99
 				'lastRun' => $this->time->getTime()
100 100
 			]
101 101
 		);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	 * Test if it is time for the next run
106 106
 	 */
107 107
 	protected function shouldRun(array $argument): bool {
108
-		$lastRun = (int)$argument['lastRun'];
108
+		$lastRun = (int) $argument['lastRun'];
109 109
 		return (($this->time->getTime() - $lastRun) > $this->interval);
110 110
 	}
111 111
 }
Please login to merge, or discard this patch.