Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/DatabaseStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\ServerInfo;

use OCP\DB\Exception;
Expand Down
1 change: 1 addition & 0 deletions lib/OperatingSystems/Dummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions lib/OperatingSystems/FreeBSD.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions lib/Os.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion lib/PhpStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\ServerInfo;

use bantu\IniGetWrapper\IniGetWrapper;
Expand Down
1 change: 0 additions & 1 deletion lib/SessionStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\ServerInfo;

use OCP\AppFramework\Utility\ITimeFactory;
Expand Down
1 change: 0 additions & 1 deletion lib/Settings/AdminSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\ServerInfo\Settings;

use OCP\IL10N;
Expand Down
1 change: 0 additions & 1 deletion lib/Settings/AdminSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\ServerInfo\Settings;

use OCA\ServerInfo\CronInfo;
Expand Down
1 change: 0 additions & 1 deletion lib/ShareStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\ServerInfo;

use OCP\IDBConnection;
Expand Down
1 change: 0 additions & 1 deletion lib/StorageStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\ServerInfo;

use OCP\Files\IRootFolder;
Expand Down
1 change: 0 additions & 1 deletion lib/SystemStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\ServerInfo;

use OC\Files\View;
Expand Down
1 change: 0 additions & 1 deletion tests/lib/DummyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public function testGetUptime(): void {
$this->assertEquals(-1, $this->os->getUptime());
}


public function testGetDiskInfo(): void {
$this->assertEquals([], $this->os->getDiskInfo());
}
Expand Down
2 changes: 0 additions & 2 deletions tests/lib/LinuxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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');
Expand Down
2 changes: 0 additions & 2 deletions tests/lib/SessionStatisticsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\ServerInfo\Tests;

use OCA\ServerInfo\SessionStatistics;
Expand Down Expand Up @@ -37,7 +36,6 @@ class SessionStatisticsTest extends TestCase {
private const OFFSET_6MONTHS = 15552000;
private const OFFSET_1YEAR = 31536000;


protected function setUp(): void {
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require-dev": {
"nextcloud/coding-standard": "^1.4"
"nextcloud/coding-standard": "^1.5"
},
"config": {
"platform": {
Expand Down
44 changes: 22 additions & 22 deletions vendor-bin/cs-fixer/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading