From 0630ec4bdb74d50e2cc6353dca9d8c691fe22479 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 26 Mar 2024 19:01:54 +0100 Subject: [PATCH] Cleanup --- Command.php | 6 +++--- Command/RangeCommand.php | 4 ++-- Controller/ImageController.php | 8 ++++---- Controller/MapController.php | 8 ++++---- DependencyInjection/Configuration.php | 4 ++-- DependencyInjection/RapsysPackExtension.php | 4 ++-- Extension/PackExtension.php | 10 +++++----- Package/PathPackage.php | 4 ++-- Parser/TokenParser.php | 4 ++-- RapsysPackBundle.php | 4 ++-- 10 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Command.php b/Command.php index 51fbb30..0097d12 100644 --- a/Command.php +++ b/Command.php @@ -11,11 +11,11 @@ namespace Rapsys\PackBundle; +use Rapsys\PackBundle\RapsysPackBundle; + use Symfony\Component\Console\Command\Command as BaseCommand; use Symfony\Component\DependencyInjection\Container; -use Rapsys\PackBundle\RapsysPackBundle; - /** * {@inheritdoc} */ @@ -23,7 +23,7 @@ class Command extends BaseCommand { /** * {@inheritdoc} */ - public function __construct(protected ?string $name = null) { + public function __construct(protected ?string $name = null) { //Fix name $this->name = $this->name ?? static::getName(); diff --git a/Command/RangeCommand.php b/Command/RangeCommand.php index b5586de..7c3270d 100644 --- a/Command/RangeCommand.php +++ b/Command/RangeCommand.php @@ -11,12 +11,12 @@ namespace Rapsys\PackBundle\Command; +use Rapsys\PackBundle\Command; + use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Rapsys\PackBundle\Command; - /** * {@inheritdoc} * diff --git a/Controller/ImageController.php b/Controller/ImageController.php index 36270ba..13865a7 100644 --- a/Controller/ImageController.php +++ b/Controller/ImageController.php @@ -11,22 +11,22 @@ namespace Rapsys\PackBundle\Controller; +use Rapsys\PackBundle\Util\ImageUtil; +use Rapsys\PackBundle\Util\SluggerUtil; + use Psr\Container\ContainerInterface; -use Symfony\Component\HttpFoundation\HeaderUtils; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Filesystem\Exception\IOExceptionInterface; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\HttpFoundation\BinaryFileResponse; +use Symfony\Component\HttpFoundation\HeaderUtils; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\Routing\RequestContext; use Symfony\Contracts\Service\ServiceSubscriberInterface; -use Rapsys\PackBundle\Util\ImageUtil; -use Rapsys\PackBundle\Util\SluggerUtil; - /** * {@inheritdoc} */ diff --git a/Controller/MapController.php b/Controller/MapController.php index 255c47b..8d38aa6 100644 --- a/Controller/MapController.php +++ b/Controller/MapController.php @@ -11,22 +11,22 @@ namespace Rapsys\PackBundle\Controller; +use Rapsys\PackBundle\Util\MapUtil; +use Rapsys\PackBundle\Util\SluggerUtil; + use Psr\Container\ContainerInterface; -use Symfony\Component\HttpFoundation\HeaderUtils; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Filesystem\Exception\IOExceptionInterface; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\HttpFoundation\BinaryFileResponse; +use Symfony\Component\HttpFoundation\HeaderUtils; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\Routing\RequestContext; use Symfony\Contracts\Service\ServiceSubscriberInterface; -use Rapsys\PackBundle\Util\MapUtil; -use Rapsys\PackBundle\Util\SluggerUtil; - /** * {@inheritdoc} */ diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index e34da5b..60b68b6 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -11,13 +11,13 @@ namespace Rapsys\PackBundle\DependencyInjection; +use Rapsys\PackBundle\RapsysPackBundle; + use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\Process\ExecutableFinder; -use Rapsys\PackBundle\RapsysPackBundle; - /** * {@inheritdoc} * diff --git a/DependencyInjection/RapsysPackExtension.php b/DependencyInjection/RapsysPackExtension.php index d6e3c80..fc9efce 100644 --- a/DependencyInjection/RapsysPackExtension.php +++ b/DependencyInjection/RapsysPackExtension.php @@ -11,11 +11,11 @@ namespace Rapsys\PackBundle\DependencyInjection; +use Rapsys\PackBundle\RapsysPackBundle; + use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Extension\Extension; -use Rapsys\PackBundle\RapsysPackBundle; - /** * This is the class that loads and manages your bundle configuration. * diff --git a/Extension/PackExtension.php b/Extension/PackExtension.php index 1234de5..7107548 100644 --- a/Extension/PackExtension.php +++ b/Extension/PackExtension.php @@ -11,16 +11,16 @@ namespace Rapsys\PackBundle\Extension; -use Symfony\Component\Asset\PackageInterface; -use Symfony\Component\HttpKernel\Config\FileLocator; - -use Twig\Extension\AbstractExtension; - use Rapsys\PackBundle\Parser\TokenParser; use Rapsys\PackBundle\RapsysPackBundle; use Rapsys\PackBundle\Util\IntlUtil; use Rapsys\PackBundle\Util\SluggerUtil; +use Symfony\Component\Asset\PackageInterface; +use Symfony\Component\HttpKernel\Config\FileLocator; + +use Twig\Extension\AbstractExtension; + /** * {@inheritdoc} */ diff --git a/Package/PathPackage.php b/Package/PathPackage.php index 22ed5ad..c53b10f 100644 --- a/Package/PathPackage.php +++ b/Package/PathPackage.php @@ -11,12 +11,12 @@ namespace Rapsys\PackBundle\Package; +use Rapsys\PackBundle\Context\NullContext; + use Symfony\Component\Asset\Context\ContextInterface; use Symfony\Component\Asset\Package; use Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface; -use Rapsys\PackBundle\Context\NullContext; - /** * {@inheritdoc} */ diff --git a/Parser/TokenParser.php b/Parser/TokenParser.php index 0ca3e30..67e87eb 100644 --- a/Parser/TokenParser.php +++ b/Parser/TokenParser.php @@ -11,6 +11,8 @@ namespace Rapsys\PackBundle\Parser; +use Rapsys\PackBundle\RapsysPackBundle; + use Symfony\Component\Asset\PackageInterface; use Symfony\Component\Filesystem\Exception\IOExceptionInterface; use Symfony\Component\Filesystem\Filesystem; @@ -25,8 +27,6 @@ use Twig\Source; use Twig\Token; use Twig\TokenParser\AbstractTokenParser; -use Rapsys\PackBundle\RapsysPackBundle; - /** * {@inheritdoc} */ diff --git a/RapsysPackBundle.php b/RapsysPackBundle.php index 4ad24d4..49dfdaf 100644 --- a/RapsysPackBundle.php +++ b/RapsysPackBundle.php @@ -11,11 +11,11 @@ namespace Rapsys\PackBundle; +use Rapsys\PackBundle\DependencyInjection\RapsysPackExtension; + use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; use Symfony\Component\HttpKernel\Bundle\Bundle; -use Rapsys\PackBundle\DependencyInjection\RapsysPackExtension; - /** * {@inheritdoc} */ -- 2.41.0