new cs rule: single_line_empty_body

Rule is added to the last version of php-cs-fixer
This commit is contained in:
2023-09-12 15:58:59 +02:00
parent b9231a91a3
commit d2323e91ca
606 changed files with 639 additions and 1804 deletions

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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)
{