@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | ]); |
| 89 | 89 | } catch (Exception $e) { |
| 90 | 90 | $this->logger->logException($e, ['message' => 'Exception when creating a new file through direct editing']); |
| 91 | - return new DataResponse(['message' => 'Failed to create file: ' . $e->getMessage()], Http::STATUS_FORBIDDEN); |
|
| 91 | + return new DataResponse(['message' => 'Failed to create file: '.$e->getMessage()], Http::STATUS_FORBIDDEN); |
|
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | ]); |
| 109 | 109 | } catch (Exception $e) { |
| 110 | 110 | $this->logger->logException($e, ['message' => 'Exception when opening a file through direct editing']); |
| 111 | - return new DataResponse(['message' => 'Failed to open file: ' . $e->getMessage()], Http::STATUS_FORBIDDEN); |
|
| 111 | + return new DataResponse(['message' => 'Failed to open file: '.$e->getMessage()], Http::STATUS_FORBIDDEN); |
|
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | return new DataResponse($this->directEditingManager->getTemplates($editorId, $creatorId)); |
| 128 | 128 | } catch (Exception $e) { |
| 129 | 129 | $this->logger->logException($e); |
| 130 | - return new DataResponse(['message' => 'Failed to obtain template list: ' . $e->getMessage()], Http::STATUS_INTERNAL_SERVER_ERROR); |
|
| 130 | + return new DataResponse(['message' => 'Failed to obtain template list: '.$e->getMessage()], Http::STATUS_INTERNAL_SERVER_ERROR); |
|
| 131 | 131 | } |
| 132 | 132 | } |
| 133 | 133 | } |
@@ -245,10 +245,10 @@ discard block |
||
| 245 | 245 | $dependencyAnalyzer = new DependencyAnalyzer(new Platform($this->config), $this->l10n); |
| 246 | 246 | |
| 247 | 247 | // Extend existing app details |
| 248 | - $apps = array_map(function ($appData) use ($dependencyAnalyzer) { |
|
| 248 | + $apps = array_map(function($appData) use ($dependencyAnalyzer) { |
|
| 249 | 249 | if (isset($appData['appstoreData'])) { |
| 250 | 250 | $appstoreData = $appData['appstoreData']; |
| 251 | - $appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/' . base64_encode($appstoreData['screenshots'][0]['url']) : ''; |
|
| 251 | + $appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/'.base64_encode($appstoreData['screenshots'][0]['url']) : ''; |
|
| 252 | 252 | $appData['category'] = $appstoreData['categories']; |
| 253 | 253 | $appData['releases'] = $appstoreData['releases']; |
| 254 | 254 | } |
@@ -543,8 +543,8 @@ discard block |
||
| 543 | 543 | } |
| 544 | 544 | |
| 545 | 545 | private function sortApps($a, $b) { |
| 546 | - $a = (string)$a['name']; |
|
| 547 | - $b = (string)$b['name']; |
|
| 546 | + $a = (string) $a['name']; |
|
| 547 | + $b = (string) $b['name']; |
|
| 548 | 548 | if ($a === $b) { |
| 549 | 549 | return 0; |
| 550 | 550 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | return true; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - $size = isset($queryParams['size']) ? (int)$queryParams['size'] : -1; |
|
| 75 | + $size = isset($queryParams['size']) ? (int) $queryParams['size'] : -1; |
|
| 76 | 76 | |
| 77 | 77 | $path = $request->getPath(); |
| 78 | 78 | $node = $this->server->tree->getNodeForPath($path); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | try { |
| 104 | 104 | $file = $this->cache->get($addressbook->getResourceId(), $node->getName(), $size, $node); |
| 105 | 105 | $response->setHeader('Content-Type', $file->getMimeType()); |
| 106 | - $fileName = $node->getName() . '.' . PhotoCache::ALLOWED_CONTENT_TYPES[$file->getMimeType()]; |
|
| 106 | + $fileName = $node->getName().'.'.PhotoCache::ALLOWED_CONTENT_TYPES[$file->getMimeType()]; |
|
| 107 | 107 | $response->setHeader('Content-Disposition', "attachment; filename=$fileName"); |
| 108 | 108 | $response->setStatus(200); |
| 109 | 109 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | * @NoSubAdminRequired |
| 37 | 37 | */ |
| 38 | 38 | public function getPdf() { |
| 39 | - $data = file_get_contents(__DIR__ . '/../../data/Reasons to use Nextcloud.pdf'); |
|
| 39 | + $data = file_get_contents(__DIR__.'/../../data/Reasons to use Nextcloud.pdf'); |
|
| 40 | 40 | |
| 41 | 41 | $resp = new DataDisplayResponse($data); |
| 42 | 42 | $resp->addHeader('Content-Type', 'application/pdf'); |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $this->status = IUserStatus::OFFLINE; |
| 61 | 61 | } |
| 62 | 62 | if ($status->getClearAt() !== null) { |
| 63 | - $this->clearAt = DateTimeImmutable::createFromFormat('U', (string)$status->getClearAt()); |
|
| 63 | + $this->clearAt = DateTimeImmutable::createFromFormat('U', (string) $status->getClearAt()); |
|
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | public function search(IUser $user, ISearchQuery $query): SearchResult { |
| 95 | 95 | return SearchResult::complete( |
| 96 | 96 | $this->l10n->t('Comments'), |
| 97 | - array_map(function (Result $result) { |
|
| 97 | + array_map(function(Result $result) { |
|
| 98 | 98 | $path = $result->path; |
| 99 | 99 | $pathInfo = pathinfo($path); |
| 100 | 100 | $isUser = $this->userManager->userExists($result->authorId); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $avatarUrl, |
| 106 | 106 | $result->name, |
| 107 | 107 | $path, |
| 108 | - $this->urlGenerator->linkToRouteAbsolute('files.view.index',[ |
|
| 108 | + $this->urlGenerator->linkToRouteAbsolute('files.view.index', [ |
|
| 109 | 109 | 'dir' => $pathInfo['dirname'], |
| 110 | 110 | 'scrollto' => $pathInfo['basename'], |
| 111 | 111 | ]), |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $architecture = php_uname('m'); |
| 44 | 44 | if (PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) { |
| 45 | 45 | $hubApps[] = 'richdocuments'; |
| 46 | - $hubApps[] = 'richdocumentscode' . ($architecture === 'aarch64' ? '_arm64' : ''); |
|
| 46 | + $hubApps[] = 'richdocumentscode'.($architecture === 'aarch64' ? '_arm64' : ''); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | return $hubApps; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <div class="section development-notice"> |
| 2 | 2 | <p> |
| 3 | - <a href="<?php p($_['reasons-use-nextcloud-pdf-link']); ?>" id="open-reasons-use-nextcloud-pdf" class="link-button icon-file" target="_blank"><?php p($l->t('Reasons to use Nextcloud in your organization'));?></a> |
|
| 3 | + <a href="<?php p($_['reasons-use-nextcloud-pdf-link']); ?>" id="open-reasons-use-nextcloud-pdf" class="link-button icon-file" target="_blank"><?php p($l->t('Reasons to use Nextcloud in your organization')); ?></a> |
|
| 4 | 4 | </p> |
| 5 | 5 | <p> |
| 6 | 6 | <?php print_unescaped(str_replace( |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * we can not inject it. Thus the static call. |
| 74 | 74 | */ |
| 75 | 75 | \OC::$server->getLogger()->logException($e, [ |
| 76 | - 'message' => 'Could not load lazy dashbaord widget: ' . $e->getMessage(), |
|
| 76 | + 'message' => 'Could not load lazy dashbaord widget: '.$e->getMessage(), |
|
| 77 | 77 | 'level' => ILogger::FATAL, |
| 78 | 78 | ]); |
| 79 | 79 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * we can not inject it. Thus the static call. |
| 90 | 90 | */ |
| 91 | 91 | \OC::$server->getLogger()->logException($e, [ |
| 92 | - 'message' => 'Could not register lazy dashboard widget: ' . $e->getMessage(), |
|
| 92 | + 'message' => 'Could not register lazy dashboard widget: '.$e->getMessage(), |
|
| 93 | 93 | 'level' => ILogger::FATAL, |
| 94 | 94 | ]); |
| 95 | 95 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | } catch (Throwable $e) { |
| 109 | 109 | \OC::$server->getLogger()->logException($e, [ |
| 110 | - 'message' => 'Error during dashboard widget loading: ' . $e->getMessage(), |
|
| 110 | + 'message' => 'Error during dashboard widget loading: '.$e->getMessage(), |
|
| 111 | 111 | 'level' => ILogger::FATAL, |
| 112 | 112 | ]); |
| 113 | 113 | } |