@@ -53,7 +53,7 @@ |
||
53 | 53 | return; |
54 | 54 | } |
55 | 55 | |
56 | - $this->logger->warning('Invalid data provided to provideInitialState by ' . $appName); |
|
56 | + $this->logger->warning('Invalid data provided to provideInitialState by '.$appName); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | public function provideLazyInitialState(string $appName, string $key, Closure $closure): void { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | |
53 | 53 | public function setName($name) { |
54 | - throw new Forbidden('Renaming ' . self::FILENAME . ' is forbidden'); |
|
54 | + throw new Forbidden('Renaming '.self::FILENAME.' is forbidden'); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @throws Forbidden |
66 | 66 | */ |
67 | 67 | public function delete() { |
68 | - throw new Forbidden(self::FILENAME . ' may not be deleted.'); |
|
68 | + throw new Forbidden(self::FILENAME.' may not be deleted.'); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -86,6 +86,6 @@ discard block |
||
86 | 86 | * @throws Forbidden |
87 | 87 | */ |
88 | 88 | public function propPatch(PropPatch $propPatch) { |
89 | - throw new Forbidden(self::FILENAME . '\'s properties may not be altered.'); |
|
89 | + throw new Forbidden(self::FILENAME.'\'s properties may not be altered.'); |
|
90 | 90 | } |
91 | 91 | } |
@@ -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 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | IClientService $httpClientService, |
75 | 75 | ICloudIdManager $cloudIdManager, |
76 | 76 | ILogger $logger) { |
77 | - $this->cloudFederationProvider= []; |
|
77 | + $this->cloudFederationProvider = []; |
|
78 | 78 | $this->appManager = $appManager; |
79 | 79 | $this->httpClientService = $httpClientService; |
80 | 80 | $this->cloudIdManager = $cloudIdManager; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | $client = $this->httpClientService->newClient(); |
142 | 142 | try { |
143 | - $response = $client->post($ocmEndPoint . '/shares', [ |
|
143 | + $response = $client->post($ocmEndPoint.'/shares', [ |
|
144 | 144 | 'body' => json_encode($share->getShare()), |
145 | 145 | 'headers' => ['content-type' => 'application/json'], |
146 | 146 | 'timeout' => 10, |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | |
181 | 181 | $client = $this->httpClientService->newClient(); |
182 | 182 | try { |
183 | - $response = $client->post($ocmEndPoint . '/notifications', [ |
|
183 | + $response = $client->post($ocmEndPoint.'/notifications', [ |
|
184 | 184 | 'body' => json_encode($notification->getMessage()), |
185 | 185 | 'headers' => ['content-type' => 'application/json'], |
186 | 186 | 'timeout' => 10, |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | } |
193 | 193 | } catch (\Exception $e) { |
194 | 194 | // log the error and return false |
195 | - $this->logger->error('error while sending notification for federated share: ' . $e->getMessage()); |
|
195 | + $this->logger->error('error while sending notification for federated share: '.$e->getMessage()); |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | return false; |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | |
221 | 221 | $client = $this->httpClientService->newClient(); |
222 | 222 | try { |
223 | - $response = $client->get($url . '/ocm-provider/', ['timeout' => 10, 'connect_timeout' => 10]); |
|
223 | + $response = $client->get($url.'/ocm-provider/', ['timeout' => 10, 'connect_timeout' => 10]); |
|
224 | 224 | } catch (\Exception $e) { |
225 | 225 | $this->ocmEndPoints[$url] = ''; |
226 | 226 | return ''; |
@@ -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 |