Passed
Push — master ( 27f492...c31d31 )
by Roeland
16:19
created
apps/files/templates/simplelist.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
 		<tr>
19 19
 			<th id='headerName' class="hidden column-name">
20 20
 				<div id="headerName-container">
21
-					<a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a>
21
+					<a class="name sort columntitle" data-sort="name"><span><?php p($l->t('Name')); ?></span><span class="sort-indicator"></span></a>
22 22
 				</div>
23 23
 			</th>
24 24
 			<th id="headerSize" class="hidden column-size">
25 25
 				<a class="size sort columntitle" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a>
26 26
 			</th>
27 27
 			<th id="headerDate" class="hidden column-mtime">
28
-				<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Modified' )); ?></span><span class="sort-indicator"></span></a>
28
+				<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t('Modified')); ?></span><span class="sort-indicator"></span></a>
29 29
 				<span class="selectedActions">
30 30
 				    <a href="" class="delete-selected">
31 31
 					<img class="svg" alt=""
Please login to merge, or discard this patch.
apps/files/templates/list.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 		<div class="actions creatable hidden">
3 3
 			<div id="uploadprogresswrapper">
4 4
 				<div id="uploadprogressbar">
5
-					<em class="label outer" style="display:none"><span class="desktop"><?php p($l->t('Uploading …'));?></span><span class="mobile"><?php p($l->t('…'));?></span></em>
5
+					<em class="label outer" style="display:none"><span class="desktop"><?php p($l->t('Uploading …')); ?></span><span class="mobile"><?php p($l->t('…')); ?></span></em>
6 6
 				</div>
7 7
 				<button class="stop icon-close" style="display:none">
8 8
 					<span class="hidden-visually"><?php p($l->t('Cancel upload')) ?></span>
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 	*/ ?>
19 19
 	<input type="hidden" name="permissions" value="" id="permissions">
20 20
 	<input type="hidden" id="free_space" value="<?php isset($_['freeSpace']) ? p($_['freeSpace']) : '' ?>">
21
-	<?php if(isset($_['dirToken'])):?>
21
+	<?php if (isset($_['dirToken'])):?>
22 22
 	<input type="hidden" id="publicUploadRequestToken" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
23 23
 	<input type="hidden" id="dirToken" name="dirToken" value="<?php p($_['dirToken']) ?>" />
24
-	<?php endif;?>
24
+	<?php endif; ?>
25 25
 	<input type="hidden" class="max_human_file_size"
26 26
 		   value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
27 27
 </div>
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			<th id='headerName' class="hidden column-name">
51 51
 				<div id="headerName-container">
52 52
 					<a class="name sort columntitle" data-sort="name">
53
-                        <span><?php p($l->t( 'Name' )); ?></span>
53
+                        <span><?php p($l->t('Name')); ?></span>
54 54
                         <span class="sort-indicator"></span>
55 55
 
56 56
                     </a>
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 				<a class="size sort columntitle" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a>
67 67
 			</th>
68 68
 			<th id="headerDate" class="hidden column-mtime">
69
-				<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Modified' )); ?></span><span class="sort-indicator"></span></a>
69
+				<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t('Modified')); ?></span><span class="sort-indicator"></span></a>
70 70
 			</th>
71 71
 		</tr>
72 72
 	</thead>
@@ -82,6 +82,6 @@  discard block
 block discarded – undo
82 82
 <div id="editor"></div><!-- FIXME Do not use this div in your app! It is deprecated and will be removed in the future! -->
83 83
 <div id="uploadsize-message" title="<?php p($l->t('Upload too large'))?>">
84 84
 	<p>
85
-	<?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.'));?>
85
+	<?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.')); ?>
86 86
 	</p>
87 87
 </div>
Please login to merge, or discard this patch.
apps/files_trashbin/templates/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 			</th>
30 30
 			<th id='headerName' class="hidden column-name">
31 31
 				<div id="headerName-container">
32
-					<a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a>
32
+					<a class="name sort columntitle" data-sort="name"><span><?php p($l->t('Name')); ?></span><span class="sort-indicator"></span></a>
33 33
 					<span id="selectedActionsList" class='selectedActions'>
34 34
 						<a href="" class="actions-selected">
35 35
 							<span class="icon icon-more"></span>
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 				</div>
40 40
 			</th>
41 41
 			<th id="headerDate" class="hidden column-mtime">
42
-				<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Deleted' )); ?></span><span class="sort-indicator"></span></a>
42
+				<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t('Deleted')); ?></span><span class="sort-indicator"></span></a>
43 43
 			</th>
44 44
 		</tr>
45 45
 	</thead>
