@@ -39,7 +39,7 @@ |
||
| 39 | 39 | ], |
| 40 | 40 | [ |
| 41 | 41 | '<a target="_blank" href="../apps/office/calendar">', |
| 42 | - '<a target="_blank" href="' . link_to_docs('user-sync-calendars') . '" rel="noreferrer noopener">', |
|
| 42 | + '<a target="_blank" href="'.link_to_docs('user-sync-calendars').'" rel="noreferrer noopener">', |
|
| 43 | 43 | '</a>', |
| 44 | 44 | ], |
| 45 | 45 | $l->t('Also install the {calendarappstoreopen}Calendar app{linkclose}, or {calendardocopen}connect your desktop & mobile for syncing ↗{linkclose}.') |
@@ -90,8 +90,8 @@ discard block |
||
| 90 | 90 | * @return string short footer |
| 91 | 91 | */ |
| 92 | 92 | public function getShortFooter() { |
| 93 | - $footer = '© ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' . |
|
| 94 | - '<br/>' . $this->getSlogan(); |
|
| 93 | + $footer = '© '.date('Y').' <a href="'.$this->getBaseUrl().'" target="_blank">'.$this->getEntity().'</a>'. |
|
| 94 | + '<br/>'.$this->getSlogan(); |
|
| 95 | 95 | |
| 96 | 96 | return $footer; |
| 97 | 97 | } |
@@ -101,8 +101,8 @@ discard block |
||
| 101 | 101 | * @return string long footer |
| 102 | 102 | */ |
| 103 | 103 | public function getLongFooter() { |
| 104 | - $footer = '© ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' . |
|
| 105 | - '<br/>' . $this->getSlogan(); |
|
| 104 | + $footer = '© '.date('Y').' <a href="'.$this->getBaseUrl().'" target="_blank">'.$this->getEntity().'</a>'. |
|
| 105 | + '<br/>'.$this->getSlogan(); |
|
| 106 | 106 | |
| 107 | 107 | return $footer; |
| 108 | 108 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * @return string documentation link |
| 113 | 113 | */ |
| 114 | 114 | public function buildDocLinkToKey($key) { |
| 115 | - return $this->getDocBaseUrl() . '/server/15/go.php?to=' . $key; |
|
| 115 | + return $this->getDocBaseUrl().'/server/15/go.php?to='.$key; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | return; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - $folders = array_filter($folders, function (ISimpleFolder $folder) { |
|
| 70 | + $folders = array_filter($folders, function(ISimpleFolder $folder) { |
|
| 71 | 71 | return $folder->fileExists('photo.'); |
| 72 | 72 | }); |
| 73 | 73 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | return; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - $output->info('Delete ' . count($folders) . ' "photo." files'); |
|
| 78 | + $output->info('Delete '.count($folders).' "photo." files'); |
|
| 79 | 79 | |
| 80 | 80 | foreach ($folders as $folder) { |
| 81 | 81 | try { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $folder->getFile('photo.')->delete(); |
| 84 | 84 | } catch (\Exception $e) { |
| 85 | 85 | $this->logger->logException($e); |
| 86 | - $output->warning('Could not delete file "dav-photocache/' . $folder->getName() . '/photo."'); |
|
| 86 | + $output->warning('Could not delete file "dav-photocache/'.$folder->getName().'/photo."'); |
|
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 | } |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | private function hashToken(string $token): string { |
| 213 | 213 | $secret = $this->config->getSystemValue('secret'); |
| 214 | - return hash('sha512', $token . $secret); |
|
| 214 | + return hash('sha512', $token.$secret); |
|
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | private function getKeyPair(): array { |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | while ($error = openssl_error_string()) { |
| 242 | 242 | $errors[] = $error; |
| 243 | 243 | } |
| 244 | - $this->logger->critical('Something is wrong with your openssl setup: ' . implode(', ', $errors)); |
|
| 244 | + $this->logger->critical('Something is wrong with your openssl setup: '.implode(', ', $errors)); |
|
| 245 | 245 | } |
| 246 | 246 | |
| 247 | 247 | private function encryptPassword(string $password, string $publicKey): string { |
@@ -389,7 +389,7 @@ |
||
| 389 | 389 | foreach ($ak as $source) { |
| 390 | 390 | $tags = $this->subTags[$source]; |
| 391 | 391 | foreach ($tags as $tag) { |
| 392 | - $subTags[] = $source . '_' . $tag; |
|
| 392 | + $subTags[] = $source.'_'.$tag; |
|
| 393 | 393 | } |
| 394 | 394 | } |
| 395 | 395 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $providers = $this->registry->getProviderStates($event->getUser()); |
| 54 | 54 | |
| 55 | 55 | // Loop over all providers. If all are disabled we remove the job |
| 56 | - $state = array_reduce($providers, function (bool $carry, bool $enabled) { |
|
| 56 | + $state = array_reduce($providers, function(bool $carry, bool $enabled) { |
|
| 57 | 57 | return $carry || $enabled; |
| 58 | 58 | }, false); |
| 59 | 59 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | ->setFirstResult($start); |
| 145 | 145 | |
| 146 | 146 | if ($filter !== '') { |
| 147 | - $query->where($query->expr()->iLike('c.name', $query->createNamedParameter('%' . $this->connection->escapeLikeParameter($filter) . '%'))); |
|
| 147 | + $query->where($query->expr()->iLike('c.name', $query->createNamedParameter('%'.$this->connection->escapeLikeParameter($filter).'%'))); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | $result = $query->execute(); |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | while ($row = $result->fetch()) { |
| 155 | 155 | $foundResults++; |
| 156 | 156 | $access = $row['access'] === null ? null : (bool) $row['access']; |
| 157 | - $collection = new Collection($this, $this->connection, (int)$row['id'], (string)$row['name'], $user, $access); |
|
| 157 | + $collection = new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, $access); |
|
| 158 | 158 | if ($collection->canAccess($user)) { |
| 159 | 159 | $collections[] = $collection; |
| 160 | 160 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | <div id="fileSharingSettings" class="section"> |
| 9 | 9 | <h2 data-anchor-name="federated-cloud"><?php p($l->t('Federated Cloud')); ?></h2> |
| 10 | 10 | <a target="_blank" rel="noreferrer noopener" class="icon-info svg" |
| 11 | - title="<?php p($l->t('Open documentation'));?>" |
|
| 11 | + title="<?php p($l->t('Open documentation')); ?>" |
|
| 12 | 12 | href="<?php p(link_to_docs('user-sharing-federated')); ?>"></a> |
| 13 | 13 | <p class="settings-hint"><?php p($l->t('You can share with anyone who uses a Nextcloud server or other Open Cloud Mesh (OCM) compatible servers and services! Just put their Federated Cloud ID in the share dialog. It looks like [email protected]')); ?></p> |
| 14 | 14 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | public function getForm() { |
| 62 | 62 | $cloudID = $this->userSession->getUser()->getCloudId(); |
| 63 | - $url = 'https://nextcloud.com/sharing#' . $cloudID; |
|
| 63 | + $url = 'https://nextcloud.com/sharing#'.$cloudID; |
|
| 64 | 64 | |
| 65 | 65 | $parameters = [ |
| 66 | 66 | 'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]), |