From bbb92e5d52562caacc0f0a777ac225ecbaa488b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Thu, 30 Nov 2023 14:58:35 +0100 Subject: [PATCH] Fix coding standard --- src/Bundle/DependencyInjection/SyliusResourceExtension.php | 2 +- src/Bundle/Routing/CrudRoutesAttributesLoader.php | 2 +- src/Bundle/Routing/RouteAttributesFactory.php | 2 +- src/Component/Tests/Reflection/ClassReflectionTest.php | 2 +- .../Factory/AttributesResourceMetadataCollectionFactory.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Bundle/DependencyInjection/SyliusResourceExtension.php b/src/Bundle/DependencyInjection/SyliusResourceExtension.php index d2b6a75b0..7d05dcad1 100644 --- a/src/Bundle/DependencyInjection/SyliusResourceExtension.php +++ b/src/Bundle/DependencyInjection/SyliusResourceExtension.php @@ -21,12 +21,12 @@ use Sylius\Bundle\ResourceBundle\Form\Type\DefaultResourceType; use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; use Sylius\Component\Resource\Factory\FactoryInterface as LegacyFactoryInterface; -use Sylius\Resource\Reflection\ClassReflection; use Sylius\Resource\Factory\Factory; use Sylius\Resource\Factory\FactoryInterface; use Sylius\Resource\Metadata\AsResource; use Sylius\Resource\Metadata\Metadata; use Sylius\Resource\Metadata\ResourceMetadata; +use Sylius\Resource\Reflection\ClassReflection; use Sylius\Resource\State\ProcessorInterface; use Sylius\Resource\State\ProviderInterface; use Sylius\Resource\State\ResponderInterface; diff --git a/src/Bundle/Routing/CrudRoutesAttributesLoader.php b/src/Bundle/Routing/CrudRoutesAttributesLoader.php index 095873083..cdcc3fc82 100644 --- a/src/Bundle/Routing/CrudRoutesAttributesLoader.php +++ b/src/Bundle/Routing/CrudRoutesAttributesLoader.php @@ -14,8 +14,8 @@ namespace Sylius\Bundle\ResourceBundle\Routing; use Sylius\Component\Resource\Annotation\SyliusCrudRoutes as LegacySyliusCrudRoutes; -use Sylius\Resource\Reflection\ClassReflection; use Sylius\Resource\Annotation\SyliusCrudRoutes; +use Sylius\Resource\Reflection\ClassReflection; use Symfony\Bundle\FrameworkBundle\Routing\RouteLoaderInterface; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Yaml\Yaml; diff --git a/src/Bundle/Routing/RouteAttributesFactory.php b/src/Bundle/Routing/RouteAttributesFactory.php index 23c452157..d5272a90b 100644 --- a/src/Bundle/Routing/RouteAttributesFactory.php +++ b/src/Bundle/Routing/RouteAttributesFactory.php @@ -14,8 +14,8 @@ namespace Sylius\Bundle\ResourceBundle\Routing; use Sylius\Component\Resource\Annotation\SyliusRoute as LegacySyliusRoute; -use Sylius\Resource\Reflection\ClassReflection; use Sylius\Resource\Annotation\SyliusRoute; +use Sylius\Resource\Reflection\ClassReflection; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; use Webmozart\Assert\Assert; diff --git a/src/Component/Tests/Reflection/ClassReflectionTest.php b/src/Component/Tests/Reflection/ClassReflectionTest.php index e28c29aed..c9c36f372 100644 --- a/src/Component/Tests/Reflection/ClassReflectionTest.php +++ b/src/Component/Tests/Reflection/ClassReflectionTest.php @@ -17,12 +17,12 @@ use App\Entity\Route\ShowBook; use App\Entity\Route\ShowBookWithPriority; use PHPUnit\Framework\TestCase; -use Sylius\Resource\Reflection\ClassReflection; use Sylius\Component\Resource\Tests\Dummy\DummyClassOne; use Sylius\Component\Resource\Tests\Dummy\DummyClassTwo; use Sylius\Component\Resource\Tests\Dummy\TraitPass; use Sylius\Resource\Annotation\SyliusCrudRoutes; use Sylius\Resource\Annotation\SyliusRoute; +use Sylius\Resource\Reflection\ClassReflection; final class ClassReflectionTest extends TestCase { diff --git a/src/Component/src/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactory.php b/src/Component/src/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactory.php index fd4ad1b71..63973e3b0 100644 --- a/src/Component/src/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactory.php +++ b/src/Component/src/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactory.php @@ -13,7 +13,6 @@ namespace Sylius\Resource\Metadata\Resource\Factory; -use Sylius\Resource\Reflection\ClassReflection; use Sylius\Resource\Metadata\AsResource; use Sylius\Resource\Metadata\HttpOperation; use Sylius\Resource\Metadata\MetadataInterface; @@ -22,6 +21,7 @@ use Sylius\Resource\Metadata\RegistryInterface; use Sylius\Resource\Metadata\Resource\ResourceMetadataCollection; use Sylius\Resource\Metadata\ResourceMetadata; +use Sylius\Resource\Reflection\ClassReflection; use Sylius\Resource\Symfony\Request\State\Responder; use Sylius\Resource\Symfony\Routing\Factory\OperationRouteNameFactory;