aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-09-21 11:40:18 +0330
committerGitHub <noreply@github.com>2023-09-21 11:40:18 +0330
commit0273b96eef8111def6bb3d5773a46f543802cb02 (patch)
treeb49ffeb27f638b5fb878eebb9bf4e13b2854eb18 /apps/files_versions
parent90652fd30fcbe620d1b1bf87899eeae6f6c7c657 (diff)
downloadnextcloud-server-0273b96eef8111def6bb3d5773a46f543802cb02.tar.gz
nextcloud-server-0273b96eef8111def6bb3d5773a46f543802cb02.zip
Apply suggestions from code review
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/lib/Command/CleanUp.php2
-rw-r--r--apps/files_versions/lib/Command/Expire.php1
2 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_versions/lib/Command/CleanUp.php b/apps/files_versions/lib/Command/CleanUp.php
index 2a19c57710e..519b3689a58 100644
--- a/apps/files_versions/lib/Command/CleanUp.php
+++ b/apps/files_versions/lib/Command/CleanUp.php
@@ -115,7 +115,7 @@ class CleanUp extends Command {
/**
* delete versions for the given user
*/
- protected function deleteVersions(string $user, string $path = null): void {
+ protected function deleteVersions(string $user, ?string $path = null): void {
\OC_Util::tearDownFS();
\OC_Util::setupFS($user);
diff --git a/apps/files_versions/lib/Command/Expire.php b/apps/files_versions/lib/Command/Expire.php
index 3744df10093..688a6e869e9 100644
--- a/apps/files_versions/lib/Command/Expire.php
+++ b/apps/files_versions/lib/Command/Expire.php
@@ -53,7 +53,6 @@ class Expire implements ICommand {
// In case of external storage and session credentials, the expiration
// fails because the command does not have those credentials
- /** @var LoggerInterface $logger */
$logger = \OC::$server->get(LoggerInterface::class);
$logger->warning($e->getMessage(), [
'exception' => $e,