From 7b3e9cb490a1ea37d0900d7f087e06367d2d215f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 25 Jan 2022 14:40:28 +0100 Subject: [PATCH] fix cs --- .../Tests/Security/Authorization/ActivityVoterTest.php | 4 ---- src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php | 1 - .../ChillMainBundle/Entity/Workflow/EntityWorkflowComment.php | 1 - src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php | 2 -- .../Tests/Security/Authorization/AuthorizationHelperTest.php | 3 --- .../Entity/Household/HouseholdComposition.php | 1 - .../Normalizer/AccompanyingPeriodResourceNormalizer.php | 1 - .../Normalizer/AccompanyingPeriodWorkDenormalizer.php | 1 - .../Serializer/Normalizer/PersonJsonNormalizer.php | 2 -- .../Tests/Security/Authorization/PersonVoterTest.php | 2 -- .../Tests/Security/Authorization/ReportVoterTest.php | 2 -- 11 files changed, 20 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php b/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php index 3ca5aab45..b3d8472c6 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php @@ -29,13 +29,9 @@ use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; final class ActivityVoterTest extends KernelTestCase { use PrepareActivityTrait; - use PrepareCenterTrait; - use PreparePersonTrait; - use PrepareScopeTrait; - use PrepareUserTrait; /** diff --git a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php index 0d7142e9f..b56435f5d 100644 --- a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php +++ b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php @@ -37,7 +37,6 @@ use function count; class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface { use TrackCreationTrait; - use TrackUpdateTrait; /** diff --git a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflowComment.php b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflowComment.php index 9f4e7f096..b041a5aa3 100644 --- a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflowComment.php +++ b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflowComment.php @@ -24,7 +24,6 @@ use Doctrine\ORM\Mapping as ORM; class EntityWorkflowComment implements TrackCreationInterface, TrackUpdateInterface { use TrackCreationTrait; - use TrackUpdateTrait; /** diff --git a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php index 82693b9c1..94266077a 100644 --- a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php @@ -44,9 +44,7 @@ use function count; final class ExportManagerTest extends KernelTestCase { use PrepareCenterTrait; - use PrepareScopeTrait; - use PrepareUserTrait; private Prophet $prophet; diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php index 32382713a..f4984167f 100644 --- a/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php @@ -34,11 +34,8 @@ use function in_array; final class AuthorizationHelperTest extends KernelTestCase { use PrepareCenterTrait; - use PrepareScopeTrait; - use PrepareUserTrait; - use ProphecyTrait; protected function setUp(): void diff --git a/src/Bundle/ChillPersonBundle/Entity/Household/HouseholdComposition.php b/src/Bundle/ChillPersonBundle/Entity/Household/HouseholdComposition.php index 8aef3a0fa..a381fafd8 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Household/HouseholdComposition.php +++ b/src/Bundle/ChillPersonBundle/Entity/Household/HouseholdComposition.php @@ -33,7 +33,6 @@ use Symfony\Component\Validator\Constraints as Assert; class HouseholdComposition implements TrackCreationInterface, TrackUpdateInterface { use TrackCreationTrait; - use TrackUpdateTrait; /** diff --git a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php index 472fa6d9b..7ab284e44 100644 --- a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php +++ b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php @@ -29,7 +29,6 @@ use function count; class AccompanyingPeriodResourceNormalizer implements DenormalizerAwareInterface, DenormalizerInterface { use DenormalizerAwareTrait; - use ObjectToPopulateTrait; private ResourceRepository $repository; diff --git a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkDenormalizer.php b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkDenormalizer.php index e76c9cb55..edbe07e47 100644 --- a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkDenormalizer.php +++ b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkDenormalizer.php @@ -33,7 +33,6 @@ use function is_array; class AccompanyingPeriodWorkDenormalizer implements ContextAwareDenormalizerInterface, DenormalizerAwareInterface { use DenormalizerAwareTrait; - use ObjectToPopulateTrait; public const GROUP_CREATE = 'accompanying_period_work:create'; diff --git a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php index 568926f79..d6f9ced53 100644 --- a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php +++ b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php @@ -40,9 +40,7 @@ class PersonJsonNormalizer implements NormalizerInterface { use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use ObjectToPopulateTrait; private CenterResolverManagerInterface $centerResolverManager; diff --git a/src/Bundle/ChillPersonBundle/Tests/Security/Authorization/PersonVoterTest.php b/src/Bundle/ChillPersonBundle/Tests/Security/Authorization/PersonVoterTest.php index f3caf6d36..43cf00452 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Security/Authorization/PersonVoterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Security/Authorization/PersonVoterTest.php @@ -29,9 +29,7 @@ use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; final class PersonVoterTest extends KernelTestCase { use PrepareCenterTrait; - use PrepareScopeTrait; - use PrepareUserTrait; /** diff --git a/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php b/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php index 8a312fb89..9a78934db 100644 --- a/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php +++ b/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php @@ -28,9 +28,7 @@ use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; final class ReportVoterTest extends KernelTestCase { use PrepareCenterTrait; - use PrepareScopeTrait; - use PrepareUserTrait; /**