php cs fixes

This commit is contained in:
2023-09-14 11:47:54 +02:00
parent 19789acbbe
commit b4f9501af5
110 changed files with 129 additions and 333 deletions

View File

@@ -20,8 +20,7 @@ readonly class AccompanyingPeriodStepChangeCronjob implements CronJobInterface
public function __construct(
private ClockInterface $clock,
private AccompanyingPeriodStepChangeRequestor $requestor,
) {
}
) {}
public function canRun(?CronJobExecution $cronJobExecution): bool
{

View File

@@ -23,8 +23,7 @@ class AccompanyingPeriodStepChangeMessageHandler implements MessageHandlerInterf
public function __construct(
private AccompanyingPeriodRepository $accompanyingPeriodRepository,
private AccompanyingPeriodStepChanger $changer,
) {
}
) {}
public function __invoke(AccompanyingPeriodStepChangeRequestMessage $message): void
{

View File

@@ -30,8 +30,7 @@ class AccompanyingPeriodStepChanger
private EntityManagerInterface $entityManager,
private LoggerInterface $logger,
private Registry $workflowRegistry,
) {
}
) {}
public function __invoke(AccompanyingPeriod $period, string $transition, ?string $workflowName = null): void
{

View File

@@ -43,8 +43,7 @@ final class AccompanyingCourseWorkController extends AbstractController
private readonly LoggerInterface $chillLogger,
private readonly TranslatableStringHelperInterface $translatableStringHelper,
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory
) {
}
) {}
/**
* @Route(

View File

@@ -20,9 +20,7 @@ use Symfony\Component\Security\Core\Security;
class AccompanyingCourseWorkEvaluationDocumentController extends AbstractController
{
public function __construct(private Security $security)
{
}
public function __construct(private Security $security) {}
/**
* @Route(

View File

@@ -28,8 +28,7 @@ final class SocialWorkSocialActionApiController extends ApiController
private readonly SocialIssueRepository $socialIssueRepository,
private readonly PaginatorFactory $paginator,
private readonly ClockInterface $clock,
) {
}
) {}
public function listBySocialIssueApi($id, Request $request)
{

View File

@@ -74,6 +74,5 @@ class AccompanyingPeriodInfo
* @ORM\Column(type="text")
*/
public readonly string $discriminator,
) {
}
) {}
}

View File

