fix: fixed stylistic errors

Signed-off-by: Eduardo Morales <emoral435@gmail.com>
This commit is contained in:
Eduardo Morales 2024-03-11 10:33:08 -05:00
parent a8844d408b
commit c5d1fda4ab
4 changed files with 6 additions and 6 deletions

View file

@ -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');
}

View file

@ -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);
}
}
}

View file

@ -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

View file

@ -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