Skip to content

Commit

Permalink
Drop header comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jan 20, 2022
1 parent a244f54 commit 56a8bea
Show file tree
Hide file tree
Showing 35 changed files with 5 additions and 282 deletions.
11 changes: 1 addition & 10 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://terminal42.ch>\n@license MIT",
]])
;
};
8 changes: 0 additions & 8 deletions src/ConfigProvider/BundleConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\ConfigProvider;

use Terminal42\UrlRewriteBundle\RewriteConfig;
Expand Down
8 changes: 0 additions & 8 deletions src/ConfigProvider/ChainConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\ConfigProvider;

use Terminal42\UrlRewriteBundle\RewriteConfigInterface;
Expand Down
8 changes: 0 additions & 8 deletions src/ConfigProvider/ConfigProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\ConfigProvider;

use Terminal42\UrlRewriteBundle\Exception\TemporarilyUnavailableConfigProviderException;
Expand Down
8 changes: 0 additions & 8 deletions src/ConfigProvider/DatabaseConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\ConfigProvider;

use Contao\StringUtil;
Expand Down
8 changes: 0 additions & 8 deletions src/ContaoManager/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\ContaoManager;

use Contao\CoreBundle\ContaoCoreBundle;
Expand Down
8 changes: 0 additions & 8 deletions src/Controller/QrCodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Controller;

use Contao\Backend;
Expand Down
8 changes: 0 additions & 8 deletions src/Controller/RewriteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Controller;

use Contao\CoreBundle\Framework\ContaoFramework;
Expand Down
8 changes: 0 additions & 8 deletions src/DependencyInjection/Compiler/ConfigProviderPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
Expand Down
8 changes: 0 additions & 8 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Expand Down
8 changes: 0 additions & 8 deletions src/DependencyInjection/Terminal42UrlRewriteExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\DependencyInjection;

use Symfony\Component\Config\FileLocator;
Expand Down
8 changes: 0 additions & 8 deletions src/EventListener/InsertTagsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\EventListener;

use Contao\ArticleModel;
Expand Down
8 changes: 0 additions & 8 deletions src/EventListener/RewriteContainerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\EventListener;

use Contao\Backend;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Exception;

class TemporarilyUnavailableConfigProviderException extends \RuntimeException
Expand Down
8 changes: 0 additions & 8 deletions src/QrCodeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle;

use BaconQrCode\Renderer\Image\SvgImageBackEnd;
Expand Down
8 changes: 0 additions & 8 deletions src/RewriteConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle;

class RewriteConfig implements RewriteConfigInterface
Expand Down
8 changes: 0 additions & 8 deletions src/RewriteConfigInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle;

interface RewriteConfigInterface
Expand Down
12 changes: 4 additions & 8 deletions src/Routing/UrlRewriteLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Routing;

use Symfony\Component\Config\Loader\Loader;
Expand Down Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions src/Terminal42UrlRewriteBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle;

use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down
8 changes: 0 additions & 8 deletions tests/ConfigProvider/BundleConfigProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Tests\ConfigProvider;

use PHPUnit\Framework\TestCase;
Expand Down
8 changes: 0 additions & 8 deletions tests/ConfigProvider/ChainConfigProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Tests\ConfigProvider;

use PHPUnit\Framework\MockObject\MockObject;
Expand Down
8 changes: 0 additions & 8 deletions tests/ConfigProvider/DatabaseConfigProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Tests\ConfigProvider;

use Doctrine\DBAL\Connection;
Expand Down
8 changes: 0 additions & 8 deletions tests/ContaoManager/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Tests\ContaoManager;

use Contao\CoreBundle\ContaoCoreBundle;
Expand Down
8 changes: 0 additions & 8 deletions tests/Controller/RewriteControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Tests\Controller;

use Contao\CoreBundle\Framework\Adapter;
Expand Down
8 changes: 0 additions & 8 deletions tests/DependencyInjection/Compiler/ConfigProviderPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

/*
* UrlRewrite Bundle for Contao Open Source CMS.
*
* @copyright Copyright (c) 2021, terminal42 gmbh
* @author terminal42 <https://terminal42.ch>
* @license MIT
*/

namespace Terminal42\UrlRewriteBundle\Tests\DependencyInjection\Compiler;

use PHPUnit\Framework\TestCase;
Expand Down
Loading

0 comments on commit 56a8bea

Please sign in to comment.