Skip to content

Commit

Permalink
Issue CollaboraOnline#43: Add trailing comma.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Nov 8, 2024
1 parent 05bb1b2 commit e20aa29
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion collabora_online.module
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
2 changes: 1 addition & 1 deletion src/Cool/CoolRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
];

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Cool/CoolUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static function getKey() {
public static function verifyTokenForId(
#[\SensitiveParameter]
string $token,
$id
$id,
) {
$key = static::getKey();
try {
Expand Down
2 changes: 1 addition & 1 deletion src/Form/ConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getFormId() {
*/
public function getEditableConfigNames() {
return [
static::SETTINGS
static::SETTINGS,
];
}

Expand Down
2 changes: 1 addition & 1 deletion tests/src/Functional/AccessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]),
];

Expand Down

0 comments on commit e20aa29

Please sign in to comment.