Please login to merge, or discard this patch.
lib/private/Authentication/TwoFactorAuth/Registry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * @copyright 2018 Christoph Wurst <[email protected]>
Please login to merge, or discard this patch.
lib/private/Files/ObjectStore/Azure.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
 	private function getBlobClient() {
60 60
 		if (!$this->blobClient) {
61 61
 			$protocol = $this->endpoint ? substr($this->endpoint, 0, strpos($this->endpoint, ':')) : 'https';
62
-			$connectionString = "DefaultEndpointsProtocol=" . $protocol . ";AccountName=" . $this->accountName . ";AccountKey=" . $this->accountKey;
62
+			$connectionString = "DefaultEndpointsProtocol=".$protocol.";AccountName=".$this->accountName.";AccountKey=".$this->accountKey;
63 63
 			if ($this->endpoint) {
64
-				$connectionString .= ';BlobEndpoint=' . $this->endpoint;
64
+				$connectionString .= ';BlobEndpoint='.$this->endpoint;
65 65
 			}
66 66
 			$this->blobClient = BlobRestProxy::createBlobService($connectionString);
67 67
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 * @return string the container or bucket name where objects are stored
77 77
 	 */
78 78
 	public function getStorageId() {
79
-		return 'azure::blob::' . $this->containerName;
79
+		return 'azure::blob::'.$this->containerName;
80 80
 	}
81 81
 
82 82
 	/**
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/Notifications.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 			$ocsStatus = isset($status['ocs']);
118 118
 			$ocsSuccess = $ocsStatus && ($status['ocs']['meta']['statuscode'] === 100 || $status['ocs']['meta']['statuscode'] === 200);
119 119
 
120
-			if ($result['success'] && (!$ocsStatus ||$ocsSuccess)) {
120
+			if ($result['success'] && (!$ocsStatus || $ocsSuccess)) {
121 121
 				\OC_Hook::emit('OCP\Share', 'federated_share_added', ['server' => $remote]);
122 122
 				return true;
123 123
 			}
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 			return [$ocmResult['token'], $ocmResult['providerId']];
161 161
 		}
162 162
 
163
-		$result = $this->tryLegacyEndPoint(rtrim($remote, '/'), '/' . $id . '/reshare', $fields);
163
+		$result = $this->tryLegacyEndPoint(rtrim($remote, '/'), '/'.$id.'/reshare', $fields);
164 164
 		$status = json_decode($result['result'], true);
165 165
 
166 166
 		$httpRequestSuccessful = $result['success'];
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		if ($httpRequestSuccessful && $ocsCallSuccessful && $validToken && $validRemoteId) {
172 172
 			return [
173 173
 				$status['ocs']['data']['token'],
174
-				(int)$status['ocs']['data']['remoteId']
174
+				(int) $status['ocs']['data']['remoteId']
175 175
 			];
176 176
 		}
177 177
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 			$fields[$key] = $value;
259 259
 		}
260 260
 
261
-		$result = $this->tryHttpPostToShareEndpoint(rtrim($remote, '/'), '/' . $remoteId . '/' . $action, $fields, $action);
261
+		$result = $this->tryHttpPostToShareEndpoint(rtrim($remote, '/'), '/'.$remoteId.'/'.$action, $fields, $action);
262 262
 		$status = json_decode($result['result'], true);
263 263
 
264 264
 		if ($result['success'] &&
@@ -306,10 +306,10 @@  discard block
 block discarded – undo
306 306
 	 * @return array
307 307
 	 * @throws \Exception
308 308
 	 */
309
-	protected function tryHttpPostToShareEndpoint($remoteDomain, $urlSuffix, array $fields, $action="share") {
309
+	protected function tryHttpPostToShareEndpoint($remoteDomain, $urlSuffix, array $fields, $action = "share") {
310 310
 
311 311
 		if ($this->addressHandler->urlContainProtocol($remoteDomain) === false) {
312
-			$remoteDomain = 'https://' . $remoteDomain;
312
+			$remoteDomain = 'https://'.$remoteDomain;
313 313
 		}
314 314
 
315 315
 		$result = [
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 		$federationEndpoints = $this->discoveryService->discover($remoteDomain, 'FEDERATED_SHARING');
349 349
 		$endpoint = isset($federationEndpoints['share']) ? $federationEndpoints['share'] : '/ocs/v2.php/cloud/shares';
350 350
 		try {
351
-			$response = $client->post($remoteDomain . $endpoint . $urlSuffix . '?format=' . self::RESPONSE_FORMAT, [
351
+			$response = $client->post($remoteDomain.$endpoint.$urlSuffix.'?format='.self::RESPONSE_FORMAT, [
352 352
 				'body' => $fields,
353 353
 				'timeout' => 10,
354 354
 				'connect_timeout' => 10,
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 		switch ($action) {
406 406
 			case 'share':
407 407
 				$share = $this->cloudFederationFactory->getCloudFederationShare(
408
-					$fields['shareWith'] . '@' . $remoteDomain,
408
+					$fields['shareWith'].'@'.$remoteDomain,
409 409
 					$fields['name'],
410 410
 					'',
411 411
 					$fields['remoteId'],
Please login to merge, or discard this patch.
core/Application.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
 
48 48
 		$container = $this->getContainer();
49 49
 
50
-		$container->registerService('defaultMailAddress', function () {
50
+		$container->registerService('defaultMailAddress', function() {
51 51
 			return Util::getDefaultEmailAddress('lostpassword-noreply');
52 52
 		});
53 53
 
Please login to merge, or discard this patch.
lib/public/IDBConnection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
  */
47 47
 interface IDBConnection {
48 48
 
49
-	const ADD_MISSING_INDEXES_EVENT = self::class . '::ADD_MISSING_INDEXES';
50
-	const CHECK_MISSING_INDEXES_EVENT = self::class . '::CHECK_MISSING_INDEXES';
49
+	const ADD_MISSING_INDEXES_EVENT = self::class.'::ADD_MISSING_INDEXES';
50
+	const CHECK_MISSING_INDEXES_EVENT = self::class.'::CHECK_MISSING_INDEXES';
51 51
 
52 52
 	/**
53 53
 	 * Gets the QueryBuilder for the connection.
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * @return \Doctrine\DBAL\Driver\Statement The prepared statement.
66 66
 	 * @since 6.0.0
67 67
 	 */
68
-	public function prepare($sql, $limit=null, $offset=null);
68
+	public function prepare($sql, $limit = null, $offset = null);
69 69
 
70 70
 	/**
71 71
 	 * Executes an, optionally parameterized, SQL query.
Please login to merge, or discard this patch.
apps/theming/lib/Controller/IconController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
 	 */
91 91
 	public function getThemedIcon(string $app, string $image): Response {
92 92
 		try {
93
-			$iconFile = $this->imageManager->getCachedImage('icon-' . $app . '-' . str_replace('/', '_',$image));
93
+			$iconFile = $this->imageManager->getCachedImage('icon-'.$app.'-'.str_replace('/', '_', $image));
94 94
 		} catch (NotFoundException $exception) {
95 95
 			$icon = $this->iconBuilder->colorSvg($app, $image);
96 96
 			if ($icon === false || $icon === '') {
97 97
 				return new NotFoundResponse();
98 98
 			}
99
-			$iconFile = $this->imageManager->setCachedImage('icon-' . $app . '-' . str_replace('/', '_',$image), $icon);
99
+			$iconFile = $this->imageManager->setCachedImage('icon-'.$app.'-'.str_replace('/', '_', $image), $icon);
100 100
 		}
101 101
 		if ($iconFile !== false) {
102 102
 			$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/svg+xml']);
@@ -127,17 +127,17 @@  discard block
 block discarded – undo
127 127
 		}
128 128
 		if ($iconFile === null && $this->imageManager->shouldReplaceIcons()) {
129 129
 			try {
130
-				$iconFile = $this->imageManager->getCachedImage('favIcon-' . $app);
130
+				$iconFile = $this->imageManager->getCachedImage('favIcon-'.$app);
131 131
 			} catch (NotFoundException $exception) {
132 132
 				$icon = $this->iconBuilder->getFavicon($app);
133
-				$iconFile = $this->imageManager->setCachedImage('favIcon-' . $app, $icon);
133
+				$iconFile = $this->imageManager->setCachedImage('favIcon-'.$app, $icon);
134 134
 			}
135 135
 			if ($iconFile !== false) {
136 136
 				$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/x-icon']);
137 137
 			}
138 138
 		}
139
-		if($response === null) {
140
-			$fallbackLogo = \OC::$SERVERROOT . '/core/img/favicon.png';
139
+		if ($response === null) {
140
+			$fallbackLogo = \OC::$SERVERROOT.'/core/img/favicon.png';
141 141
 			$response = new DataDisplayResponse($this->fileAccessHelper->file_get_contents($fallbackLogo), Http::STATUS_OK, ['Content-Type' => 'image/x-icon']);
142 142
 		}
143 143
 		$response->cacheFor(86400);
@@ -163,17 +163,17 @@  discard block
 block discarded – undo
163 163
 		}
164 164
 		if ($this->imageManager->shouldReplaceIcons()) {
165 165
 			try {
166
-				$iconFile = $this->imageManager->getCachedImage('touchIcon-' . $app);
166
+				$iconFile = $this->imageManager->getCachedImage('touchIcon-'.$app);
167 167
 			} catch (NotFoundException $exception) {
168 168
 				$icon = $this->iconBuilder->getTouchIcon($app);
169
-				$iconFile = $this->imageManager->setCachedImage('touchIcon-' . $app, $icon);
169
+				$iconFile = $this->imageManager->setCachedImage('touchIcon-'.$app, $icon);
170 170
 			}
171 171
 			if ($iconFile !== false) {
172 172
 				$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/png']);
173 173
 			}
174 174
 		}
175
-		if($response === null) {
176
-			$fallbackLogo = \OC::$SERVERROOT . '/core/img/favicon-touch.png';
175
+		if ($response === null) {
176
+			$fallbackLogo = \OC::$SERVERROOT.'/core/img/favicon-touch.png';
177 177
 			$response = new DataDisplayResponse($this->fileAccessHelper->file_get_contents($fallbackLogo), Http::STATUS_OK, ['Content-Type' => 'image/png']);
178 178
 		}
179 179
 		$response->cacheFor(86400);
Please login to merge, or discard this patch.