mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix cs
This commit is contained in:
parent
ad8d40cb1c
commit
0378df42b6
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -43,8 +43,6 @@ class Address
|
|||||||
private $buildingName;
|
private $buildingName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var bool
|
|
||||||
*
|
|
||||||
* @ORM\Column(type="boolean")
|
* @ORM\Column(type="boolean")
|
||||||
* @Groups({"write"})
|
* @Groups({"write"})
|
||||||
*/
|
*/
|
||||||
|
@ -20,10 +20,9 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
class CommentEmbeddable
|
class CommentEmbeddable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string
|
|
||||||
* @ORM\Column(type="text", nullable=true)
|
* @ORM\Column(type="text", nullable=true)
|
||||||
*/
|
*/
|
||||||
private $comment;
|
private ?string $comment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var DateTime
|
* @var DateTime
|
||||||
@ -39,10 +38,7 @@ class CommentEmbeddable
|
|||||||
*/
|
*/
|
||||||
private $userId;
|
private $userId;
|
||||||
|
|
||||||
/**
|
public function getComment(): ?string
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getComment()
|
|
||||||
{
|
{
|
||||||
return $this->comment;
|
return $this->comment;
|
||||||
}
|
}
|
||||||
@ -68,9 +64,6 @@ class CommentEmbeddable
|
|||||||
return empty($this->getComment());
|
return empty($this->getComment());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $comment
|
|
||||||
*/
|
|
||||||
public function setComment(?string $comment)
|
public function setComment(?string $comment)
|
||||||
{
|
{
|
||||||
$this->comment = $comment;
|
$this->comment = $comment;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,6 +34,7 @@ use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
|||||||
class PersonResource implements TrackCreationInterface, TrackUpdateInterface
|
class PersonResource 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