Passed
Push — master ( 5cdc3e...6401d8 )
by Morris
26:35 queued 11s
created
apps/files_sharing/lib/Command/CleanupRemoteStorages.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
 	public function execute(InputInterface $input, OutputInterface $output): int {
70 70
 		$remoteStorages = $this->getRemoteStorages();
71 71
 
72
-		$output->writeln(count($remoteStorages) . ' remote storage(s) need(s) to be checked');
72
+		$output->writeln(count($remoteStorages).' remote storage(s) need(s) to be checked');
73 73
 
74 74
 		$remoteShareIds = $this->getRemoteShareIds();
75 75
 
76
-		$output->writeln(count($remoteShareIds) . ' remote share(s) exist');
76
+		$output->writeln(count($remoteShareIds).' remote share(s) exist');
77 77
 
78 78
 		foreach ($remoteShareIds as $id => $remoteShareId) {
79 79
 			if (isset($remoteStorages[$remoteShareId])) {
@@ -151,13 +151,13 @@  discard block
 block discarded – undo
151 151
 			->where($queryBuilder->expr()->like(
152 152
 				'id',
153 153
 				// match all 'shared::' + 32 characters storages
154
-				$queryBuilder->createNamedParameter($this->connection->escapeLikeParameter('shared::') . str_repeat('_', 32)),
154
+				$queryBuilder->createNamedParameter($this->connection->escapeLikeParameter('shared::').str_repeat('_', 32)),
155 155
 				IQueryBuilder::PARAM_STR)
156 156
 			)
157 157
 			->andWhere($queryBuilder->expr()->notLike(
158 158
 				'id',
159 159
 				// but not the ones starting with a '/', they are for normal shares
160
-				$queryBuilder->createNamedParameter($this->connection->escapeLikeParameter('shared::/') . '%'),
160
+				$queryBuilder->createNamedParameter($this->connection->escapeLikeParameter('shared::/').'%'),
161 161
 				IQueryBuilder::PARAM_STR)
162 162
 			)->orderBy('numeric_id');
163 163
 		$query = $queryBuilder->execute();
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 			$cloudId = $this->cloudIdManager->getCloudId($row['owner'], $row['remote']);
184 184
 			$remote = $cloudId->getRemote();
185 185
 
186
-			$remoteShareIds[$row['id']] = 'shared::' . md5($row['share_token'] . '@' . $remote);
186
+			$remoteShareIds[$row['id']] = 'shared::'.md5($row['share_token'].'@'.$remote);
187 187
 		}
188 188
 
189 189
 		return $remoteShareIds;
Please login to merge, or discard this patch.