mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
cs: Autofix coding standard based on updated rules.
This commit is contained in:
parent
4b1bf7ce23
commit
2e6d281bfc
@ -12,7 +12,6 @@ declare(strict_types=1);
|
|||||||
namespace Chill\ActivityBundle\Entity;
|
namespace Chill\ActivityBundle\Entity;
|
||||||
|
|
||||||
use Chill\ActivityBundle\Validator\Constraints as ActivityValidator;
|
use Chill\ActivityBundle\Validator\Constraints as ActivityValidator;
|
||||||
use Chill\DocStoreBundle\Entity\Document;
|
|
||||||
use Chill\DocStoreBundle\Entity\StoredObject;
|
use Chill\DocStoreBundle\Entity\StoredObject;
|
||||||
use Chill\MainBundle\Entity\Center;
|
use Chill\MainBundle\Entity\Center;
|
||||||
use Chill\MainBundle\Entity\Embeddable\CommentEmbeddable;
|
use Chill\MainBundle\Entity\Embeddable\CommentEmbeddable;
|
||||||
|
@ -24,7 +24,6 @@ use Chill\MainBundle\Templating\TranslatableStringHelperInterface;
|
|||||||
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
||||||
use Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
use Chill\PersonBundle\Templating\Entity\PersonRender;
|
use Chill\PersonBundle\Templating\Entity\PersonRender;
|
||||||
use DateTime;
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||||
@ -33,8 +32,6 @@ use Symfony\Component\Form\FormBuilderInterface;
|
|||||||
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||||
|
|
||||||
use function array_key_exists;
|
|
||||||
|
|
||||||
class ActivityContext implements
|
class ActivityContext implements
|
||||||
DocGeneratorContextWithAdminFormInterface,
|
DocGeneratorContextWithAdminFormInterface,
|
||||||
DocGeneratorContextWithPublicFormInterface
|
DocGeneratorContextWithPublicFormInterface
|
||||||
|
@ -29,9 +29,13 @@ use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
|
|||||||
final class ActivityVoterTest extends KernelTestCase
|
final class ActivityVoterTest extends KernelTestCase
|
||||||
{
|
{
|
||||||
use PrepareActivityTrait;
|
use PrepareActivityTrait;
|
||||||
|
|
||||||
use PrepareCenterTrait;
|
use PrepareCenterTrait;
|
||||||
|
|
||||||
use PreparePersonTrait;
|
use PreparePersonTrait;
|
||||||
|
|
||||||
use PrepareScopeTrait;
|
use PrepareScopeTrait;
|
||||||
|
|
||||||
use PrepareUserTrait;
|
use PrepareUserTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,6 +37,7 @@ use function count;
|
|||||||
class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
|
class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
|
||||||
{
|
{
|
||||||
use TrackCreationTrait;
|
use TrackCreationTrait;
|
||||||
|
|
||||||
use TrackUpdateTrait;
|
use TrackUpdateTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,6 +24,7 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
class EntityWorkflowComment implements TrackCreationInterface, TrackUpdateInterface
|
class EntityWorkflowComment implements TrackCreationInterface, TrackUpdateInterface
|
||||||
{
|
{
|
||||||
use TrackCreationTrait;
|
use TrackCreationTrait;
|
||||||
|
|
||||||
use TrackUpdateTrait;
|
use TrackUpdateTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,7 +44,9 @@ use function count;
|
|||||||
final class ExportManagerTest extends KernelTestCase
|
final class ExportManagerTest extends KernelTestCase
|
||||||
{
|
{
|
||||||
use PrepareCenterTrait;
|
use PrepareCenterTrait;
|
||||||
|
|
||||||
use PrepareScopeTrait;
|
use PrepareScopeTrait;
|
||||||
|
|
||||||
use PrepareUserTrait;
|
use PrepareUserTrait;
|
||||||
|
|
||||||
private Prophet $prophet;
|
private Prophet $prophet;
|
||||||
|
@ -34,8 +34,11 @@ use function in_array;
|
|||||||
final class AuthorizationHelperTest extends KernelTestCase
|
final class AuthorizationHelperTest extends KernelTestCase
|
||||||
{
|
{
|
||||||
use PrepareCenterTrait;
|
use PrepareCenterTrait;
|
||||||
|
|
||||||
use PrepareScopeTrait;
|
use PrepareScopeTrait;
|
||||||
|
|
||||||
use PrepareUserTrait;
|
use PrepareUserTrait;
|
||||||
|
|
||||||
use ProphecyTrait;
|
use ProphecyTrait;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
@ -629,7 +629,7 @@ class AccompanyingPeriod implements
|
|||||||
return [[self::STEP_DRAFT, self::STEP_CONFIRMED]];
|
return [[self::STEP_DRAFT, self::STEP_CONFIRMED]];
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new LogicException('no validation group permitted with this step: '.$this->getStep());
|
throw new LogicException('no validation group permitted with this step: ' . $this->getStep());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
|
@ -33,6 +33,7 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||||||
class HouseholdComposition implements TrackCreationInterface, TrackUpdateInterface
|
class HouseholdComposition implements TrackCreationInterface, TrackUpdateInterface
|
||||||
{
|
{
|
||||||
use TrackCreationTrait;
|
use TrackCreationTrait;
|
||||||
|
|
||||||
use TrackUpdateTrait;
|
use TrackUpdateTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,6 +29,7 @@ use function count;
|
|||||||
class AccompanyingPeriodResourceNormalizer implements DenormalizerAwareInterface, DenormalizerInterface
|
class AccompanyingPeriodResourceNormalizer implements DenormalizerAwareInterface, DenormalizerInterface
|
||||||
{
|
{
|
||||||
use DenormalizerAwareTrait;
|
use DenormalizerAwareTrait;
|
||||||
|
|
||||||
use ObjectToPopulateTrait;
|
use ObjectToPopulateTrait;
|
||||||
|
|
||||||
private ResourceRepository $repository;
|
private ResourceRepository $repository;
|
||||||
|
@ -33,6 +33,7 @@ use function is_array;
|
|||||||
class AccompanyingPeriodWorkDenormalizer implements ContextAwareDenormalizerInterface, DenormalizerAwareInterface
|
class AccompanyingPeriodWorkDenormalizer implements ContextAwareDenormalizerInterface, DenormalizerAwareInterface
|
||||||
{
|
{
|
||||||
use DenormalizerAwareTrait;
|
use DenormalizerAwareTrait;
|
||||||
|
|
||||||
use ObjectToPopulateTrait;
|
use ObjectToPopulateTrait;
|
||||||
|
|
||||||
public const GROUP_CREATE = 'accompanying_period_work:create';
|
public const GROUP_CREATE = 'accompanying_period_work:create';
|
||||||
|
@ -40,7 +40,9 @@ class PersonJsonNormalizer implements
|
|||||||
NormalizerInterface
|
NormalizerInterface
|
||||||
{
|
{
|
||||||
use DenormalizerAwareTrait;
|
use DenormalizerAwareTrait;
|
||||||
|
|
||||||
use NormalizerAwareTrait;
|
use NormalizerAwareTrait;
|
||||||
|
|
||||||
use ObjectToPopulateTrait;
|
use ObjectToPopulateTrait;
|
||||||
|
|
||||||
private CenterResolverManagerInterface $centerResolverManager;
|
private CenterResolverManagerInterface $centerResolverManager;
|
||||||
|
@ -29,7 +29,9 @@ use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
|
|||||||
final class PersonVoterTest extends KernelTestCase
|
final class PersonVoterTest extends KernelTestCase
|
||||||
{
|
{
|
||||||
use PrepareCenterTrait;
|
use PrepareCenterTrait;
|
||||||
|
|
||||||
use PrepareScopeTrait;
|
use PrepareScopeTrait;
|
||||||
|
|
||||||
use PrepareUserTrait;
|
use PrepareUserTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +28,9 @@ use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
|
|||||||
final class ReportVoterTest extends KernelTestCase
|
final class ReportVoterTest extends KernelTestCase
|
||||||
{
|
{
|
||||||
use PrepareCenterTrait;
|
use PrepareCenterTrait;
|
||||||
|
|
||||||
use PrepareScopeTrait;
|
use PrepareScopeTrait;
|
||||||
|
|
||||||
use PrepareUserTrait;
|
use PrepareUserTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user