aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2024-09-05 21:23:38 +0200
committerAnna Larch <anna@nextcloud.com>2024-09-05 21:23:38 +0200
commit8af7ecb2576071f170ecbb0aa2311b26581e40e2 (patch)
tree9a8f3595cb28493368f78b0a049254d0a256b3c1 /core
parent4566cf791d55f1202f4a1888b9cd23a7be0ed2c9 (diff)
downloadnextcloud-server-8af7ecb2576071f170ecbb0aa2311b26581e40e2.tar.gz
nextcloud-server-8af7ecb2576071f170ecbb0aa2311b26581e40e2.zip
chore: adjust code to adhere to coding standard
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r--core/Command/Db/Migrations/PreviewCommand.php4
-rw-r--r--core/Controller/TextProcessingApiController.php2
-rw-r--r--core/Controller/TextToImageApiController.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/core/Command/Db/Migrations/PreviewCommand.php b/core/Command/Db/Migrations/PreviewCommand.php
index b15f89765b9..f5b850fff76 100644
--- a/core/Command/Db/Migrations/PreviewCommand.php
+++ b/core/Command/Db/Migrations/PreviewCommand.php
@@ -94,12 +94,12 @@ class PreviewCommand extends Command {
)->addRow(new TableSeparator());
/** @var MigrationAttribute[] $attributes */
- foreach($data as $migration => $attributes) {
+ foreach ($data as $migration => $attributes) {
$attributesStr = [];
if (empty($attributes)) {
$attributesStr[] = '<comment>(metadata not set)</comment>';
}
- foreach($attributes as $attribute) {
+ foreach ($attributes as $attribute) {
$definition = '<info>' . $attribute->definition() . '</info>';
$definition .= empty($attribute->getDescription()) ? '' : "\n " . $attribute->getDescription();
$definition .= empty($attribute->getNotes()) ? '' : "\n <comment>" . implode("</comment>\n <comment>", $attribute->getNotes()) . '</comment>';
diff --git a/core/Controller/TextProcessingApiController.php b/core/Controller/TextProcessingApiController.php
index 82cd088d29d..e62389dee11 100644
--- a/core/Controller/TextProcessingApiController.php
+++ b/core/Controller/TextProcessingApiController.php
@@ -109,7 +109,7 @@ class TextProcessingApiController extends \OCP\AppFramework\OCSController {
try {
try {
$this->textProcessingManager->runOrScheduleTask($task);
- } catch(TaskFailureException) {
+ } catch (TaskFailureException) {
// noop, because the task object has the failure status set already, we just return the task json
}
diff --git a/core/Controller/TextToImageApiController.php b/core/Controller/TextToImageApiController.php
index c8528c19cc2..241c752ea01 100644
--- a/core/Controller/TextToImageApiController.php
+++ b/core/Controller/TextToImageApiController.php
@@ -150,7 +150,7 @@ class TextToImageApiController extends \OCP\AppFramework\OCSController {
$task = $this->textToImageManager->getUserTask($id, $this->userId);
try {
$folder = $this->appData->getFolder('text2image');
- } catch(NotFoundException) {
+ } catch (NotFoundException) {
$res = new DataResponse(['message' => $this->l->t('Image not found')], Http::STATUS_NOT_FOUND);
$res->throttle(['action' => 'text2image']);
return $res;