mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
new cs rule: single_line_empty_body
Rule is added to the last version of php-cs-fixer
This commit is contained in:
@@ -25,9 +25,7 @@ use function in_array;
|
||||
|
||||
class AccompanyingPeriodValidityValidator extends ConstraintValidator
|
||||
{
|
||||
public function __construct(private readonly ActivityRepository $activityRepository, private readonly SocialIssueRender $socialIssueRender, private readonly TokenStorageInterface $token)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly ActivityRepository $activityRepository, private readonly SocialIssueRender $socialIssueRender, private readonly TokenStorageInterface $token) {}
|
||||
|
||||
public function validate($period, Constraint $constraint)
|
||||
{
|
||||
|
@@ -20,9 +20,7 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
|
||||
|
||||
class LocationValidityValidator extends ConstraintValidator
|
||||
{
|
||||
public function __construct(private readonly PersonRenderInterface $render)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly PersonRenderInterface $render) {}
|
||||
|
||||
public function validate($period, Constraint $constraint)
|
||||
{
|
||||
|
@@ -26,9 +26,7 @@ class ParticipationOverlapValidator extends ConstraintValidator
|
||||
{
|
||||
private const MAX_PARTICIPATION = 1;
|
||||
|
||||
public function __construct(private readonly PersonRenderInterface $personRender, private readonly ThirdPartyRender $thirdpartyRender)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly PersonRenderInterface $personRender, private readonly ThirdPartyRender $thirdpartyRender) {}
|
||||
|
||||
public function validate($participations, Constraint $constraint)
|
||||
{
|
||||
|
@@ -24,9 +24,7 @@ use function in_array;
|
||||
|
||||
class ResourceDuplicateCheckValidator extends ConstraintValidator
|
||||
{
|
||||
public function __construct(private readonly PersonRenderInterface $personRender, private readonly ThirdPartyRender $thirdpartyRender)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly PersonRenderInterface $personRender, private readonly ThirdPartyRender $thirdpartyRender) {}
|
||||
|
||||
public function validate($resources, Constraint $constraint)
|
||||
{
|
||||
|
@@ -26,9 +26,7 @@ use function count;
|
||||
*/
|
||||
class HouseholdMembershipSequentialValidator extends ConstraintValidator
|
||||
{
|
||||
public function __construct(private readonly PersonRenderInterface $render)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly PersonRenderInterface $render) {}
|
||||
|
||||
public function validate($person, Constraint $constraint)
|
||||
{
|
||||
|
@@ -20,9 +20,7 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
|
||||
|
||||
class RelationshipNoDuplicateValidator extends ConstraintValidator
|
||||
{
|
||||
public function __construct(private readonly RelationshipRepository $relationshipRepository)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly RelationshipRepository $relationshipRepository) {}
|
||||
|
||||
public function validate($value, Constraint $constraint)
|
||||
{
|
||||
|
Reference in New Issue
Block a user