diff --git a/app/lib/Settings/Admin.php b/app/lib/Settings/Admin.php index 08374065..e3402087 100644 --- a/app/lib/Settings/Admin.php +++ b/app/lib/Settings/Admin.php @@ -1,10 +1,9 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - /** * @copyright Copyright (c) 2021, Azul * diff --git a/app/templates/admin.php b/app/templates/admin.php index 22fd8a7f..2e697665 100644 --- a/app/templates/admin.php +++ b/app/templates/admin.php @@ -1,8 +1,7 @@ // SPDX-License-Identifier: AGPL-3.0-only - -declare(strict_types=1); /** * @copyright (c) 2021 Azul * diff --git a/php/domain-validator.php b/php/domain-validator.php index 6e179b74..51800299 100644 --- a/php/domain-validator.php +++ b/php/domain-validator.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - $domain = ''; if (isset($_GET['domain']) && is_string($_GET['domain'])) { $domain = $_GET['domain']; diff --git a/php/public/index.php b/php/public/index.php index e8aeefbd..686eac04 100644 --- a/php/public/index.php +++ b/php/public/index.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Auth/AuthManager.php b/php/src/Auth/AuthManager.php index 5687e7e5..f588c0c3 100644 --- a/php/src/Auth/AuthManager.php +++ b/php/src/Auth/AuthManager.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Auth; use AIO\Data\ConfigurationManager; diff --git a/php/src/Auth/PasswordGenerator.php b/php/src/Auth/PasswordGenerator.php index e7411979..043b2786 100644 --- a/php/src/Auth/PasswordGenerator.php +++ b/php/src/Auth/PasswordGenerator.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Auth; use AIO\Data\ConfigurationManager; diff --git a/php/src/Container/AioVariables.php b/php/src/Container/AioVariables.php index 4472b80b..921739f9 100644 --- a/php/src/Container/AioVariables.php +++ b/php/src/Container/AioVariables.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Container; class AioVariables { diff --git a/php/src/Container/Container.php b/php/src/Container/Container.php index d5de9a64..8215c133 100644 --- a/php/src/Container/Container.php +++ b/php/src/Container/Container.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Container; use AIO\Data\ConfigurationManager; diff --git a/php/src/Container/ContainerEnvironmentVariables.php b/php/src/Container/ContainerEnvironmentVariables.php index 770edfa6..55ae9716 100644 --- a/php/src/Container/ContainerEnvironmentVariables.php +++ b/php/src/Container/ContainerEnvironmentVariables.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Container; class ContainerEnvironmentVariables { diff --git a/php/src/Container/ContainerPort.php b/php/src/Container/ContainerPort.php index 7e86f92d..66243c81 100644 --- a/php/src/Container/ContainerPort.php +++ b/php/src/Container/ContainerPort.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Container; class ContainerPort { diff --git a/php/src/Container/ContainerPorts.php b/php/src/Container/ContainerPorts.php index 4e34b451..6a500f92 100644 --- a/php/src/Container/ContainerPorts.php +++ b/php/src/Container/ContainerPorts.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Container; class ContainerPorts { diff --git a/php/src/Container/ContainerState.php b/php/src/Container/ContainerState.php index aa72109e..66f1f608 100644 --- a/php/src/Container/ContainerState.php +++ b/php/src/Container/ContainerState.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Container; enum ContainerState: string { diff --git a/php/src/Container/ContainerVolume.php b/php/src/Container/ContainerVolume.php index 6dfee026..23507a59 100644 --- a/php/src/Container/ContainerVolume.php +++ b/php/src/Container/ContainerVolume.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Container; class ContainerVolume { diff --git a/php/src/Container/ContainerVolumes.php b/php/src/Container/ContainerVolumes.php index f93b495f..d8f5117c 100644 --- a/php/src/Container/ContainerVolumes.php +++ b/php/src/Container/ContainerVolumes.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Container; class ContainerVolumes { diff --git a/php/src/Container/VersionState.php b/php/src/Container/VersionState.php index fcb9cf91..36295f72 100644 --- a/php/src/Container/VersionState.php +++ b/php/src/Container/VersionState.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Container; enum VersionState: string { diff --git a/php/src/ContainerDefinitionFetcher.php b/php/src/ContainerDefinitionFetcher.php index 00e1d521..e583ce09 100644 --- a/php/src/ContainerDefinitionFetcher.php +++ b/php/src/ContainerDefinitionFetcher.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO; use AIO\Container\AioVariables; diff --git a/php/src/Controller/ConfigurationController.php b/php/src/Controller/ConfigurationController.php index fa3b2c84..5f9c4db5 100644 --- a/php/src/Controller/ConfigurationController.php +++ b/php/src/Controller/ConfigurationController.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Controller; use AIO\Data\ConfigurationManager; diff --git a/php/src/Controller/DockerController.php b/php/src/Controller/DockerController.php index 85d63549..1478d714 100644 --- a/php/src/Controller/DockerController.php +++ b/php/src/Controller/DockerController.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Controller; use AIO\Container\Container; diff --git a/php/src/Controller/LoginController.php b/php/src/Controller/LoginController.php index 12250c96..846b1f0b 100644 --- a/php/src/Controller/LoginController.php +++ b/php/src/Controller/LoginController.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Controller; use AIO\Auth\AuthManager; diff --git a/php/src/Cron/BackupNotification.php b/php/src/Cron/BackupNotification.php index 4a4071e3..26c4002d 100644 --- a/php/src/Cron/BackupNotification.php +++ b/php/src/Cron/BackupNotification.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/CheckBackup.php b/php/src/Cron/CheckBackup.php index a8c27c59..5114cf25 100644 --- a/php/src/Cron/CheckBackup.php +++ b/php/src/Cron/CheckBackup.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/CheckFreeDiskSpace.php b/php/src/Cron/CheckFreeDiskSpace.php index 7d64fabc..bf1c1a5c 100644 --- a/php/src/Cron/CheckFreeDiskSpace.php +++ b/php/src/Cron/CheckFreeDiskSpace.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/CreateBackup.php b/php/src/Cron/CreateBackup.php index b1f764c4..26739a39 100644 --- a/php/src/Cron/CreateBackup.php +++ b/php/src/Cron/CreateBackup.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/OutdatedNotification.php b/php/src/Cron/OutdatedNotification.php index 2539d5f7..c9ca964c 100644 --- a/php/src/Cron/OutdatedNotification.php +++ b/php/src/Cron/OutdatedNotification.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/PullContainerImages.php b/php/src/Cron/PullContainerImages.php index 8bc6d37c..0b761d25 100644 --- a/php/src/Cron/PullContainerImages.php +++ b/php/src/Cron/PullContainerImages.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/StartAndUpdateContainers.php b/php/src/Cron/StartAndUpdateContainers.php index 6ae89e81..27d0b145 100644 --- a/php/src/Cron/StartAndUpdateContainers.php +++ b/php/src/Cron/StartAndUpdateContainers.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/StartContainers.php b/php/src/Cron/StartContainers.php index 219b0934..b7f04d3a 100644 --- a/php/src/Cron/StartContainers.php +++ b/php/src/Cron/StartContainers.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/StopContainers.php b/php/src/Cron/StopContainers.php index 20255547..393d2a7a 100644 --- a/php/src/Cron/StopContainers.php +++ b/php/src/Cron/StopContainers.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/UpdateMastercontainer.php b/php/src/Cron/UpdateMastercontainer.php index 68f241f9..8967b4e4 100644 --- a/php/src/Cron/UpdateMastercontainer.php +++ b/php/src/Cron/UpdateMastercontainer.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Cron/UpdateNotification.php b/php/src/Cron/UpdateNotification.php index 5e570ae4..7ff16f28 100644 --- a/php/src/Cron/UpdateNotification.php +++ b/php/src/Cron/UpdateNotification.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - // increase memory limit to 2GB ini_set('memory_limit', '2048M'); diff --git a/php/src/Data/ConfigurationManager.php b/php/src/Data/ConfigurationManager.php index c69ce695..fc5ba18a 100644 --- a/php/src/Data/ConfigurationManager.php +++ b/php/src/Data/ConfigurationManager.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Data; use AIO\Auth\PasswordGenerator; diff --git a/php/src/Data/DataConst.php b/php/src/Data/DataConst.php index ba1f18e4..3736db61 100644 --- a/php/src/Data/DataConst.php +++ b/php/src/Data/DataConst.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Data; class DataConst { diff --git a/php/src/Data/InvalidSettingConfigurationException.php b/php/src/Data/InvalidSettingConfigurationException.php index 7a07fb98..2223fe92 100644 --- a/php/src/Data/InvalidSettingConfigurationException.php +++ b/php/src/Data/InvalidSettingConfigurationException.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only - -declare(strict_types=1); namespace AIO\Data; class InvalidSettingConfigurationException extends \Exception {} diff --git a/php/src/Data/Setup.php b/php/src/Data/Setup.php index bd8bff44..6df3420d 100644 --- a/php/src/Data/Setup.php +++ b/php/src/Data/Setup.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Data; use AIO\Auth\PasswordGenerator; diff --git a/php/src/DependencyInjection.php b/php/src/DependencyInjection.php index 608dddb8..1a5e75ac 100644 --- a/php/src/DependencyInjection.php +++ b/php/src/DependencyInjection.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO; use AIO\Docker\DockerHubManager; diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index 4f1b8b8c..c88baa7f 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Docker; use AIO\Container\Container; diff --git a/php/src/Docker/DockerHubManager.php b/php/src/Docker/DockerHubManager.php index 3d984a6d..904f2a3c 100644 --- a/php/src/Docker/DockerHubManager.php +++ b/php/src/Docker/DockerHubManager.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Docker; use AIO\ContainerDefinitionFetcher; diff --git a/php/src/Docker/GitHubContainerRegistryManager.php b/php/src/Docker/GitHubContainerRegistryManager.php index 55864dd7..31321967 100644 --- a/php/src/Docker/GitHubContainerRegistryManager.php +++ b/php/src/Docker/GitHubContainerRegistryManager.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Docker; use GuzzleHttp\Client; diff --git a/php/src/Middleware/AuthMiddleware.php b/php/src/Middleware/AuthMiddleware.php index 9d262ac7..db2b2fa7 100644 --- a/php/src/Middleware/AuthMiddleware.php +++ b/php/src/Middleware/AuthMiddleware.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Middleware; use AIO\Auth\AuthManager; diff --git a/php/src/Twig/ClassExtension.php b/php/src/Twig/ClassExtension.php index ccdaf532..3a83eaf3 100644 --- a/php/src/Twig/ClassExtension.php +++ b/php/src/Twig/ClassExtension.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Twig; use Slim\Views\TwigExtension; diff --git a/php/src/Twig/CsrfExtension.php b/php/src/Twig/CsrfExtension.php index e4ffff00..256a197a 100644 --- a/php/src/Twig/CsrfExtension.php +++ b/php/src/Twig/CsrfExtension.php @@ -1,9 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only -declare(strict_types=1); - namespace AIO\Twig; use Slim\Csrf\Guard;