@@ -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 |
@@ -39,9 +39,9 @@ |
||
39 | 39 | public function castColumn($column, $type) { |
40 | 40 | switch ($type) { |
41 | 41 | case IQueryBuilder::PARAM_INT: |
42 | - return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS INT)'); |
|
42 | + return new QueryFunction('CAST('.$this->helper->quoteColumnName($column).' AS INT)'); |
|
43 | 43 | case IQueryBuilder::PARAM_STR: |
44 | - return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS TEXT)'); |
|
44 | + return new QueryFunction('CAST('.$this->helper->quoteColumnName($column).' AS TEXT)'); |
|
45 | 45 | default: |
46 | 46 | return parent::castColumn($column, $type); |
47 | 47 | } |
@@ -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 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | public function process(LoginData $loginData): LoginResult { |
47 | 47 | $tokenType = IToken::REMEMBER; |
48 | - if ((int)$this->config->getSystemValue('remember_login_cookie_lifetime', 60 * 60 * 24 * 15) === 0) { |
|
48 | + if ((int) $this->config->getSystemValue('remember_login_cookie_lifetime', 60 * 60 * 24 * 15) === 0) { |
|
49 | 49 | $loginData->setRememberLogin(false); |
50 | 50 | $tokenType = IToken::DO_NOT_REMEMBER; |
51 | 51 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | private function filterTrace(array $trace) { |
101 | 101 | $sensitiveValues = []; |
102 | - $trace = array_map(function (array $traceLine) use (&$sensitiveValues) { |
|
102 | + $trace = array_map(function(array $traceLine) use (&$sensitiveValues) { |
|
103 | 103 | $className = $traceLine['class'] ?? ''; |
104 | 104 | if ($className && isset(self::methodsWithSensitiveParametersByClass[$className]) |
105 | 105 | && in_array($traceLine['function'], self::methodsWithSensitiveParametersByClass[$className], true)) { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | } |
113 | 113 | return $traceLine; |
114 | 114 | }, $trace); |
115 | - return array_map(function (array $traceLine) use ($sensitiveValues) { |
|
115 | + return array_map(function(array $traceLine) use ($sensitiveValues) { |
|
116 | 116 | if (isset($traceLine['args'])) { |
117 | 117 | $traceLine['args'] = $this->removeValuesFromArgs($traceLine['args'], $sensitiveValues); |
118 | 118 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | private function encodeTrace($trace) { |
135 | 135 | $filteredTrace = $this->filterTrace($trace); |
136 | - return array_map(function (array $line) { |
|
136 | + return array_map(function(array $line) { |
|
137 | 137 | if (isset($line['args'])) { |
138 | 138 | $line['args'] = array_map([$this, 'encodeArg'], $line['args']); |
139 | 139 | } |
@@ -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]), |
@@ -29,11 +29,11 @@ |
||
29 | 29 | * |
30 | 30 | */ |
31 | 31 | |
32 | -require_once __DIR__ . '/lib/versioncheck.php'; |
|
32 | +require_once __DIR__.'/lib/versioncheck.php'; |
|
33 | 33 | |
34 | 34 | try { |
35 | 35 | |
36 | - require_once __DIR__ . '/lib/base.php'; |
|
36 | + require_once __DIR__.'/lib/base.php'; |
|
37 | 37 | |
38 | 38 | $systemConfig = \OC::$server->getSystemConfig(); |
39 | 39 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * @return string Regex with the mimetypes that are supported by this provider |
45 | 45 | */ |
46 | - abstract public function getMimeType(): string ; |
|
46 | + abstract public function getMimeType(): string; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Check if a preview can be generated for $path |