Completed
Push — master ( 5a7373...e2ea6d )
by
unknown
29:42 queued 10s
created
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.
lib/private/PreviewManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 	 */
327 327
 	protected function registerCoreProvider($class, $mimeType, $options = []) {
328 328
 		if (in_array(trim($class, '\\'), $this->getEnabledDefaultProvider())) {
329
-			$this->registerProvider($mimeType, function () use ($class, $options) {
329
+			$this->registerProvider($mimeType, function() use ($class, $options) {
330 330
 				return new $class($options);
331 331
 			});
332 332
 		}
@@ -425,14 +425,14 @@  discard block
 block discarded – undo
425 425
 
426 426
 		$providers = $context->getPreviewProviders();
427 427
 		foreach ($providers as $provider) {
428
-			$key = $provider->getMimeTypeRegex() . '-' . $provider->getService();
428
+			$key = $provider->getMimeTypeRegex().'-'.$provider->getService();
429 429
 			if (array_key_exists($key, $this->loadedBootstrapProviders)) {
430 430
 				// Do not load the provider more than once
431 431
 				continue;
432 432
 			}
433 433
 			$this->loadedBootstrapProviders[$key] = null;
434 434
 
435
-			$this->registerProvider($provider->getMimeTypeRegex(), function () use ($provider) {
435
+			$this->registerProvider($provider->getMimeTypeRegex(), function() use ($provider) {
436 436
 				try {
437 437
 					return $this->container->get($provider->getService());
438 438
 				} catch (QueryException $e) {
Please login to merge, or discard this patch.
apps/settings/lib/Controller/HelpController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 		}
80 80
 
81 81
 		$documentationUrl = $this->urlGenerator->getAbsoluteURL(
82
-			$this->urlGenerator->linkTo('', 'core/doc/' . $mode . '/index.html')
82
+			$this->urlGenerator->linkTo('', 'core/doc/'.$mode.'/index.html')
83 83
 		);
84 84
 
85 85
 		$urlUserDocs = $this->urlGenerator->linkToRoute('settings.Help.help', ['mode' => 'user']);
Please login to merge, or discard this patch.
lib/public/Files/DavUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 	public static function getDavFileId(int $id): string {
48 48
 		$instanceId = \OC_Util::getInstanceId();
49 49
 		$id = sprintf('%08d', $id);
50
-		return $id . $instanceId;
50
+		return $id.$instanceId;
51 51
 	}
52 52
 
53 53
 	/**
Please login to merge, or discard this patch.
lib/public/Color.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,9 +133,9 @@
 block discarded – undo
133 133
 	 */
134 134
 	public function alphaBlending(float $opacity, Color $source): Color {
135 135
 		return new Color(
136
-			(int)((1 - $opacity) * $source->red() + $opacity * $this->red()),
137
-			(int)((1 - $opacity) * $source->green() + $opacity * $this->green()),
138
-			(int)((1 - $opacity) * $source->blue() + $opacity * $this->blue())
136
+			(int) ((1 - $opacity) * $source->red() + $opacity * $this->red()),
137
+			(int) ((1 - $opacity) * $source->green() + $opacity * $this->green()),
138
+			(int) ((1 - $opacity) * $source->blue() + $opacity * $this->blue())
139 139
 		);
140 140
 	}
141 141
 
Please login to merge, or discard this patch.
lib/private/Avatar/PlaceholderAvatar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
 		$ext = 'png';
113 113
 
114 114
 		if ($size === -1) {
115
-			$path = 'avatar-placeholder' . ($darkTheme ? '-dark' : '') . '.' . $ext;
115
+			$path = 'avatar-placeholder'.($darkTheme ? '-dark' : '').'.'.$ext;
116 116
 		} else {
117
-			$path = 'avatar-placeholder' . ($darkTheme ? '-dark' : '') . '.' . $size . '.' . $ext;
117
+			$path = 'avatar-placeholder'.($darkTheme ? '-dark' : '').'.'.$size.'.'.$ext;
118 118
 		}
119 119
 
120 120
 		try {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 				$file = $this->folder->newFile($path);
133 133
 				$file->putContent($data);
134 134
 			} catch (NotPermittedException $e) {
135
-				$this->logger->error('Failed to save avatar placeholder for ' . $this->user->getUID());
135
+				$this->logger->error('Failed to save avatar placeholder for '.$this->user->getUID());
136 136
 				throw new NotFoundException();
137 137
 			}
138 138
 		}
Please login to merge, or discard this patch.