diff --git a/lib/DatabaseStatistics.php b/lib/DatabaseStatistics.php index 10408406..8b9735af 100644 --- a/lib/DatabaseStatistics.php +++ b/lib/DatabaseStatistics.php @@ -7,7 +7,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace OCA\ServerInfo; use OCP\DB\Exception; diff --git a/lib/OperatingSystems/Dummy.php b/lib/OperatingSystems/Dummy.php index 0ee016c9..7b897341 100644 --- a/lib/OperatingSystems/Dummy.php +++ b/lib/OperatingSystems/Dummy.php @@ -5,6 +5,7 @@ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-only */ + namespace OCA\ServerInfo\OperatingSystems; use OCA\ServerInfo\Resources\CPU; diff --git a/lib/OperatingSystems/FreeBSD.php b/lib/OperatingSystems/FreeBSD.php index 15c82719..ca72bb1d 100644 --- a/lib/OperatingSystems/FreeBSD.php +++ b/lib/OperatingSystems/FreeBSD.php @@ -5,6 +5,7 @@ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-only */ + namespace OCA\ServerInfo\OperatingSystems; use OCA\ServerInfo\Resources\CPU; diff --git a/lib/Os.php b/lib/Os.php index 36537c3f..e0f36cb2 100644 --- a/lib/Os.php +++ b/lib/Os.php @@ -5,6 +5,7 @@ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-only */ + namespace OCA\ServerInfo; use OCA\ServerInfo\OperatingSystems\Dummy; diff --git a/lib/PhpStatistics.php b/lib/PhpStatistics.php index 7672fdc9..ad19c374 100644 --- a/lib/PhpStatistics.php +++ b/lib/PhpStatistics.php @@ -7,7 +7,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace OCA\ServerInfo; use bantu\IniGetWrapper\IniGetWrapper; diff --git a/lib/SessionStatistics.php b/lib/SessionStatistics.php index e253d7dd..fa246cbf 100644 --- a/lib/SessionStatistics.php +++ b/lib/SessionStatistics.php @@ -7,7 +7,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace OCA\ServerInfo; use OCP\AppFramework\Utility\ITimeFactory; diff --git a/lib/Settings/AdminSection.php b/lib/Settings/AdminSection.php index 5b232a46..44cc77b8 100644 --- a/lib/Settings/AdminSection.php +++ b/lib/Settings/AdminSection.php @@ -7,7 +7,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace OCA\ServerInfo\Settings; use OCP\IL10N; diff --git a/lib/Settings/AdminSettings.php b/lib/Settings/AdminSettings.php index b5360171..015370c5 100644 --- a/lib/Settings/AdminSettings.php +++ b/lib/Settings/AdminSettings.php @@ -7,7 +7,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace OCA\ServerInfo\Settings; use OCA\ServerInfo\CronInfo; diff --git a/lib/ShareStatistics.php b/lib/ShareStatistics.php index 423bba81..a22202ba 100644 --- a/lib/ShareStatistics.php +++ b/lib/ShareStatistics.php @@ -7,7 +7,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace OCA\ServerInfo; use OCP\IDBConnection; diff --git a/lib/StorageStatistics.php b/lib/StorageStatistics.php index 5f17743d..ca3f2abe 100644 --- a/lib/StorageStatistics.php +++ b/lib/StorageStatistics.php @@ -7,7 +7,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace OCA\ServerInfo; use OCP\Files\IRootFolder; diff --git a/lib/SystemStatistics.php b/lib/SystemStatistics.php index be6d2033..84715d40 100644 --- a/lib/SystemStatistics.php +++ b/lib/SystemStatistics.php @@ -7,7 +7,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace OCA\ServerInfo; use OC\Files\View; diff --git a/tests/lib/DummyTest.php b/tests/lib/DummyTest.php index 5e81cae8..643cbb03 100644 --- a/tests/lib/DummyTest.php +++ b/tests/lib/DummyTest.php @@ -44,7 +44,6 @@ public function testGetUptime(): void { $this->assertEquals(-1, $this->os->getUptime()); } - public function testGetDiskInfo(): void { $this->assertEquals([], $this->os->getDiskInfo()); } diff --git a/tests/lib/LinuxTest.php b/tests/lib/LinuxTest.php index 1df11262..f840b8cd 100644 --- a/tests/lib/LinuxTest.php +++ b/tests/lib/LinuxTest.php @@ -68,7 +68,6 @@ public function testGetCpu(): void { ->with('/proc/cpuinfo') ->willReturn(file_get_contents(__DIR__ . '/../data/linux_cpuinfo')); - $cpu = $this->os->getCPU(); $this->assertEquals('Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz', $cpu->getName()); @@ -297,7 +296,6 @@ public function testGetNetworkInterfaces(): void { throw new RuntimeException(); }); - $net1 = new NetInterface('lo', true); $net1->addIPv4('127.0.0.1'); $net1->addIPv6('::1'); diff --git a/tests/lib/SessionStatisticsTest.php b/tests/lib/SessionStatisticsTest.php index 3c83d898..279b9c8d 100644 --- a/tests/lib/SessionStatisticsTest.php +++ b/tests/lib/SessionStatisticsTest.php @@ -7,7 +7,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace OCA\ServerInfo\Tests; use OCA\ServerInfo\SessionStatistics; @@ -37,7 +36,6 @@ class SessionStatisticsTest extends TestCase { private const OFFSET_6MONTHS = 15552000; private const OFFSET_1YEAR = 31536000; - protected function setUp(): void { parent::setUp(); diff --git a/vendor-bin/cs-fixer/composer.json b/vendor-bin/cs-fixer/composer.json index 91298604..1ed08539 100644 --- a/vendor-bin/cs-fixer/composer.json +++ b/vendor-bin/cs-fixer/composer.json @@ -1,6 +1,6 @@ { "require-dev": { - "nextcloud/coding-standard": "^1.4" + "nextcloud/coding-standard": "^1.5" }, "config": { "platform": { diff --git a/vendor-bin/cs-fixer/composer.lock b/vendor-bin/cs-fixer/composer.lock index 15ae2a55..ec21be98 100644 --- a/vendor-bin/cs-fixer/composer.lock +++ b/vendor-bin/cs-fixer/composer.lock @@ -4,31 +4,31 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f69ebd472b2e7f35389049ef8af89e76", + "content-hash": "097475bc20caa048ad2b6afe08187a22", "packages": [], "packages-dev": [ { "name": "kubawerlos/php-cs-fixer-custom-fixers", - "version": "v3.30.1", + "version": "v3.37.2", "source": { "type": "git", "url": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers.git", - "reference": "636bbba1f5d6356dd3b75b9b4f77e7a14190dbda" + "reference": "678df979ce743466b42ddb6eea46b3f4c9a7bade" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-custom-fixers/zipball/636bbba1f5d6356dd3b75b9b4f77e7a14190dbda", - "reference": "636bbba1f5d6356dd3b75b9b4f77e7a14190dbda", + "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-custom-fixers/zipball/678df979ce743466b42ddb6eea46b3f4c9a7bade", + "reference": "678df979ce743466b42ddb6eea46b3f4c9a7bade", "shasum": "" }, "require": { "ext-filter": "*", "ext-tokenizer": "*", - "friendsofphp/php-cs-fixer": "^3.82", + "friendsofphp/php-cs-fixer": "^3.87", "php": "^7.4 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^9.6.22 || 10.5.45 || ^11.5.7" + "phpunit/phpunit": "^9.6.34 || ^10.5.63 || ^11.5.55" }, "type": "library", "autoload": { @@ -49,7 +49,7 @@ "description": "A set of custom fixers for PHP CS Fixer", "support": { "issues": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/issues", - "source": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/tree/v3.30.1" + "source": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/tree/v3.37.2" }, "funding": [ { @@ -57,20 +57,20 @@ "type": "github" } ], - "time": "2025-07-12T06:37:38+00:00" + "time": "2026-05-12T16:22:19+00:00" }, { "name": "nextcloud/coding-standard", - "version": "v1.4.0", + "version": "v1.5.0", "source": { "type": "git", "url": "https://github.com/nextcloud/coding-standard.git", - "reference": "8e06808c1423e9208d63d1bd205b9a38bd400011" + "reference": "80547a93236fbb9c783e05f0f0899043851b0dba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/8e06808c1423e9208d63d1bd205b9a38bd400011", - "reference": "8e06808c1423e9208d63d1bd205b9a38bd400011", + "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/80547a93236fbb9c783e05f0f0899043851b0dba", + "reference": "80547a93236fbb9c783e05f0f0899043851b0dba", "shasum": "" }, "require": { @@ -100,22 +100,22 @@ ], "support": { "issues": "https://github.com/nextcloud/coding-standard/issues", - "source": "https://github.com/nextcloud/coding-standard/tree/v1.4.0" + "source": "https://github.com/nextcloud/coding-standard/tree/v1.5.0" }, - "time": "2025-06-19T12:27:27+00:00" + "time": "2026-05-19T18:30:09+00:00" }, { "name": "php-cs-fixer/shim", - "version": "v3.82.2", + "version": "v3.95.3", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "2dbabef3dae30752382cf4b9864780e78f71bc59" + "reference": "681eea341af451ca7cee6abcebc49fcce59507a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/2dbabef3dae30752382cf4b9864780e78f71bc59", - "reference": "2dbabef3dae30752382cf4b9864780e78f71bc59", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/681eea341af451ca7cee6abcebc49fcce59507a3", + "reference": "681eea341af451ca7cee6abcebc49fcce59507a3", "shasum": "" }, "require": { @@ -152,9 +152,9 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.82.2" + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.95.3" }, - "time": "2025-07-08T21:13:44+00:00" + "time": "2026-05-29T20:36:02+00:00" } ], "aliases": [], @@ -167,5 +167,5 @@ "platform-overrides": { "php": "8.1.33" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" }