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

@@ -74,9 +74,7 @@ class AccompanyingPeriodDocGenNormalizer implements ContextAwareNormalizerInterf
'pinnedComment' => AccompanyingPeriod\Comment::class,
];
public function __construct(private readonly TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, private readonly SocialIssueRender $socialIssueRender, private readonly ClosingMotiveRender $closingMotiveRender, private readonly ScopeResolverDispatcher $scopeResolverDispatcher)
{
}
public function __construct(private readonly TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, private readonly SocialIssueRender $socialIssueRender, private readonly ClosingMotiveRender $closingMotiveRender, private readonly ScopeResolverDispatcher $scopeResolverDispatcher) {}
/**
* @param AccompanyingPeriod|null $period

View File

@@ -32,9 +32,7 @@ class AccompanyingPeriodResourceNormalizer implements DenormalizerAwareInterface
use ObjectToPopulateTrait;
public function __construct(private readonly ResourceRepository $repository)
{
}
public function __construct(private readonly ResourceRepository $repository) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -40,9 +40,7 @@ class AccompanyingPeriodWorkDenormalizer implements ContextAwareDenormalizerInte
final public const GROUP_EDIT = 'accompanying_period_work:edit';
public function __construct(private readonly AccompanyingPeriodWorkRepository $workRepository, private readonly EntityManagerInterface $em)
{
}
public function __construct(private readonly AccompanyingPeriodWorkRepository $workRepository, private readonly EntityManagerInterface $em) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -26,9 +26,7 @@ class AccompanyingPeriodWorkEvaluationDocumentNormalizer implements ContextAware
private const SKIP = 'accompanying_period_work_evaluation_document_skip';
public function __construct(private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry)
{
}
public function __construct(private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry) {}
public function normalize($object, ?string $format = null, array $context = []): array
{

View File

@@ -27,9 +27,7 @@ class AccompanyingPeriodWorkEvaluationNormalizer implements ContextAwareNormaliz
private const IGNORE_EVALUATION = 'evaluation:ignore';
public function __construct(private readonly Registry $registry, private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor)
{
}
public function __construct(private readonly Registry $registry, private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor) {}
/**
* @param AccompanyingPeriodWorkEvaluation $object

View File

@@ -30,9 +30,7 @@ class AccompanyingPeriodWorkNormalizer implements ContextAwareNormalizerInterfac
private const IGNORE_WORK = 'ignore:work';
public function __construct(private readonly Registry $registry, private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor)
{
}
public function __construct(private readonly Registry $registry, private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor) {}
/**
* @param AccompanyingPeriodWork $object

View File

@@ -31,9 +31,7 @@ class MembersEditorNormalizer implements DenormalizerAwareInterface, Denormalize
{
use DenormalizerAwareTrait;
public function __construct(private readonly MembersEditorFactory $factory)
{
}
public function __construct(private readonly MembersEditorFactory $factory) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -47,9 +47,7 @@ class PersonDocGenNormalizer implements
private const CIRCULAR_KEY = 'person:circular';
public function __construct(private readonly PersonRenderInterface $personRender, private readonly RelationshipRepository $relationshipRepository, private readonly TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, private readonly SummaryBudgetInterface $summaryBudget)
{
}
public function __construct(private readonly PersonRenderInterface $personRender, private readonly RelationshipRepository $relationshipRepository, private readonly TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, private readonly SummaryBudgetInterface $summaryBudget) {}
public function normalize($person, $format = null, array $context = [])
{

View File

@@ -54,8 +54,7 @@ class PersonJsonNormalizer implements DenormalizerAwareInterface, NormalizerAwar
private readonly CenterResolverManagerInterface $centerResolverManager,
private readonly ResidentialAddressRepository $residentialAddressRepository,
private readonly PhoneNumberHelperInterface $phoneNumberHelper
) {
}
) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -19,6 +19,4 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
*/
interface PersonJsonNormalizerInterface extends
DenormalizerInterface,
NormalizerInterface
{
}
NormalizerInterface {}

View File

@@ -22,9 +22,7 @@ class RelationshipDocGenNormalizer implements ContextAwareNormalizerInterface, N
{
use NormalizerAwareTrait;
public function __construct(private readonly TranslatableStringHelperInterface $translatableStringHelper)
{
}
public function __construct(private readonly TranslatableStringHelperInterface $translatableStringHelper) {}
/**
* @param Relationship $relation

View File

@@ -21,9 +21,7 @@ class SocialActionNormalizer implements NormalizerAwareInterface, NormalizerInte
{
use NormalizerAwareTrait;
public function __construct(private readonly SocialActionRender $render)
{
}
public function __construct(private readonly SocialActionRender $render) {}
public function normalize($socialAction, $format = null, array $context = [])
{

View File

@@ -21,9 +21,7 @@ class SocialIssueNormalizer implements ContextAwareNormalizerInterface, Normaliz
{
use NormalizerAwareTrait;
public function __construct(private readonly SocialIssueRender $render)
{
}
public function __construct(private readonly SocialIssueRender $render) {}
public function normalize($socialIssue, $format = null, array $context = [])
{

View File

@@ -27,9 +27,7 @@ class WorkflowNormalizer implements ContextAwareNormalizerInterface, NormalizerA
private const IGNORE_ENTITY_WORKFLOW = 'ignore:entity_workflow';
public function __construct(private readonly Registry $registry, private readonly MetadataExtractor $metadataExtractor)
{
}
public function __construct(private readonly Registry $registry, private readonly MetadataExtractor $metadataExtractor) {}
/**
* @param EntityWorkflow $object