From 6103caf5f7446337ee58862b0adc0e55fb0be236 Mon Sep 17 00:00:00 2001 From: Andreas Hennings Date: Thu, 7 Nov 2024 22:57:10 +0100 Subject: [PATCH] Issue #43: Add trailing comma. --- collabora_online.module | 2 +- src/Cool/CoolRequest.php | 2 +- src/Cool/CoolUtils.php | 2 +- src/Form/ConfigForm.php | 2 +- tests/src/Functional/AccessTest.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/collabora_online.module b/collabora_online.module index 84dc3512..c6e8d975 100644 --- a/collabora_online.module +++ b/collabora_online.module @@ -103,7 +103,7 @@ function collabora_online_entity_operation(EntityInterface $entity) { 'title' => t("View in Collabora Online"), 'weight' => 50, 'url' => CoolUtils::getEditorUrl($media, false), - ] + ], ]; if (CoolUtils::canEdit($file) && $media->access('edit in collabora')) { diff --git a/src/Cool/CoolRequest.php b/src/Cool/CoolRequest.php index e3d34799..c7a57d7a 100644 --- a/src/Cool/CoolRequest.php +++ b/src/Cool/CoolRequest.php @@ -101,7 +101,7 @@ class CoolRequest { 203 => 'Not able to retrieve the discovery.xml file from the Collabora Online server.', 102 => 'The retrieved discovery.xml file is not a valid XML file.', 103 => 'The requested mime type is not handled.', - 204 => 'Warning! You have to specify the scheme protocol too (http|https) for the server address.' + 204 => 'Warning! You have to specify the scheme protocol too (http|https) for the server address.', ]; /** diff --git a/src/Cool/CoolUtils.php b/src/Cool/CoolUtils.php index 56b6d5a1..923015e6 100644 --- a/src/Cool/CoolUtils.php +++ b/src/Cool/CoolUtils.php @@ -101,7 +101,7 @@ static function getKey() { public static function verifyTokenForId( #[\SensitiveParameter] string $token, - $id + $id, ) { $key = static::getKey(); try { diff --git a/src/Form/ConfigForm.php b/src/Form/ConfigForm.php index b9a8ed6c..5675ba7a 100644 --- a/src/Form/ConfigForm.php +++ b/src/Form/ConfigForm.php @@ -34,7 +34,7 @@ public function getFormId() { */ public function getEditableConfigNames() { return [ - static::SETTINGS + static::SETTINGS, ]; } diff --git a/tests/src/Functional/AccessTest.php b/tests/src/Functional/AccessTest.php index 65dd061b..31a99965 100644 --- a/tests/src/Functional/AccessTest.php +++ b/tests/src/Functional/AccessTest.php @@ -135,7 +135,7 @@ public function testCollaboraMediaPermissions(): void { 'diary keeper' => $this->createUser([ // There is no 'preview own *' permission in this module. 'preview diary in collabora', - 'edit own diary in collabora' + 'edit own diary in collabora', ]), ];