fix: fixed stylistic errors

Signed-off-by: Eduardo Morales <emoral435@gmail.com>
pull/44049/head
Eduardo Morales 2 years ago
parent a8844d408b
commit c5d1fda4ab
  1. 2
      apps/files_versions/lib/Db/VersionEntity.php
  2. 4
      apps/files_versions/lib/Listener/MetadataFileEvents.php
  3. 4
      apps/files_versions/lib/Versions/IMetadataVersion.php
  4. 2
      apps/files_versions/lib/Versions/IMetadataVersionBackend.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');
}

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

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

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

Loading…
Cancel
Save