Passed
Push — master ( 7ef10b...59c1ff )
by Joas
11:15 queued 11s
created
apps/dav/lib/CalDAV/Reminder/INotificationProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,5 +44,5 @@
 block discarded – undo
44 44
 	 */
45 45
 	public function send(VEvent $vevent,
46 46
 						 string $calendarDisplayName,
47
-						 array $users=[]): void;
47
+						 array $users = []): void;
48 48
 }
Please login to merge, or discard this patch.
core/Command/Group/Add.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 		$gid = $input->getArgument('groupid');
66 66
 		$group = $this->groupManager->get($gid);
67 67
 		if ($group) {
68
-			$output->writeln('<error>Group "' . $gid . '" already exists.</error>');
68
+			$output->writeln('<error>Group "'.$gid.'" already exists.</error>');
69 69
 			return 1;
70 70
 		} else {
71 71
 			$group = $this->groupManager->createGroup($gid);
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
 				$output->writeln('<error>Could not create group</error>');
74 74
 				return 2;
75 75
 			}
76
-			$output->writeln('Created group "' . $group->getGID() . '"');
76
+			$output->writeln('Created group "'.$group->getGID().'"');
77 77
 
78
-			$displayName = trim((string)$input->getOption('display-name'));
78
+			$displayName = trim((string) $input->getOption('display-name'));
79 79
 			if ($displayName !== '') {
80 80
 				$group->setDisplayName($displayName);
81 81
 			}
Please login to merge, or discard this patch.
apps/files_external/appinfo/app.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@
 block discarded – undo
30 30
 
31 31
 OC::$CLASSPATH['OC_Mount_Config'] = 'files_external/lib/config.php';
32 32
 
33
-require_once __DIR__ . '/../3rdparty/autoload.php';
33
+require_once __DIR__.'/../3rdparty/autoload.php';
34 34
 
35 35
 // register Application object singleton
36 36
 \OC_Mount_Config::$app = \OC::$server->query(\OCA\Files_External\AppInfo\Application::class);
37 37
 $appContainer = \OC_Mount_Config::$app->getContainer();
38 38
 
39
-\OCA\Files\App::getNavigationManager()->add(function () {
39
+\OCA\Files\App::getNavigationManager()->add(function() {
40 40
 	$l = \OC::$server->getL10N('files_external');
41 41
 	return [
42 42
 		'id' => 'extstoragemounts',
Please login to merge, or discard this patch.
apps/theming/lib/Capabilities.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@
 block discarded – undo
79 79
 				'color-element' => $this->util->elementColor($color),
80 80
 				'logo' => $this->url->getAbsoluteURL($this->theming->getLogo()),
81 81
 				'background' => $backgroundLogo === 'backgroundColor' ?
82
-					$this->theming->getColorPrimary() :
83
-					$this->url->getAbsoluteURL($this->theming->getBackground()),
82
+					$this->theming->getColorPrimary() : $this->url->getAbsoluteURL($this->theming->getBackground()),
84 83
 				'background-plain' => $backgroundLogo === 'backgroundColor',
85 84
 				'background-default' => !$this->util->isBackgroundThemed(),
86 85
 				'logoheader' => $this->url->getAbsoluteURL($this->theming->getLogo()),
Please login to merge, or discard this patch.
lib/versioncheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 if (PHP_VERSION_ID < 70200) {
5 5
 	http_response_code(500);
6 6
 	echo 'This version of Nextcloud requires at least PHP 7.2<br/>';
7
-	echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
7
+	echo 'You are currently running '.PHP_VERSION.'. Please update your PHP version.';
8 8
 	exit(-1);
9 9
 }
10 10
 
@@ -12,6 +12,6 @@  discard block
 block discarded – undo
12 12
 if (PHP_VERSION_ID >= 70500) {
13 13
 	http_response_code(500);
14 14
 	echo 'This version of Nextcloud is not compatible with > PHP 7.4.<br/>';
15
-	echo 'You are currently running ' . PHP_VERSION . '.';
15
+	echo 'You are currently running '.PHP_VERSION.'.';
16 16
 	exit(-1);
17 17
 }
Please login to merge, or discard this patch.
apps/files/lib/BackgroundJob/TransferOwnership.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 		$destinationUserObject = $this->userManager->get($destinationUser);
99 99
 
100 100
 		if (!$sourceUserObject instanceof IUser) {
101
-			$this->logger->alert('Could not transfer ownership: Unknown source user ' . $sourceUser);
101
+			$this->logger->alert('Could not transfer ownership: Unknown source user '.$sourceUser);
102 102
 			$this->failedNotication($transfer);
103 103
 			return;
104 104
 		}
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 				'targetUser' => $transfer->getTargetUser(),
137 137
 				'nodeName' => $transfer->getNodeName(),
138 138
 			])
139
-			->setObject('transfer', (string)$transfer->getId());
139
+			->setObject('transfer', (string) $transfer->getId());
140 140
 		$this->notificationManager->notify($notification);
141 141
 
142 142
 		// Send notification to source user
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 				'targetUser' => $transfer->getTargetUser(),
150 150
 				'nodeName' => $transfer->getNodeName(),
151 151
 			])
152
-			->setObject('transfer', (string)$transfer->getId());
152
+			->setObject('transfer', (string) $transfer->getId());
153 153
 		$this->notificationManager->notify($notification);
154 154
 	}
