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

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>
*

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>
*

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'];

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');

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;

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;

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 {

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;

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 ContainerEnvironmentVariables {

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 {

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 {

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 {

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 {

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 {

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 {

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;

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\Data\ConfigurationManager;

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;

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;

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');

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');

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');

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');

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');

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');

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');

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');

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');

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');

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');

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;

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 {

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 InvalidSettingConfigurationException extends \Exception {}

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;

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;

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;

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;

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 GuzzleHttp\Client;

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;

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;

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;