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

@@ -22,9 +22,7 @@ use Psr\Log\LoggerInterface;
class OldDraftAccompanyingPeriodRemover implements OldDraftAccompanyingPeriodRemoverInterface
{
public function __construct(private readonly EntityManagerInterface $em, private readonly LoggerInterface $logger)
{
}
public function __construct(private readonly EntityManagerInterface $em, private readonly LoggerInterface $logger) {}
public function remove(DateInterval $interval): void
{

View File

@@ -62,8 +62,7 @@ class AccompanyingPeriodContext implements
private readonly BaseContextData $baseContextData,
private readonly ThirdPartyRender $thirdPartyRender,
private readonly ThirdPartyRepository $thirdPartyRepository
) {
}
) {}
public function adminFormReverseTransform(array $data): array
{

View File

@@ -29,9 +29,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
*/
class AccompanyingPeriodWorkContext implements DocGeneratorContextWithPublicFormInterface
{
public function __construct(private readonly AccompanyingPeriodContext $periodContext, private readonly NormalizerInterface $normalizer)
{
}
public function __construct(private readonly AccompanyingPeriodContext $periodContext, private readonly NormalizerInterface $normalizer) {}
public function adminFormReverseTransform(array $data): array
{

View File

@@ -38,9 +38,7 @@ class AccompanyingPeriodWorkEvaluationContext implements
DocGeneratorContextWithAdminFormInterface,
DocGeneratorContextWithPublicFormInterface
{
public function __construct(private readonly AccompanyingPeriodWorkContext $accompanyingPeriodWorkContext, private readonly EntityManagerInterface $em, private readonly EvaluationRepository $evaluationRepository, private readonly NormalizerInterface $normalizer, private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly ThirdPartyRender $thirdPartyRender, private readonly TranslatorInterface $translator)
{
}
public function __construct(private readonly AccompanyingPeriodWorkContext $accompanyingPeriodWorkContext, private readonly EntityManagerInterface $em, private readonly EvaluationRepository $evaluationRepository, private readonly NormalizerInterface $normalizer, private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly ThirdPartyRender $thirdPartyRender, private readonly TranslatorInterface $translator) {}
public function adminFormReverseTransform(array $data): array
{

View File

@@ -31,8 +31,7 @@ class PersonContextWithThirdParty implements DocGeneratorContextWithAdminFormInt
private readonly PersonContextInterface $personContext,
private readonly NormalizerInterface $normalizer,
private readonly ThirdPartyRepository $thirdPartyRepository
) {
}
) {}
public function adminFormReverseTransform(array $data): array
{

View File

@@ -21,8 +21,7 @@ class AccompanyingPeriodViewEntityInfoProvider implements ViewEntityInfoProvider
*/
private readonly iterable $unions,
private readonly AccompanyingPeriodInfoQueryBuilder $builder,
) {
}
) {}
public function getViewQuery(): string
{

View File

@@ -31,8 +31,7 @@ final readonly class AccompanyingPeriodWorkEvaluationGenericDocProvider implemen
public function __construct(
private Security $security,
private EntityManagerInterface $entityManager,
) {
}
) {}
public function buildFetchQueryForAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
{

View File

@@ -21,8 +21,7 @@ final readonly class AccompanyingPeriodWorkEvaluationGenericDocRenderer implemen
{
public function __construct(
private AccompanyingPeriodWorkEvaluationDocumentRepository $accompanyingPeriodWorkEvaluationDocumentRepository,
) {
}
) {}
public function supports(GenericDocDTO $genericDocDTO, $options = []): bool
{

View File

@@ -30,9 +30,7 @@ use function count;
final readonly class SocialWorkMetadata implements SocialWorkMetadataInterface
{
public function __construct(private SocialIssueRepository $socialIssueRepository, private SocialActionRepository $socialActionRepository, private GoalRepository $goalRepository, private ResultRepository $resultRepository, private EvaluationRepository $evaluationRepository, private EntityManagerInterface $entityManager)
{
}
public function __construct(private SocialIssueRepository $socialIssueRepository, private SocialActionRepository $socialActionRepository, private GoalRepository $goalRepository, private ResultRepository $resultRepository, private EvaluationRepository $evaluationRepository, private EntityManagerInterface $entityManager) {}
/**
* @throws Exception

View File

@@ -11,6 +11,4 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Service\Import;
interface SocialWorkMetadataInterface extends ChillImporter
{
}
interface SocialWorkMetadataInterface extends ChillImporter {}