155 155
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 				'targetUser' => $transfer->getTargetUser(),
165 165
 				'nodeName' => $transfer->getNodeName(),
166 166
 			])
167
-			->setObject('transfer', (string)$transfer->getId());
167
+			->setObject('transfer', (string) $transfer->getId());
168 168
 		$this->notificationManager->notify($notification);
169 169
 
170 170
 		// Send notification to source user
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 				'targetUser' => $transfer->getTargetUser(),
178 178
 				'nodeName' => $transfer->getNodeName(),
179 179
 			])
180
-			->setObject('transfer', (string)$transfer->getId());
180
+			->setObject('transfer', (string) $transfer->getId());
181 181
 		$this->notificationManager->notify($notification);
182 182
 	}
183 183
 }
Please login to merge, or discard this patch.
lib/private/Files/Cache/Propagator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 			}
72 72
 		}
73 73
 
74
-		$storageId = (int)$this->storage->getStorageCache()->getNumericId();
74
+		$storageId = (int) $this->storage->getStorageCache()->getNumericId();
75 75
 
76 76
 		$parents = $this->getParents($internalPath);
77 77
 
@@ -86,12 +86,12 @@  discard block
 block discarded – undo
86 86
 		$etag = uniqid(); // since we give all folders the same etag we don't ask the storage for the etag
87 87
 
88 88
 		$builder = $this->connection->getQueryBuilder();
