@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | $this->logger->logException($e); |
130 | 130 | return new DataResponse( |
131 | 131 | [ |
132 | - 'message' => (string)$this->l10n->t('Invalid backend or authentication mechanism class') |
|
132 | + 'message' => (string) $this->l10n->t('Invalid backend or authentication mechanism class') |
|
133 | 133 | ], |
134 | 134 | Http::STATUS_UNPROCESSABLE_ENTITY |
135 | 135 | ); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | if ($mountPoint === '') { |
149 | 149 | return new DataResponse( |
150 | 150 | [ |
151 | - 'message' => (string)$this->l10n->t('Invalid mount point'), |
|
151 | + 'message' => (string) $this->l10n->t('Invalid mount point'), |
|
152 | 152 | ], |
153 | 153 | Http::STATUS_UNPROCESSABLE_ENTITY |
154 | 154 | ); |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | // objectstore must not be sent from client side |
159 | 159 | return new DataResponse( |
160 | 160 | [ |
161 | - 'message' => (string)$this->l10n->t('Objectstore forbidden'), |
|
161 | + 'message' => (string) $this->l10n->t('Objectstore forbidden'), |
|
162 | 162 | ], |
163 | 163 | Http::STATUS_UNPROCESSABLE_ENTITY |
164 | 164 | ); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | // invalid backend |
173 | 173 | return new DataResponse( |
174 | 174 | [ |
175 | - 'message' => (string)$this->l10n->t('Invalid storage backend "%s"', [ |
|
175 | + 'message' => (string) $this->l10n->t('Invalid storage backend "%s"', [ |
|
176 | 176 | $backend->getIdentifier(), |
177 | 177 | ]), |
178 | 178 | ], |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | // not permitted to use backend |
185 | 185 | return new DataResponse( |
186 | 186 | [ |
187 | - 'message' => (string)$this->l10n->t('Not permitted to use backend "%s"', [ |
|
187 | + 'message' => (string) $this->l10n->t('Not permitted to use backend "%s"', [ |
|
188 | 188 | $backend->getIdentifier(), |
189 | 189 | ]), |
190 | 190 | ], |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | // not permitted to use auth mechanism |
196 | 196 | return new DataResponse( |
197 | 197 | [ |
198 | - 'message' => (string)$this->l10n->t('Not permitted to use authentication mechanism "%s"', [ |
|
198 | + 'message' => (string) $this->l10n->t('Not permitted to use authentication mechanism "%s"', [ |
|
199 | 199 | $authMechanism->getIdentifier(), |
200 | 200 | ]), |
201 | 201 | ], |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | // unsatisfied parameters |
208 | 208 | return new DataResponse( |
209 | 209 | [ |
210 | - 'message' => (string)$this->l10n->t('Unsatisfied backend parameters'), |
|
210 | + 'message' => (string) $this->l10n->t('Unsatisfied backend parameters'), |
|
211 | 211 | ], |
212 | 212 | Http::STATUS_UNPROCESSABLE_ENTITY |
213 | 213 | ); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | // unsatisfied parameters |
217 | 217 | return new DataResponse( |
218 | 218 | [ |
219 | - 'message' => (string)$this->l10n->t('Unsatisfied authentication mechanism parameters'), |
|
219 | + 'message' => (string) $this->l10n->t('Unsatisfied authentication mechanism parameters'), |
|
220 | 220 | ], |
221 | 221 | Http::STATUS_UNPROCESSABLE_ENTITY |
222 | 222 | ); |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | // FIXME: convert storage exceptions to StorageNotAvailableException |
274 | 274 | $storage->setStatus( |
275 | 275 | StorageNotAvailableException::STATUS_ERROR, |
276 | - get_class($e) . ': ' . $e->getMessage() |
|
276 | + get_class($e).': '.$e->getMessage() |
|
277 | 277 | ); |
278 | 278 | } |
279 | 279 | } |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | } |
294 | 294 | |
295 | 295 | protected function formatStoragesForUI(array $storages): array { |
296 | - return array_map(function ($storage) { |
|
296 | + return array_map(function($storage) { |
|
297 | 297 | return $this->formatStorageForUI($storage); |
298 | 298 | }, $storages); |
299 | 299 | } |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | } catch (NotFoundException $e) { |
332 | 332 | return new DataResponse( |
333 | 333 | [ |
334 | - 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', [$id]), |
|
334 | + 'message' => (string) $this->l10n->t('Storage with ID "%d" not found', [$id]), |
|
335 | 335 | ], |
336 | 336 | Http::STATUS_NOT_FOUND |
337 | 337 | ); |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | } catch (NotFoundException $e) { |
357 | 357 | return new DataResponse( |
358 | 358 | [ |
359 | - 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', [$id]), |
|
359 | + 'message' => (string) $this->l10n->t('Storage with ID "%d" not found', [$id]), |
|
360 | 360 | ], |
361 | 361 | Http::STATUS_NOT_FOUND |
362 | 362 | ); |
@@ -135,15 +135,15 @@ |
||
135 | 135 | } |
136 | 136 | |
137 | 137 | if ( |
138 | - $this->testUrl('https://' . $remote . '/ocs-provider/') || |
|
139 | - $this->testUrl('https://' . $remote . '/ocs-provider/index.php') || |
|
140 | - $this->testUrl('https://' . $remote . '/status.php', true) |
|
138 | + $this->testUrl('https://'.$remote.'/ocs-provider/') || |
|
139 | + $this->testUrl('https://'.$remote.'/ocs-provider/index.php') || |
|
140 | + $this->testUrl('https://'.$remote.'/status.php', true) |
|
141 | 141 | ) { |
142 | 142 | return new DataResponse('https'); |
143 | 143 | } elseif ( |
144 | - $this->testUrl('http://' . $remote . '/ocs-provider/') || |
|
145 | - $this->testUrl('http://' . $remote . '/ocs-provider/index.php') || |
|
146 | - $this->testUrl('http://' . $remote . '/status.php', true) |
|
144 | + $this->testUrl('http://'.$remote.'/ocs-provider/') || |
|
145 | + $this->testUrl('http://'.$remote.'/ocs-provider/index.php') || |
|
146 | + $this->testUrl('http://'.$remote.'/status.php', true) |
|
147 | 147 | ) { |
148 | 148 | return new DataResponse('http'); |
149 | 149 | } else { |
@@ -75,17 +75,17 @@ |
||
75 | 75 | ]); |
76 | 76 | $table->setPrimaryKey(['id']); |
77 | 77 | // To find all recent entries |
78 | - $table->addIndex(['actor_uid'], RecentContactMapper::TABLE_NAME . '_actor_uid'); |
|
78 | + $table->addIndex(['actor_uid'], RecentContactMapper::TABLE_NAME.'_actor_uid'); |
|
79 | 79 | // To find a specific entry |
80 | - $table->addIndex(['id', 'actor_uid'], RecentContactMapper::TABLE_NAME . '_id_uid'); |
|
80 | + $table->addIndex(['id', 'actor_uid'], RecentContactMapper::TABLE_NAME.'_id_uid'); |
|
81 | 81 | // To find all recent entries with a given UID |
82 | - $table->addIndex(['uid'], RecentContactMapper::TABLE_NAME . '_uid'); |
|
82 | + $table->addIndex(['uid'], RecentContactMapper::TABLE_NAME.'_uid'); |
|
83 | 83 | // To find all recent entries with a given email address |
84 | - $table->addIndex(['email'], RecentContactMapper::TABLE_NAME . '_email'); |
|
84 | + $table->addIndex(['email'], RecentContactMapper::TABLE_NAME.'_email'); |
|
85 | 85 | // To find all recent entries with a give federated cloud id |
86 | - $table->addIndex(['federated_cloud_id'], RecentContactMapper::TABLE_NAME . '_fed_id'); |
|
86 | + $table->addIndex(['federated_cloud_id'], RecentContactMapper::TABLE_NAME.'_fed_id'); |
|
87 | 87 | // For the cleanup |
88 | - $table->addIndex(['last_contact'], RecentContactMapper::TABLE_NAME . '_last_contact'); |
|
88 | + $table->addIndex(['last_contact'], RecentContactMapper::TABLE_NAME.'_last_contact'); |
|
89 | 89 | |
90 | 90 | return $schema; |
91 | 91 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | } |
68 | 68 | $addressbooksQuery->selectDistinct('id') |
69 | 69 | ->from('addressbooks') |
70 | - ->where($addressbooksQuery->expr()->eq('principaluri', $cardQuery->createNamedParameter("principals/users/" . $user->getUID()))); |
|
70 | + ->where($addressbooksQuery->expr()->eq('principaluri', $cardQuery->createNamedParameter("principals/users/".$user->getUID()))); |
|
71 | 71 | $propQuery->selectDistinct('cardid') |
72 | 72 | ->from('cards_properties') |
73 | 73 | ->where($propQuery->expr()->in('addressbookid', $propQuery->createFunction($addressbooksQuery->getSQL()), IQueryBuilder::PARAM_INT_ARRAY)) |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | // autoload.php @generated by Composer |
4 | 4 | |
5 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
5 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
6 | 6 | |
7 | 7 | return ComposerAutoloaderInitContactsInteraction::getLoader(); |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\ContactsInteraction\\' => array($baseDir . '/../lib'), |
|
9 | + 'OCA\\ContactsInteraction\\' => array($baseDir.'/../lib'), |
|
10 | 10 | ); |
@@ -370,18 +370,18 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | $subPath = $class; |
378 | 378 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
379 | 379 | $subPath = substr($subPath, 0, $lastPos); |
380 | - $search = $subPath . '\\'; |
|
380 | + $search = $subPath.'\\'; |
|
381 | 381 | if (isset($this->prefixDirsPsr4[$search])) { |
382 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
382 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
383 | 383 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
384 | - if (file_exists($file = $dir . $pathEnd)) { |
|
384 | + if (file_exists($file = $dir.$pathEnd)) { |
|
385 | 385 | return $file; |
386 | 386 | } |
387 | 387 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | // PSR-4 fallback dirs |
393 | 393 | foreach ($this->fallbackDirsPsr4 as $dir) { |
394 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
394 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
395 | 395 | return $file; |
396 | 396 | } |
397 | 397 | } |
@@ -403,14 +403,14 @@ discard block |
||
403 | 403 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
404 | 404 | } else { |
405 | 405 | // PEAR-like class name |
406 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
406 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
407 | 407 | } |
408 | 408 | |
409 | 409 | if (isset($this->prefixesPsr0[$first])) { |
410 | 410 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
411 | 411 | if (0 === strpos($class, $prefix)) { |
412 | 412 | foreach ($dirs as $dir) { |
413 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
413 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
414 | 414 | return $file; |
415 | 415 | } |
416 | 416 | } |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | // PSR-0 fallback dirs |
422 | 422 | foreach ($this->fallbackDirsPsr0 as $dir) { |
423 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
423 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
424 | 424 | return $file; |
425 | 425 | } |
426 | 426 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $l = \OC::$server->getL10N('files'); |
34 | 34 | |
35 | 35 | // Load the files |
36 | -$dir = isset($_GET['dir']) ? (string)$_GET['dir'] : ''; |
|
36 | +$dir = isset($_GET['dir']) ? (string) $_GET['dir'] : ''; |
|
37 | 37 | $dir = \OC\Files\Filesystem::normalizePath($dir); |
38 | 38 | |
39 | 39 | try { |
@@ -44,11 +44,11 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | $data = []; |
47 | - $baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php') . '?dir='; |
|
47 | + $baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php').'?dir='; |
|
48 | 48 | |
49 | 49 | $permissions = $dirInfo->getPermissions(); |
50 | 50 | |
51 | - $sortAttribute = isset($_GET['sort']) ? (string)$_GET['sort'] : 'name'; |
|
51 | + $sortAttribute = isset($_GET['sort']) ? (string) $_GET['sort'] : 'name'; |
|
52 | 52 | $sortDirection = isset($_GET['sortdirection']) ? ($_GET['sortdirection'] === 'desc') : false; |
53 | 53 | $mimetypeFilters = isset($_GET['mimetypes']) ? json_decode($_GET['mimetypes']) : ''; |
54 | 54 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | } else { |
35 | 35 | http_response_code(307); |
36 | 36 | } |
37 | - header('Location: ' . $urlGenerator->linkToRoute($route, ['token' => $token])); |
|
37 | + header('Location: '.$urlGenerator->linkToRoute($route, ['token' => $token])); |
|
38 | 38 | } else { |
39 | 39 | http_response_code(404); |
40 | 40 | $tmpl = new OCP\Template('', '404', 'guest'); |