mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-28 14:30:13 +00:00
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:
committed by
GitHub
parent
4f43a212c3
commit
b1046f0269
@@ -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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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;
|
||||
|
||||
Reference in New Issue
Block a user