reuse: fix PHP files to keep declare(strict_types=1) directly after <?php

Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-11 13:00:48 +00:00
committed by GitHub
parent 4f43a212c3
commit b1046f0269
41 changed files with 41 additions and 82 deletions
+1 -2
View File
@@ -1,10 +1,9 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
/**
* @copyright Copyright (c) 2021, Azul <azul@riseup.net>
*
+1 -2
View File
@@ -1,8 +1,7 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
/**
* @copyright (c) 2021 Azul <azul@riseup.net>
*
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
$domain = '';
if (isset($_GET['domain']) && is_string($_GET['domain'])) {
$domain = $_GET['domain'];
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Auth;
use AIO\Data\ConfigurationManager;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Auth;
use AIO\Data\ConfigurationManager;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Container;
class AioVariables {
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Container;
use AIO\Data\ConfigurationManager;
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Container;
class ContainerEnvironmentVariables {
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Container;
class ContainerPort {
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Container;
class ContainerPorts {
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2024 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Container;
enum ContainerState: string {
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Container;
class ContainerVolume {
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Container;
class ContainerVolumes {
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2024 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Container;
enum VersionState: string {
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO;
use AIO\Container\AioVariables;
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Controller;
use AIO\Data\ConfigurationManager;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Controller;
use AIO\Container\Container;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Controller;
use AIO\Auth\AuthManager;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
// increase memory limit to 2GB
ini_set('memory_limit', '2048M');
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Data;
use AIO\Auth\PasswordGenerator;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Data;
class DataConst {
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Data;
class InvalidSettingConfigurationException extends \Exception {}
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Data;
use AIO\Auth\PasswordGenerator;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO;
use AIO\Docker\DockerHubManager;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Docker;
use AIO\Container\Container;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Docker;
use AIO\ContainerDefinitionFetcher;
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Docker;
use GuzzleHttp\Client;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Middleware;
use AIO\Auth\AuthManager;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Twig;
use Slim\Views\TwigExtension;
+1 -2
View File
@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
// SPDX-License-Identifier: AGPL-3.0-only
declare(strict_types=1);
namespace AIO\Twig;
use Slim\Csrf\Guard;