diff --git a/ecs.php b/ecs.php index 2b54a28..d5dbfac 100644 --- a/ecs.php +++ b/ecs.php @@ -13,18 +13,9 @@ $parameters = $containerConfigurator->parameters(); $parameters->set(Option::SKIP, [ '*/Resources/contao/*', + HeaderCommentFixer::class => null, MethodChainingIndentationFixer::class => [ '*/DependencyInjection/Configuration.php', ], ]); - - $date = date('Y'); - - $services = $containerConfigurator->services(); - $services - ->set(HeaderCommentFixer::class) - ->call('configure', [[ - 'header' => "UrlRewrite Bundle for Contao Open Source CMS.\n\n@copyright Copyright (c) $date, terminal42 gmbh\n@author terminal42 \n@license MIT", - ]]) - ; }; diff --git a/src/ConfigProvider/BundleConfigProvider.php b/src/ConfigProvider/BundleConfigProvider.php index d7c0906..76eda83 100644 --- a/src/ConfigProvider/BundleConfigProvider.php +++ b/src/ConfigProvider/BundleConfigProvider.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\ConfigProvider; use Terminal42\UrlRewriteBundle\RewriteConfig; diff --git a/src/ConfigProvider/ChainConfigProvider.php b/src/ConfigProvider/ChainConfigProvider.php index cd652e2..ba12ac1 100644 --- a/src/ConfigProvider/ChainConfigProvider.php +++ b/src/ConfigProvider/ChainConfigProvider.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\ConfigProvider; use Terminal42\UrlRewriteBundle\RewriteConfigInterface; diff --git a/src/ConfigProvider/ConfigProviderInterface.php b/src/ConfigProvider/ConfigProviderInterface.php index 974b8c5..5d3d488 100644 --- a/src/ConfigProvider/ConfigProviderInterface.php +++ b/src/ConfigProvider/ConfigProviderInterface.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\ConfigProvider; use Terminal42\UrlRewriteBundle\Exception\TemporarilyUnavailableConfigProviderException; diff --git a/src/ConfigProvider/DatabaseConfigProvider.php b/src/ConfigProvider/DatabaseConfigProvider.php index b3cde02..6b21f2e 100644 --- a/src/ConfigProvider/DatabaseConfigProvider.php +++ b/src/ConfigProvider/DatabaseConfigProvider.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\ConfigProvider; use Contao\StringUtil; diff --git a/src/ContaoManager/Plugin.php b/src/ContaoManager/Plugin.php index 3a8a8cb..37eafd4 100644 --- a/src/ContaoManager/Plugin.php +++ b/src/ContaoManager/Plugin.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\ContaoManager; use Contao\CoreBundle\ContaoCoreBundle; diff --git a/src/Controller/QrCodeController.php b/src/Controller/QrCodeController.php index 001b3db..3577e3a 100644 --- a/src/Controller/QrCodeController.php +++ b/src/Controller/QrCodeController.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Controller; use Contao\Backend; diff --git a/src/Controller/RewriteController.php b/src/Controller/RewriteController.php index 55d3d00..215c2c8 100644 --- a/src/Controller/RewriteController.php +++ b/src/Controller/RewriteController.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Controller; use Contao\CoreBundle\Framework\ContaoFramework; diff --git a/src/DependencyInjection/Compiler/ConfigProviderPass.php b/src/DependencyInjection/Compiler/ConfigProviderPass.php index a80c31a..6d023cb 100644 --- a/src/DependencyInjection/Compiler/ConfigProviderPass.php +++ b/src/DependencyInjection/Compiler/ConfigProviderPass.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index f7de232..bcc1b03 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; diff --git a/src/DependencyInjection/Terminal42UrlRewriteExtension.php b/src/DependencyInjection/Terminal42UrlRewriteExtension.php index 2c1dd1a..a8f178a 100644 --- a/src/DependencyInjection/Terminal42UrlRewriteExtension.php +++ b/src/DependencyInjection/Terminal42UrlRewriteExtension.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\DependencyInjection; use Symfony\Component\Config\FileLocator; diff --git a/src/EventListener/InsertTagsListener.php b/src/EventListener/InsertTagsListener.php index 83475eb..60aa45a 100644 --- a/src/EventListener/InsertTagsListener.php +++ b/src/EventListener/InsertTagsListener.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\EventListener; use Contao\ArticleModel; diff --git a/src/EventListener/RewriteContainerListener.php b/src/EventListener/RewriteContainerListener.php index f3b8d9a..82129f0 100644 --- a/src/EventListener/RewriteContainerListener.php +++ b/src/EventListener/RewriteContainerListener.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\EventListener; use Contao\Backend; diff --git a/src/Exception/TemporarilyUnavailableConfigProviderException.php b/src/Exception/TemporarilyUnavailableConfigProviderException.php index dd6d49b..60e3324 100644 --- a/src/Exception/TemporarilyUnavailableConfigProviderException.php +++ b/src/Exception/TemporarilyUnavailableConfigProviderException.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Exception; class TemporarilyUnavailableConfigProviderException extends \RuntimeException diff --git a/src/QrCodeGenerator.php b/src/QrCodeGenerator.php index b6d4f94..f62e4d0 100644 --- a/src/QrCodeGenerator.php +++ b/src/QrCodeGenerator.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle; use BaconQrCode\Renderer\Image\SvgImageBackEnd; diff --git a/src/RewriteConfig.php b/src/RewriteConfig.php index a17103d..2b14f0d 100644 --- a/src/RewriteConfig.php +++ b/src/RewriteConfig.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle; class RewriteConfig implements RewriteConfigInterface diff --git a/src/RewriteConfigInterface.php b/src/RewriteConfigInterface.php index 161af27..eb78c88 100644 --- a/src/RewriteConfigInterface.php +++ b/src/RewriteConfigInterface.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle; interface RewriteConfigInterface diff --git a/src/Routing/UrlRewriteLoader.php b/src/Routing/UrlRewriteLoader.php index 4630ad4..3642837 100644 --- a/src/Routing/UrlRewriteLoader.php +++ b/src/Routing/UrlRewriteLoader.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Routing; use Symfony\Component\Config\Loader\Loader; @@ -37,6 +29,10 @@ class UrlRewriteLoader extends Loader */ private $loaded = false; + /** + * @noinspection MagicMethodsValidityInspection + * @noinspection PhpMissingParentConstructorInspection + */ public function __construct(ConfigProviderInterface $configProvider) { // Do not call parent constructor, it does not exist in Symfony < 5 diff --git a/src/Terminal42UrlRewriteBundle.php b/src/Terminal42UrlRewriteBundle.php index 9687ad0..4d376d2 100644 --- a/src/Terminal42UrlRewriteBundle.php +++ b/src/Terminal42UrlRewriteBundle.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/tests/ConfigProvider/BundleConfigProviderTest.php b/tests/ConfigProvider/BundleConfigProviderTest.php index 01dbadc..3e7b581 100644 --- a/tests/ConfigProvider/BundleConfigProviderTest.php +++ b/tests/ConfigProvider/BundleConfigProviderTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\ConfigProvider; use PHPUnit\Framework\TestCase; diff --git a/tests/ConfigProvider/ChainConfigProviderTest.php b/tests/ConfigProvider/ChainConfigProviderTest.php index 7318be6..2fb99b2 100644 --- a/tests/ConfigProvider/ChainConfigProviderTest.php +++ b/tests/ConfigProvider/ChainConfigProviderTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\ConfigProvider; use PHPUnit\Framework\MockObject\MockObject; diff --git a/tests/ConfigProvider/DatabaseConfigProviderTest.php b/tests/ConfigProvider/DatabaseConfigProviderTest.php index bfcdbcf..9c3e97e 100644 --- a/tests/ConfigProvider/DatabaseConfigProviderTest.php +++ b/tests/ConfigProvider/DatabaseConfigProviderTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\ConfigProvider; use Doctrine\DBAL\Connection; diff --git a/tests/ContaoManager/PluginTest.php b/tests/ContaoManager/PluginTest.php index d95e339..3004d3b 100644 --- a/tests/ContaoManager/PluginTest.php +++ b/tests/ContaoManager/PluginTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\ContaoManager; use Contao\CoreBundle\ContaoCoreBundle; diff --git a/tests/Controller/RewriteControllerTest.php b/tests/Controller/RewriteControllerTest.php index 5f26dcb..616e0a0 100644 --- a/tests/Controller/RewriteControllerTest.php +++ b/tests/Controller/RewriteControllerTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\Controller; use Contao\CoreBundle\Framework\Adapter; diff --git a/tests/DependencyInjection/Compiler/ConfigProviderPassTest.php b/tests/DependencyInjection/Compiler/ConfigProviderPassTest.php index e40ba97..e3d4df5 100644 --- a/tests/DependencyInjection/Compiler/ConfigProviderPassTest.php +++ b/tests/DependencyInjection/Compiler/ConfigProviderPassTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\DependencyInjection\Compiler; use PHPUnit\Framework\TestCase; diff --git a/tests/DependencyInjection/ConfigurationTest.php b/tests/DependencyInjection/ConfigurationTest.php index 151eb0d..57a2a26 100644 --- a/tests/DependencyInjection/ConfigurationTest.php +++ b/tests/DependencyInjection/ConfigurationTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\DependencyInjection; use PHPUnit\Framework\TestCase; diff --git a/tests/DependencyInjection/Terminal42UrlRewriteExtensionTest.php b/tests/DependencyInjection/Terminal42UrlRewriteExtensionTest.php index e4abf62..3fe6127 100644 --- a/tests/DependencyInjection/Terminal42UrlRewriteExtensionTest.php +++ b/tests/DependencyInjection/Terminal42UrlRewriteExtensionTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\DependencyInjection; use PHPUnit\Framework\TestCase; diff --git a/tests/EventListener/AbstractContainerListenerTest.php b/tests/EventListener/AbstractContainerListenerTest.php index 6e8eb0b..615fad2 100644 --- a/tests/EventListener/AbstractContainerListenerTest.php +++ b/tests/EventListener/AbstractContainerListenerTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\EventListener; use Contao\CoreBundle\Framework\Adapter; diff --git a/tests/EventListener/InsertTagsListenerTest.php b/tests/EventListener/InsertTagsListenerTest.php index 01f4225..f54f53e 100644 --- a/tests/EventListener/InsertTagsListenerTest.php +++ b/tests/EventListener/InsertTagsListenerTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\EventListener; use Contao\ArticleModel; diff --git a/tests/EventListener/RewriteContainerListenerWithCMFChainRouterTest.php b/tests/EventListener/RewriteContainerListenerWithCMFChainRouterTest.php index 4197733..6b99b55 100644 --- a/tests/EventListener/RewriteContainerListenerWithCMFChainRouterTest.php +++ b/tests/EventListener/RewriteContainerListenerWithCMFChainRouterTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\EventListener; use Symfony\Cmf\Component\Routing\ChainRouter; diff --git a/tests/EventListener/RewriteContainerListenerWithSymfonyRouterTest.php b/tests/EventListener/RewriteContainerListenerWithSymfonyRouterTest.php index eb8133d..5bf40fb 100644 --- a/tests/EventListener/RewriteContainerListenerWithSymfonyRouterTest.php +++ b/tests/EventListener/RewriteContainerListenerWithSymfonyRouterTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\EventListener; use Symfony\Component\Routing\Router; diff --git a/tests/QrCodeGeneratorTest.php b/tests/QrCodeGeneratorTest.php index efb8df3..ac644da 100644 --- a/tests/QrCodeGeneratorTest.php +++ b/tests/QrCodeGeneratorTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests; use PHPUnit\Framework\TestCase; diff --git a/tests/RewriteConfigTest.php b/tests/RewriteConfigTest.php index e1d150e..012f5ff 100644 --- a/tests/RewriteConfigTest.php +++ b/tests/RewriteConfigTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests; use PHPUnit\Framework\TestCase; diff --git a/tests/Routing/UrlRewriteLoaderTest.php b/tests/Routing/UrlRewriteLoaderTest.php index eedea3a..ba2c88c 100644 --- a/tests/Routing/UrlRewriteLoaderTest.php +++ b/tests/Routing/UrlRewriteLoaderTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests\Routing; use PHPUnit\Framework\MockObject\MockObject; diff --git a/tests/Terminal42UrlRewriteBundleTest.php b/tests/Terminal42UrlRewriteBundleTest.php index bf2950a..40a3280 100644 --- a/tests/Terminal42UrlRewriteBundleTest.php +++ b/tests/Terminal42UrlRewriteBundleTest.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * UrlRewrite Bundle for Contao Open Source CMS. - * - * @copyright Copyright (c) 2021, terminal42 gmbh - * @author terminal42 - * @license MIT - */ - namespace Terminal42\UrlRewriteBundle\Tests; use PHPUnit\Framework\TestCase;