@@ -27,8 +27,7 @@ final readonly class JobWorkingOnCourseAggregator implements AggregatorInterface
public function __construct(
private UserJobRepositoryInterface $userJobRepository,
private TranslatableStringHelperInterface $translatableStringHelper,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder)
{

View File

@@ -28,8 +28,7 @@ final readonly class ScopeWorkingOnCourseAggregator implements AggregatorInterfa
public function __construct(
private ScopeRepositoryInterface $scopeRepository,
private TranslatableStringHelperInterface $translatableStringHelper,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder)
{

View File

@@ -27,8 +27,7 @@ final readonly class UserWorkingOnCourseAggregator implements AggregatorInterfac
public function __construct(
private UserRender $userRender,
private UserRepositoryInterface $userRepository,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder)
{

View File

@@ -24,8 +24,7 @@ final readonly class AgeAggregator implements AggregatorInterface, ExportElement
{
public function __construct(
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function addRole(): ?string
{

View File

@@ -28,8 +28,7 @@ final readonly class CenterAggregator implements AggregatorInterface
public function __construct(
private CenterRepositoryInterface $centerRepository,
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder)
{

View File

@@ -45,9 +45,7 @@ final class GenderAggregator implements AggregatorInterface
return Declarations::PERSON_TYPE;
}
public function buildForm(FormBuilderInterface $builder)
{
}
public function buildForm(FormBuilderInterface $builder) {}
public function getFormDefaultData(): array
{
return [];

View File

@@ -52,8 +52,7 @@ final readonly class ListAccompanyingPeriod implements ListInterface, GroupedExp
private EntityManagerInterface $entityManager,
private RollingDateConverterInterface $rollingDateConverter,
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder)
{

View File

@@ -146,9 +146,7 @@ class ListPersonDuplicate implements DirectExportInterface, ExportElementValidat
return PersonVoter::DUPLICATE;
}
public function validateForm($data, ExecutionContextInterface $context)
{
}
public function validateForm($data, ExecutionContextInterface $context) {}
protected function getHeaders(): array
{

View File

@@ -50,8 +50,7 @@ final readonly class ListPersonWithAccompanyingPeriodDetails implements ListInte
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
private EntityManagerInterface $entityManager,
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder)
{

View File

@@ -30,8 +30,7 @@ final readonly class HavingAnAccompanyingPeriodInfoWithinDatesFilter implements
{
public function __construct(
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder): void
{

View File

@@ -38,8 +38,7 @@ readonly class JobWorkingOnCourseFilter implements FilterInterface
private UserJobRepositoryInterface $userJobRepository,
private RollingDateConverterInterface $rollingDateConverter,
private TranslatableStringHelperInterface $translatableStringHelper,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder): void
{

View File

@@ -40,8 +40,7 @@ readonly class ScopeWorkingOnCourseFilter implements FilterInterface
private ScopeRepositoryInterface $scopeRepository,
private RollingDateConverterInterface $rollingDateConverter,
private TranslatableStringHelperInterface $translatableStringHelper,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder): void
{

View File

@@ -33,8 +33,7 @@ readonly class UserWorkingOnCourseFilter implements FilterInterface
public function __construct(
private UserRender $userRender,
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder): void
{

View File

@@ -24,8 +24,7 @@ final readonly class AccompanyingPeriodWorkEndDateBetweenDateFilter implements F
{
public function __construct(
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder): void
{

View File

@@ -24,8 +24,7 @@ final readonly class AccompanyingPeriodWorkStartDateBetweenDateFilter implements
{
public function __construct(
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder): void
{

View File

@@ -75,8 +75,7 @@ final readonly class ListAccompanyingPeriodHelper
private SocialIssueRender $socialIssueRender,
private TranslatableStringHelperInterface $translatableStringHelper,
private TranslatorInterface $translator,
) {
}
) {}
public function getQueryKeys($data)
{

View File

@@ -13,6 +13,4 @@ namespace Chill\PersonBundle\Repository\Person;
use Doctrine\Persistence\ObjectRepository;
interface PersonCenterHistoryInterface extends ObjectRepository
{
}
interface PersonCenterHistoryInterface extends ObjectRepository {}

View File

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

View File

@@ -21,8 +21,7 @@ class AccompanyingPeriodViewEntityInfoProvider implements ViewEntityInfoProvider
*/
private iterable $unions,
private 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

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

View File

@@ -19,6 +19,4 @@ use Chill\PersonBundle\Entity\Person;
*
* @extends ChillEntityRenderInterface<Person>
*/
interface PersonRenderInterface extends ChillEntityRenderInterface
{
}
interface PersonRenderInterface extends ChillEntityRenderInterface {}

View File

@@ -17,6 +17,4 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
* @internal
* @coversNothing
*/
final class WorkflowEventSubscriberTest extends KernelTestCase
{
}
final class WorkflowEventSubscriberTest extends KernelTestCase {}

View File

@@ -21,9 +21,7 @@ use function count;
*/
class Version20160422000000 extends AbstractMigration
{
public function down(Schema $schema): void
{
}
public function down(Schema $schema): void {}
public function up(Schema $schema): void
{

View File

@@ -19,9 +19,7 @@ use Doctrine\Migrations\AbstractMigration;
*/
final class Version20210419112619 extends AbstractMigration
{
public function down(Schema $schema): void
{
}
public function down(Schema $schema): void {}
public function getDescription(): string
{