@@ -38,7 +38,7 @@ |
||
38 | 38 | * Check if is fair use of free push service |
39 | 39 | */ |
40 | 40 | private function isFairUseOfFreePushService(): bool { |
41 | - $rateLimitReached = (int)$this->config->getAppValue('notifications', 'rate_limit_reached', '0'); |
|
41 | + $rateLimitReached = (int) $this->config->getAppValue('notifications', 'rate_limit_reached', '0'); |
|
42 | 42 | if ($rateLimitReached >= ($this->timeFactory->now()->getTimestamp() - 7 * 24 * 3600)) { |
43 | 43 | // Notifications app is showing a message already |
44 | 44 | return true; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | public function run(): SetupResult { |
35 | 35 | $currentOverwriteCliUrl = $this->config->getSystemValue('overwrite.cli.url', ''); |
36 | - $suggestedOverwriteCliUrl = $this->request->getServerProtocol() . '://' . $this->request->getInsecureServerHost() . \OC::$WEBROOT; |
|
36 | + $suggestedOverwriteCliUrl = $this->request->getServerProtocol().'://'.$this->request->getInsecureServerHost().\OC::$WEBROOT; |
|
37 | 37 | |
38 | 38 | // Check correctness by checking if it is a valid URL |
39 | 39 | if (filter_var($currentOverwriteCliUrl, FILTER_VALIDATE_URL)) { |
@@ -33,10 +33,10 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | public function run(): SetupResult { |
36 | - $upload_max_filesize = (string)$this->iniGetWrapper->getString('upload_max_filesize'); |
|
37 | - $post_max_size = (string)$this->iniGetWrapper->getString('post_max_size'); |
|
38 | - $max_input_time = (int)$this->iniGetWrapper->getString('max_input_time'); |
|
39 | - $max_execution_time = (int)$this->iniGetWrapper->getString('max_execution_time'); |
|
36 | + $upload_max_filesize = (string) $this->iniGetWrapper->getString('upload_max_filesize'); |
|
37 | + $post_max_size = (string) $this->iniGetWrapper->getString('post_max_size'); |
|
38 | + $max_input_time = (int) $this->iniGetWrapper->getString('max_input_time'); |
|
39 | + $max_execution_time = (int) $this->iniGetWrapper->getString('max_execution_time'); |
|
40 | 40 | |
41 | 41 | $warnings = []; |
42 | 42 | $recommendedSize = 16 * 1024 * 1024 * 1024; |
@@ -63,7 +63,7 @@ |
||
63 | 63 | str_replace( |
64 | 64 | '{extension}', |
65 | 65 | $fileExtension, |
66 | - $this->l10n->t('Could not check for {extension} loading support. Please check manually if your webserver serves `.{extension}` files.') . "\n" . $this->serverConfigHelp(), |
|
66 | + $this->l10n->t('Could not check for {extension} loading support. Please check manually if your webserver serves `.{extension}` files.')."\n".$this->serverConfigHelp(), |
|
67 | 67 | ), |
68 | 68 | $this->urlGenerator->linkToDocs('admin-nginx'), |
69 | 69 | ); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | if ($noResponse) { |
55 | - return SetupResult::warning($this->l10n->t('Unable to run check for JavaScript support. Please remedy or confirm manually if your webserver serves `.mjs` files using the JavaScript MIME type.') . "\n" . $this->serverConfigHelp()); |
|
55 | + return SetupResult::warning($this->l10n->t('Unable to run check for JavaScript support. Please remedy or confirm manually if your webserver serves `.mjs` files using the JavaScript MIME type.')."\n".$this->serverConfigHelp()); |
|
56 | 56 | } |
57 | 57 | return SetupResult::error($this->l10n->t('Your webserver does not serve `.mjs` files using the JavaScript MIME type. This will break some apps by preventing browsers from executing the JavaScript files. You should configure your webserver to serve `.mjs` files with either the `text/javascript` or `application/javascript` MIME type.')); |
58 | 58 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | ); |
41 | 41 | } |
42 | 42 | |
43 | - $startValue = (int)$configValue; |
|
43 | + $startValue = (int) $configValue; |
|
44 | 44 | $endValue = ($startValue + 6) % 24; |
45 | 45 | return SetupResult::success( |
46 | 46 | str_replace( |
@@ -61,15 +61,15 @@ |
||
61 | 61 | private function isSiteReachable(string $site): bool { |
62 | 62 | // if there is no protocol specified, test http:// first then, if necessary, https:// |
63 | 63 | if (preg_match('/^https?:\/\//', $site) !== 1) { |
64 | - $httpSite = 'http://' . $site . '/'; |
|
65 | - $httpsSite = 'https://' . $site . '/'; |
|
64 | + $httpSite = 'http://'.$site.'/'; |
|
65 | + $httpsSite = 'https://'.$site.'/'; |
|
66 | 66 | return $this->isSiteReachable($httpSite) || $this->isSiteReachable($httpsSite); |
67 | 67 | } |
68 | 68 | try { |
69 | 69 | $client = $this->clientService->newClient(); |
70 | 70 | $client->get($site); |
71 | 71 | } catch (\Exception $e) { |
72 | - $this->logger->error('Cannot connect to: ' . $site, [ |
|
72 | + $this->logger->error('Cannot connect to: '.$site, [ |
|
73 | 73 | 'app' => 'internet_connection_check', |
74 | 74 | 'exception' => $e, |
75 | 75 | ]); |
@@ -62,10 +62,10 @@ |
||
62 | 62 | } else { |
63 | 63 | $list = ''; |
64 | 64 | foreach ($missingPrimaryKeys as $missingPrimaryKey) { |
65 | - $list .= "\n" . $this->l10n->t('Missing primary key on table "%s".', [$missingPrimaryKey['tableName']]); |
|
65 | + $list .= "\n".$this->l10n->t('Missing primary key on table "%s".', [$missingPrimaryKey['tableName']]); |
|
66 | 66 | } |
67 | 67 | return SetupResult::warning( |
68 | - $this->l10n->t('The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running "occ db:add-missing-primary-keys" those missing primary keys could be added manually while the instance keeps running.') . $list |
|
68 | + $this->l10n->t('The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running "occ db:add-missing-primary-keys" those missing primary keys could be added manually while the instance keeps running.').$list |
|
69 | 69 | ); |
70 | 70 | } |
71 | 71 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @return TemplateResponse |
38 | 38 | */ |
39 | 39 | public function getForm() { |
40 | - $ownerConfigFile = fileowner(\OC::$configDir . 'config.php'); |
|
40 | + $ownerConfigFile = fileowner(\OC::$configDir.'config.php'); |
|
41 | 41 | $cliBasedCronPossible = function_exists('posix_getpwuid') && $ownerConfigFile !== false; |
42 | 42 | $cliBasedCronUser = $cliBasedCronPossible ? (posix_getpwuid($ownerConfigFile)['name'] ?? '') : ''; |
43 | 43 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | $result = $query->execute(); |
73 | 73 | if ($row = $result->fetch()) { |
74 | - $maxAge = (int)$row['last_checked']; |
|
74 | + $maxAge = (int) $row['last_checked']; |
|
75 | 75 | } else { |
76 | 76 | $maxAge = $this->timeFactory->getTime(); |
77 | 77 | } |