File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 11<?php
2+
23/**
34 * SPDX-FileCopyrightText: 2026 Jankari Tech Pvt. Ltd.
45 * SPDX-License-Identifier: AGPL-3.0-or-later
89
910namespace OCA \OpenProject ;
1011
11- use OC_Util ;
1212use OCP \IConfig ;
1313use 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+ }
You can’t perform that action at this time.
0 commit comments