Skip to content

Commit 8dc9161

Browse files
committed
fix: php code style
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
1 parent 3bfea56 commit 8dc9161

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

lib/Controller/FilesController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ public function getDavPermissions(Node $file): string {
300300
/** @psalm-suppress TooManyArguments */
301301
return $this->davUtils->getDavPermissions($file, $file->getParent());
302302
}
303+
/** @psalm-suppress TooFewArguments */
303304
return $this->davUtils->getDavPermissions($file);
304305
}
305306
}

lib/ServerVersion.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2026 Jankari Tech Pvt. Ltd.
45
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -8,7 +9,6 @@
89

910
namespace OCA\OpenProject;
1011

11-
use OC_Util;
1212
use OCP\IConfig;
1313
use OCP\ServerVersion as NCServerVersion;
1414

@@ -23,13 +23,13 @@ public function __construct(private IConfig $config) {
2323
*/
2424
public function getVersion(): string {
2525
// For Nextcloud below 31, ServerVersion class does not exist.
26-
// NOTE: we can remove alternative code path once we stop supporting Nextcloud 30
26+
// NOTE: we can remove alternative code path once we stop supporting Nextcloud 30
2727
if (class_exists(NCServerVersion::class)) {
2828
$serverVersion = new NCServerVersion();
29-
return $serverVersion->getVersionString();
29+
return $serverVersion->getVersionString();
3030
}
3131

32-
return $this->config->getSystemValueString('version', '0.0.0');
32+
return $this->config->getSystemValueString('version', '0.0.0');
3333
}
3434

3535
/**
@@ -39,6 +39,6 @@ public function getVersion(): string {
3939
*/
4040
public function getMajorVersion(): string {
4141
$versionString = $this->getVersion();
42-
return explode('.', $versionString)[0] ?? '0';
42+
return explode('.', $versionString)[0] ?? '0';
4343
}
44-
}
44+
}

0 commit comments

Comments
 (0)