diff options
author | Eduardo Morales <emoral435@gmail.com> | 2024-03-11 10:33:08 -0500 |
---|---|---|
committer | Eduardo Morales <emoral435@gmail.com> | 2024-03-11 15:57:12 -0500 |
commit | c5d1fda4ab1b8cd4058348b4d81a6d1cbeb0cf0f (patch) | |
tree | ab343af8085c9b34322d16c490655d974bf028ed /apps | |
parent | a8844d408b2b48ecfac40d33d1582e24bf5b48a4 (diff) | |
download | nextcloud-server-c5d1fda4ab1b8cd4058348b4d81a6d1cbeb0cf0f.tar.gz nextcloud-server-c5d1fda4ab1b8cd4058348b4d81a6d1cbeb0cf0f.zip |
fix: fixed stylistic errors
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
Diffstat (limited to 'apps')
4 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_versions/lib/Db/VersionEntity.php b/apps/files_versions/lib/Db/VersionEntity.php index 4be57f8b097..6d1df79c122 100644 --- a/apps/files_versions/lib/Db/VersionEntity.php +++ b/apps/files_versions/lib/Db/VersionEntity.php @@ -93,7 +93,7 @@ class VersionEntity extends Entity implements JsonSerializable { * @param string $key key associated with the value * @param string $value value associated with the key */ - public function setMetadataValue(string $key, $value): void { + public function setMetadataValue(string $key, string $value): void { $this->metadata[$key] = $value; $this->markFieldUpdated('metadata'); } diff --git a/apps/files_versions/lib/Listener/MetadataFileEvents.php b/apps/files_versions/lib/Listener/MetadataFileEvents.php index f23b23cdb40..652c9f9a1ce 100644 --- a/apps/files_versions/lib/Listener/MetadataFileEvents.php +++ b/apps/files_versions/lib/Listener/MetadataFileEvents.php @@ -5,7 +5,7 @@ declare(strict_types=1); /** * @author Eduardo Morales emoral435@gmail.com> * - * @license AGPL-3.0 + * @license GNU AGPL-3.0-or-later * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, @@ -62,7 +62,7 @@ class MetadataFileEvents implements IEventListener { // check if our version manager supports setting the metadata if ($this->versionManager instanceof IMetadataVersionBackend) { $author = $user->getUID(); - $this->versionManager->setMetadataValue($node, "author", $author); + $this->versionManager->setMetadataValue($node, 'author', $author); } } } diff --git a/apps/files_versions/lib/Versions/IMetadataVersion.php b/apps/files_versions/lib/Versions/IMetadataVersion.php index 0fdfa96bfd9..44f8d904147 100644 --- a/apps/files_versions/lib/Versions/IMetadataVersion.php +++ b/apps/files_versions/lib/Versions/IMetadataVersion.php @@ -5,7 +5,7 @@ declare(strict_types=1); /** * @copyright Copyright (c) 2024 Eduardo Morales <emoral435@gmail.com> * - * @license GNU AGPL version 3 or any later version + * @license GNU AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -29,7 +29,7 @@ namespace OCA\Files_Versions\Versions; */ interface IMetadataVersion { /** - * @abstract retrieves the metadata value from our $key param + * retrieves the metadata value from our $key param * * @param string $key the key for the json value of the metadata column * @since 29.0.0 diff --git a/apps/files_versions/lib/Versions/IMetadataVersionBackend.php b/apps/files_versions/lib/Versions/IMetadataVersionBackend.php index b67ead12955..e9225a14244 100644 --- a/apps/files_versions/lib/Versions/IMetadataVersionBackend.php +++ b/apps/files_versions/lib/Versions/IMetadataVersionBackend.php @@ -5,7 +5,7 @@ declare(strict_types=1); /** * @copyright Copyright (c) 2024 Eduardo Morales <emoral435@gmail.com> * - * @license GNU AGPL version 3 or any later version + * @license GNU AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as |