Skip to content

Commit 015f5ab

Browse files
committed
fix: fixed stylistic errors
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
1 parent d32f708 commit 015f5ab

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/files_versions/lib/Db/VersionEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getMetadataValue(string $key): ?string {
9393
* @param string $key key associated with the value
9494
* @param string $value value associated with the key
9595
*/
96-
public function setMetadataValue(string $key, $value): void {
96+
public function setMetadataValue(string $key, string $value): void {
9797
$this->metadata[$key] = $value;
9898
$this->markFieldUpdated('metadata');
9999
}

apps/files_versions/lib/Listener/MetadataFileEvents.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* @author Eduardo Morales emoral435@gmail.com>
77
*
8-
* @license AGPL-3.0
8+
* @license GNU AGPL-3.0-or-later
99
*
1010
* This code is free software: you can redistribute it and/or modify
1111
* it under the terms of the GNU Affero General Public License, version 3,
@@ -62,7 +62,7 @@ public function post_write_hook(Node $node): void {
6262
// check if our version manager supports setting the metadata
6363
if ($this->versionManager instanceof IMetadataVersionBackend) {
6464
$author = $user->getUID();
65-
$this->versionManager->setMetadataValue($node, "author", $author);
65+
$this->versionManager->setMetadataValue($node, 'author', $author);
6666
}
6767
}
6868
}

apps/files_versions/lib/Versions/IMetadataVersion.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* @copyright Copyright (c) 2024 Eduardo Morales <emoral435@gmail.com>
77
*
8-
* @license GNU AGPL version 3 or any later version
8+
* @license GNU AGPL-3.0-or-later
99
*
1010
* This program is free software: you can redistribute it and/or modify
1111
* it under the terms of the GNU Affero General Public License as
@@ -29,7 +29,7 @@
2929
*/
3030
interface IMetadataVersion {
3131
/**
32-
* @abstract retrieves the metadata value from our $key param
32+
* retrieves the metadata value from our $key param
3333
*
3434
* @param string $key the key for the json value of the metadata column
3535
* @since 29.0.0

apps/files_versions/lib/Versions/IMetadataVersionBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* @copyright Copyright (c) 2024 Eduardo Morales <emoral435@gmail.com>
77
*
8-
* @license GNU AGPL version 3 or any later version
8+
* @license GNU AGPL-3.0-or-later
99
*
1010
* This program is free software: you can redistribute it and/or modify
1111
* it under the terms of the GNU Affero General Public License as

0 commit comments

Comments
 (0)