@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | protected function setSubjects(IEvent $event, $subject, array $parameters) { |
126 | 126 | $placeholders = $replacements = []; |
127 | 127 | foreach ($parameters as $placeholder => $parameter) { |
128 | - $placeholders[] = '{' . $placeholder . '}'; |
|
128 | + $placeholders[] = '{'.$placeholder.'}'; |
|
129 | 129 | if ($parameter['type'] === 'file') { |
130 | 130 | $replacements[] = $parameter['path']; |
131 | 131 | } else { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | $lowerSearch = strtolower($search); |
219 | 219 | foreach ($cloudIds as $cloudId) { |
220 | 220 | if (strtolower($cloudId) === $lowerSearch) { |
221 | - $this->displayNames[$search] = $contact['FN'] . " ($cloudId)"; |
|
221 | + $this->displayNames[$search] = $contact['FN']." ($cloudId)"; |
|
222 | 222 | return $this->displayNames[$search]; |
223 | 223 | } |
224 | 224 | } |
@@ -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)) |
@@ -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'); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * |
235 | 235 | * Defaults to ``60*60*24*15`` seconds (15 days) |
236 | 236 | */ |
237 | -'remember_login_cookie_lifetime' => 60*60*24*15, |
|
237 | +'remember_login_cookie_lifetime' => 60 * 60 * 24 * 15, |
|
238 | 238 | |
239 | 239 | /** |
240 | 240 | * The lifetime of a session after inactivity. |
@@ -1184,7 +1184,7 @@ discard block |
||
1184 | 1184 | * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1 |
1185 | 1185 | */ |
1186 | 1186 | 'redis.cluster' => [ |
1187 | - 'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required |
|
1187 | + 'seeds' => [// provide some/all of the cluster servers to bootstrap discovery, port required |
|
1188 | 1188 | 'localhost:7000', |
1189 | 1189 | 'localhost:7001', |
1190 | 1190 | ], |
@@ -1249,7 +1249,7 @@ discard block |
||
1249 | 1249 | * |
1250 | 1250 | * Defaults to ``60*60*24`` (1 day) |
1251 | 1251 | */ |
1252 | -'cache_chunk_gc_ttl' => 60*60*24, |
|
1252 | +'cache_chunk_gc_ttl' => 60 * 60 * 24, |
|
1253 | 1253 | |
1254 | 1254 | /** |
1255 | 1255 | * Using Object Store with Nextcloud |
@@ -1682,7 +1682,7 @@ discard block |
||
1682 | 1682 | * Defaults to ``60*60`` seconds (1 hour) or the php |
1683 | 1683 | * max_execution_time, whichever is higher. |
1684 | 1684 | */ |
1685 | -'filelocking.ttl' => 60*60, |
|
1685 | +'filelocking.ttl' => 60 * 60, |
|
1686 | 1686 | |
1687 | 1687 | /** |
1688 | 1688 | * Memory caching backend for file locking |