update cs

This commit is contained in:
2023-09-27 16:45:42 +02:00
parent 2e5954f6fd
commit 27c1bb03ff
116 changed files with 343 additions and 215 deletions

View File

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

View File

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

View File

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

View File

@@ -19,7 +19,8 @@ class PersonMoveCenterHistoryHandler implements PersonMoveSqlHandlerInterface
{
public function __construct(
private PersonCenterHistoryRepository $centerHistoryRepository,
) {}
) {
}
public function supports(string $className, string $field): bool
{

View File

@@ -39,7 +39,8 @@ class PersonMove
private EntityManagerInterface $em,
private PersonMoveManager $personMoveManager,
private EventDispatcherInterface $eventDispatcher
) {}
) {
}
/**
* Return the sql used to move or delete entities associated to a person to

View File

@@ -20,7 +20,8 @@ class PersonMoveManager
* @var iterable<PersonMoveSqlHandlerInterface>
*/
private iterable $handlers,
) {}
) {
}
/**
* @param class-string $className

View File

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

View File

@@ -20,7 +20,9 @@ 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,7 +28,8 @@ 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,5 +74,6 @@ class AccompanyingPeriodInfo
* @ORM\Column(type="text")
*/
public readonly string $discriminator,
) {}
) {
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -45,7 +45,9 @@ 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,7 +52,8 @@ final readonly class ListAccompanyingPeriod implements ListInterface, GroupedExp
private EntityManagerInterface $entityManager,
private RollingDateConverterInterface $rollingDateConverter,
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
) {}
) {
}
public function buildForm(FormBuilderInterface $builder)
{

View File

@@ -146,7 +146,9 @@ 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,7 +50,8 @@ final readonly class ListPersonWithAccompanyingPeriodDetails implements ListInte
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
private EntityManagerInterface $entityManager,
private RollingDateConverterInterface $rollingDateConverter,
) {}
) {
}
public function buildForm(FormBuilderInterface $builder)
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -21,7 +21,9 @@ 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,7 +19,9 @@ 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
{