89
-		$hashParams = array_map(function ($hash) use ($builder) {
89
+		$hashParams = array_map(function($hash) use ($builder) {
90 90
 			return $builder->expr()->literal($hash);
91 91
 		}, $parentHashes);
92 92
 
93 93
 		$builder->update('filecache')
94
-			->set('mtime', $builder->func()->greatest('mtime', $builder->createNamedParameter((int)$time, IQueryBuilder::PARAM_INT)))
94
+			->set('mtime', $builder->func()->greatest('mtime', $builder->createNamedParameter((int) $time, IQueryBuilder::PARAM_INT)))
95 95
 			->set('etag', $builder->createNamedParameter($etag, IQueryBuilder::PARAM_STR))
96 96
 			->where($builder->expr()->eq('storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
97 97
 			->andWhere($builder->expr()->in('path_hash', $hashParams));
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 		$parents = [];
121 121
 		foreach ($parts as $part) {
122 122
 			$parents[] = $parent;
123
-			$parent = trim($parent . '/' . $part, '/');
123
+			$parent = trim($parent.'/'.$part, '/');
124 124
 		}
125 125
 		return $parents;
126 126
 	}
@@ -165,10 +165,10 @@  discard block
 block discarded – undo
165 165
 		$this->connection->beginTransaction();
166 166
 
167 167
 		$query = $this->connection->getQueryBuilder();
168
-		$storageId = (int)$this->storage->getStorageCache()->getNumericId();
168
+		$storageId = (int) $this->storage->getStorageCache()->getNumericId();
169 169
 
170 170
 		$query->update('filecache')
171
-			->set('mtime', $query->createFunction('GREATEST(' . $query->getColumnName('mtime') . ', ' . $query->createParameter('time') . ')'))
171
+			->set('mtime', $query->createFunction('GREATEST('.$query->getColumnName('mtime').', '.$query->createParameter('time').')'))
172 172
 			->set('etag', $query->expr()->literal(uniqid()))
173 173
 			->where($query->expr()->eq('storage', $query->expr()->literal($storageId, IQueryBuilder::PARAM_INT)))
174 174
 			->andWhere($query->expr()->eq('path_hash', $query->createParameter('hash')));
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/FunctionBuilder/SqliteFunctionBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
 
29 29
 class SqliteFunctionBuilder extends FunctionBuilder {
30 30
 	public function concat($x, $y) {
31
-		return new QueryFunction('(' . $this->helper->quoteColumnName($x) . ' || ' . $this->helper->quoteColumnName($y) . ')');
31
+		return new QueryFunction('('.$this->helper->quoteColumnName($x).' || '.$this->helper->quoteColumnName($y).')');
32 32
 	}
33 33
 
34 34
 	public function greatest($x, $y) {
35
-		return new QueryFunction('MAX(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
35
+		return new QueryFunction('MAX('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
36 36
 	}
37 37
 
38 38
 	public function least($x, $y) {
39
-		return new QueryFunction('MIN(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
39
+		return new QueryFunction('MIN('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
40 40
 	}
41 41
 
42 42
 }
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/FunctionBuilder/FunctionBuilder.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -41,56 +41,56 @@
 block discarded – undo
41 41
 	}
42 42
 
43 43
 	public function md5($input) {
44
-		return new QueryFunction('MD5(' . $this->helper->quoteColumnName($input) . ')');
44
+		return new QueryFunction('MD5('.$this->helper->quoteColumnName($input).')');
45 45
 	}
46 46
 
47 47
 	public function concat($x, $y) {
48
-		return new QueryFunction('CONCAT(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
48
+		return new QueryFunction('CONCAT('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
49 49
 	}
50 50
 
51 51
 	public function substring($input, $start, $length = null) {
52 52
 		if ($length) {
53
-			return new QueryFunction('SUBSTR(' . $this->helper->quoteColumnName($input) . ', ' . $this->helper->quoteColumnName($start) . ', ' . $this->helper->quoteColumnName($length) . ')');
53
+			return new QueryFunction('SUBSTR('.$this->helper->quoteColumnName($input).', '.$this->helper->quoteColumnName($start).', '.$this->helper->quoteColumnName($length).')');
54 54
 		} else {
55
-			return new QueryFunction('SUBSTR(' . $this->helper->quoteColumnName($input) . ', ' . $this->helper->quoteColumnName($start) . ')');
55
+			return new QueryFunction('SUBSTR('.$this->helper->quoteColumnName($input).', '.$this->helper->quoteColumnName($start).')');
56 56
 		}
57 57
 	}
58 58
 
59 59
 	public function sum($field) {
60
-		return new QueryFunction('SUM(' . $this->helper->quoteColumnName($field) . ')');
60
+		return new QueryFunction('SUM('.$this->helper->quoteColumnName($field).')');
61 61
 	}
62 62
 
63 63
 	public function lower($field) {
64
-		return new QueryFunction('LOWER(' . $this->helper->quoteColumnName($field) . ')');
64
+		return new QueryFunction('LOWER('.$this->helper->quoteColumnName($field).')');
65 65
 	}
66 66
 
67 67
 	public function add($x, $y) {
68
-		return new QueryFunction($this->helper->quoteColumnName($x) . ' + ' . $this->helper->quoteColumnName($y));
68
+		return new QueryFunction($this->helper->quoteColumnName($x).' + '.$this->helper->quoteColumnName($y));
69 69
 	}
70 70
 
71 71
 	public function subtract($x, $y) {
72
-		return new QueryFunction($this->helper->quoteColumnName($x) . ' - ' . $this->helper->quoteColumnName($y));
72
+		return new QueryFunction($this->helper->quoteColumnName($x).' - '.$this->helper->quoteColumnName($y));
73 73
 	}
74 74
 
75 75
 	public function count($count = '', $alias = '') {
76
-		$alias = $alias ? (' AS ' . $this->helper->quoteColumnName($alias)) : '';
76
+		$alias = $alias ? (' AS '.$this->helper->quoteColumnName($alias)) : '';
77 77
 		$quotedName = $count === '' ? '*' : $this->helper->quoteColumnName($count);
78
-		return new QueryFunction('COUNT(' . $quotedName . ')' . $alias);
78
+		return new QueryFunction('COUNT('.$quotedName.')'.$alias);
79 79
 	}
80 80
 
81 81
 	public function max($field) {
82
-		return new QueryFunction('MAX(' . $this->helper->quoteColumnName($field) . ')');
82
+		return new QueryFunction('MAX('.$this->helper->quoteColumnName($field).')');
83 83
 	}
84 84
 
85 85
 	public function min($field) {
86
-		return new QueryFunction('MIN(' . $this->helper->quoteColumnName($field) . ')');
86
+		return new QueryFunction('MIN('.$this->helper->quoteColumnName($field).')');
87 87
 	}
88 88
 
89 89
 	public function greatest($x, $y) {
90
-		return new QueryFunction('GREATEST(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
90
+		return new QueryFunction('GREATEST('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
91 91
 	}
92 92
 
93 93
 	public function least($x, $y) {
94
-		return new QueryFunction('LEAST(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
94
+		return new QueryFunction('LEAST('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
95 95
 	}
96 96
 }
Please login to merge, or discard this patch.