mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
php cs fixes
This commit is contained in:
parent
ac9704f154
commit
7ca2380dad
@ -13,6 +13,4 @@ namespace Chill\ActivityBundle;
|
|||||||
|
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||||
|
|
||||||
class ChillActivityBundle extends Bundle
|
class ChillActivityBundle extends Bundle {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -72,8 +72,7 @@ final class ActivityController extends AbstractController
|
|||||||
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory,
|
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory,
|
||||||
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
||||||
private readonly PaginatorFactory $paginatorFactory,
|
private readonly PaginatorFactory $paginatorFactory,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a Activity entity.
|
* Deletes a Activity entity.
|
||||||
|
@ -36,9 +36,7 @@ class AvgActivityDuration implements ExportInterface, GroupedExportInterface
|
|||||||
$this->repository = $em->getRepository(Activity::class);
|
$this->repository = $em->getRepository(Activity::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -36,9 +36,7 @@ class CountActivity implements ExportInterface, GroupedExportInterface
|
|||||||
$this->repository = $em->getRepository(Activity::class);
|
$this->repository = $em->getRepository(Activity::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -32,9 +32,7 @@ class CountActivity implements ExportInterface, GroupedExportInterface
|
|||||||
$this->activityRepository = $activityRepository;
|
$this->activityRepository = $activityRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -50,9 +50,7 @@ class StatActivityDuration implements ExportInterface, GroupedExportInterface
|
|||||||
$this->activityRepository = $activityRepository;
|
$this->activityRepository = $activityRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -104,9 +104,7 @@ class ListActivityHelper
|
|||||||
->addGroupBy('location.id');
|
->addGroupBy('location.id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAllowedFormattersTypes()
|
public function getAllowedFormattersTypes()
|
||||||
{
|
{
|
||||||
|
@ -23,8 +23,7 @@ final readonly class PeriodHavingActivityBetweenDatesFilter implements FilterInt
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function getTitle()
|
public function getTitle()
|
||||||
{
|
{
|
||||||
|
@ -47,8 +47,7 @@ final readonly class ActivityACLAwareRepository implements ActivityACLAwareRepos
|
|||||||
private EntityManagerInterface $em,
|
private EntityManagerInterface $em,
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private RequestStack $requestStack,
|
private RequestStack $requestStack,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws NonUniqueResultException
|
* @throws NonUniqueResultException
|
||||||
|
@ -43,8 +43,7 @@ final readonly class ActivityDocumentACLAwareRepository implements ActivityDocum
|
|||||||
private CenterResolverManagerInterface $centerResolverManager,
|
private CenterResolverManagerInterface $centerResolverManager,
|
||||||
private AuthorizationHelperForCurrentUserInterface $authorizationHelperForCurrentUser,
|
private AuthorizationHelperForCurrentUserInterface $authorizationHelperForCurrentUser,
|
||||||
private Security $security
|
private Security $security
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildFetchQueryActivityDocumentLinkedToPersonFromPersonContext(Person $person, ?DateTimeImmutable $startDate = null, ?DateTimeImmutable $endDate = null, ?string $content = null): FetchQueryInterface
|
public function buildFetchQueryActivityDocumentLinkedToPersonFromPersonContext(Person $person, ?DateTimeImmutable $startDate = null, ?DateTimeImmutable $endDate = null, ?string $content = null): FetchQueryInterface
|
||||||
{
|
{
|
||||||
|
@ -36,8 +36,7 @@ final class AccompanyingPeriodActivityGenericDocProvider implements GenericDocFo
|
|||||||
private EntityManagerInterface $em,
|
private EntityManagerInterface $em,
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private ActivityDocumentACLAwareRepositoryInterface $activityDocumentACLAwareRepository,
|
private ActivityDocumentACLAwareRepositoryInterface $activityDocumentACLAwareRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildFetchQueryForAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod, ?DateTimeImmutable $startDate = null, ?DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
|
public function buildFetchQueryForAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod, ?DateTimeImmutable $startDate = null, ?DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
|
||||||
{
|
{
|
||||||
|
@ -29,8 +29,7 @@ final readonly class PersonActivityGenericDocProvider implements GenericDocForPe
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private ActivityDocumentACLAwareRepositoryInterface $personActivityDocumentACLAwareRepository,
|
private ActivityDocumentACLAwareRepositoryInterface $personActivityDocumentACLAwareRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildFetchQueryForPerson(Person $person, ?DateTimeImmutable $startDate = null, ?DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
|
public function buildFetchQueryForPerson(Person $person, ?DateTimeImmutable $startDate = null, ?DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
|
||||||
{
|
{
|
||||||
|
@ -13,6 +13,4 @@ namespace Chill\AsideActivityBundle;
|
|||||||
|
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||||
|
|
||||||
class ChillAsideActivityBundle extends Bundle
|
class ChillAsideActivityBundle extends Bundle {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -20,9 +20,7 @@ use Symfony\Component\Form\FormBuilderInterface;
|
|||||||
|
|
||||||
class ByLocationAggregator implements AggregatorInterface
|
class ByLocationAggregator implements AggregatorInterface
|
||||||
{
|
{
|
||||||
public function __construct(private LocationRepository $locationRepository)
|
public function __construct(private LocationRepository $locationRepository) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
|
@ -31,9 +31,7 @@ class AvgAsideActivityDuration implements ExportInterface, GroupedExportInterfac
|
|||||||
$this->repository = $repository;
|
$this->repository = $repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -31,9 +31,7 @@ class CountAsideActivity implements ExportInterface, GroupedExportInterface
|
|||||||
$this->repository = $repository;
|
$this->repository = $repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -72,9 +72,7 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface
|
|||||||
$this->translatableStringHelper = $translatableStringHelper;
|
$this->translatableStringHelper = $translatableStringHelper;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
|
@ -31,9 +31,7 @@ class SumAsideActivityDuration implements ExportInterface, GroupedExportInterfac
|
|||||||
$this->repository = $repository;
|
$this->repository = $repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -26,8 +26,7 @@ final readonly class ByLocationFilter implements FilterInterface
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private Security $security
|
private Security $security
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
|
@ -28,8 +28,7 @@ final readonly class MSUserAbsenceReader implements MSUserAbsenceReaderInterface
|
|||||||
private HttpClientInterface $machineHttpClient,
|
private HttpClientInterface $machineHttpClient,
|
||||||
private MapCalendarToUser $mapCalendarToUser,
|
private MapCalendarToUser $mapCalendarToUser,
|
||||||
private ClockInterface $clock,
|
private ClockInterface $clock,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throw UserAbsenceSyncException when the data cannot be reached or is not valid from microsoft
|
* @throw UserAbsenceSyncException when the data cannot be reached or is not valid from microsoft
|
||||||
|
@ -21,8 +21,7 @@ readonly class MSUserAbsenceSync
|
|||||||
private MSUserAbsenceReaderInterface $absenceReader,
|
private MSUserAbsenceReaderInterface $absenceReader,
|
||||||
private ClockInterface $clock,
|
private ClockInterface $clock,
|
||||||
private LoggerInterface $logger,
|
private LoggerInterface $logger,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function syncUserAbsence(User $user): void
|
public function syncUserAbsence(User $user): void
|
||||||
{
|
{
|
||||||
|
@ -48,23 +48,13 @@ class NullRemoteCalendarConnector implements RemoteCalendarConnectorInterface
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function removeCalendar(string $remoteId, array $remoteAttributes, User $user, ?CalendarRange $associatedCalendarRange = null): void
|
public function removeCalendar(string $remoteId, array $remoteAttributes, User $user, ?CalendarRange $associatedCalendarRange = null): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function removeCalendarRange(string $remoteId, array $remoteAttributes, User $user): void
|
public function removeCalendarRange(string $remoteId, array $remoteAttributes, User $user): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function syncCalendar(Calendar $calendar, string $action, ?CalendarRange $previousCalendarRange, ?User $previousMainUser, ?array $oldInvites, ?array $newInvites): void
|
public function syncCalendar(Calendar $calendar, string $action, ?CalendarRange $previousCalendarRange, ?User $previousMainUser, ?array $oldInvites, ?array $newInvites): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function syncCalendarRange(CalendarRange $calendarRange): void
|
public function syncCalendarRange(CalendarRange $calendarRange): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function syncInvite(Invite $invite): void
|
public function syncInvite(Invite $invite): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,4 @@ use Symfony\Component\Form\FormBuilderInterface;
|
|||||||
* @extends DocGeneratorContextWithPublicFormInterface<Calendar>
|
* @extends DocGeneratorContextWithPublicFormInterface<Calendar>
|
||||||
* @extends DocGeneratorContextWithAdminFormInterface<Calendar>
|
* @extends DocGeneratorContextWithAdminFormInterface<Calendar>
|
||||||
*/
|
*/
|
||||||
interface CalendarContextInterface extends DocGeneratorContextWithPublicFormInterface, DocGeneratorContextWithAdminFormInterface
|
interface CalendarContextInterface extends DocGeneratorContextWithPublicFormInterface, DocGeneratorContextWithAdminFormInterface {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -39,8 +39,7 @@ final readonly class AccompanyingPeriodCalendarGenericDocProvider implements Gen
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private EntityManagerInterface $em
|
private EntityManagerInterface $em
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws MappingException
|
* @throws MappingException
|
||||||
|
@ -39,8 +39,7 @@ final readonly class PersonCalendarGenericDocProvider implements GenericDocForPe
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private EntityManagerInterface $em
|
private EntityManagerInterface $em
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
private function addWhereClausesToQuery(FetchQuery $query, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null): FetchQuery
|
private function addWhereClausesToQuery(FetchQuery $query, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null): FetchQuery
|
||||||
{
|
{
|
||||||
|
@ -16,9 +16,7 @@ use Symfony\Component\Form\FormBuilderInterface;
|
|||||||
|
|
||||||
class CustomFieldsTitleType extends AbstractType
|
class CustomFieldsTitleType extends AbstractType
|
||||||
{
|
{
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getBlockPrefix()
|
public function getBlockPrefix()
|
||||||
{
|
{
|
||||||
|
@ -31,8 +31,7 @@ final readonly class GenericDocForAccompanyingPeriodController
|
|||||||
private PaginatorFactory $paginator,
|
private PaginatorFactory $paginator,
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private EngineInterface $twig,
|
private EngineInterface $twig,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param AccompanyingPeriod $accompanyingPeriod
|
* @param AccompanyingPeriod $accompanyingPeriod
|
||||||
|
@ -30,8 +30,7 @@ final readonly class GenericDocForPerson
|
|||||||
private PaginatorFactory $paginator,
|
private PaginatorFactory $paginator,
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private EngineInterface $twig,
|
private EngineInterface $twig,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws \Doctrine\DBAL\Exception
|
* @throws \Doctrine\DBAL\Exception
|
||||||
|
@ -54,8 +54,7 @@ class FetchQuery implements FetchQueryInterface
|
|||||||
private array $selectIdentifierTypes = [],
|
private array $selectIdentifierTypes = [],
|
||||||
private array $selectDateParams = [],
|
private array $selectDateParams = [],
|
||||||
private array $selectDateTypes = [],
|
private array $selectDateTypes = [],
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function addJoinClause(string $sql, array $params = [], array $types = []): int
|
public function addJoinClause(string $sql, array $params = [], array $types = []): int
|
||||||
{
|
{
|
||||||
|
@ -21,8 +21,7 @@ final readonly class GenericDocDTO
|
|||||||
public array $identifiers,
|
public array $identifiers,
|
||||||
public \DateTimeImmutable $docDate,
|
public \DateTimeImmutable $docDate,
|
||||||
public AccompanyingPeriod|Person $linked,
|
public AccompanyingPeriod|Person $linked,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function getContext(): string
|
public function getContext(): string
|
||||||
{
|
{
|
||||||
|
@ -32,8 +32,7 @@ final readonly class AccompanyingCourseDocumentGenericDocProvider implements Gen
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private EntityManagerInterface $entityManager,
|
private EntityManagerInterface $entityManager,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildFetchQueryForAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
|
public function buildFetchQueryForAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
|
||||||
{
|
{
|
||||||
|
@ -28,8 +28,7 @@ final readonly class PersonDocumentGenericDocProvider implements GenericDocForPe
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private PersonDocumentACLAwareRepositoryInterface $personDocumentACLAwareRepository,
|
private PersonDocumentACLAwareRepositoryInterface $personDocumentACLAwareRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildFetchQueryForPerson(
|
public function buildFetchQueryForPerson(
|
||||||
Person $person,
|
Person $person,
|
||||||
|
@ -24,8 +24,7 @@ final readonly class AccompanyingCourseDocumentGenericDocRenderer implements Gen
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private AccompanyingCourseDocumentRepository $accompanyingCourseDocumentRepository,
|
private AccompanyingCourseDocumentRepository $accompanyingCourseDocumentRepository,
|
||||||
private PersonDocumentRepository $personDocumentRepository,
|
private PersonDocumentRepository $personDocumentRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function supports(GenericDocDTO $genericDocDTO, $options = []): bool
|
public function supports(GenericDocDTO $genericDocDTO, $options = []): bool
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,7 @@ final readonly class GenericDocExtensionRuntime implements RuntimeExtensionInter
|
|||||||
* @var list<GenericDocRendererInterface>
|
* @var list<GenericDocRendererInterface>
|
||||||
*/
|
*/
|
||||||
private iterable $renderers,
|
private iterable $renderers,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws RuntimeError
|
* @throws RuntimeError
|
||||||
|
@ -38,8 +38,7 @@ final readonly class PersonDocumentACLAwareRepository implements PersonDocumentA
|
|||||||
private CenterResolverManagerInterface $centerResolverManager,
|
private CenterResolverManagerInterface $centerResolverManager,
|
||||||
private AuthorizationHelperForCurrentUserInterface $authorizationHelperForCurrentUser,
|
private AuthorizationHelperForCurrentUserInterface $authorizationHelperForCurrentUser,
|
||||||
private Security $security,
|
private Security $security,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildQueryByPerson(Person $person): QueryBuilder
|
public function buildQueryByPerson(Person $person): QueryBuilder
|
||||||
{
|
{
|
||||||
|
@ -13,6 +13,4 @@ namespace Chill\EventBundle;
|
|||||||
|
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||||
|
|
||||||
class ChillEventBundle extends Bundle
|
class ChillEventBundle extends Bundle {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -16,6 +16,4 @@ use Doctrine\ORM\EntityRepository;
|
|||||||
/**
|
/**
|
||||||
* Class EventRepository.
|
* Class EventRepository.
|
||||||
*/
|
*/
|
||||||
class EventRepository extends EntityRepository
|
class EventRepository extends EntityRepository {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -13,6 +13,4 @@ namespace Chill\FamilyMembersBundle;
|
|||||||
|
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||||
|
|
||||||
class ChillAMLIFamilyMembersBundle extends Bundle
|
class ChillAMLIFamilyMembersBundle extends Bundle {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -150,9 +150,7 @@ abstract class AbstractCRUDController extends AbstractController
|
|||||||
return new $class();
|
return new $class();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function customizeQuery(string $action, Request $request, $query): void
|
protected function customizeQuery(string $action, Request $request, $query): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getActionConfig(string $action)
|
protected function getActionConfig(string $action)
|
||||||
{
|
{
|
||||||
|
@ -242,13 +242,9 @@ class CRUDController extends AbstractController
|
|||||||
/**
|
/**
|
||||||
* Customize the form created by createFormFor.
|
* Customize the form created by createFormFor.
|
||||||
*/
|
*/
|
||||||
protected function customizeForm(string $action, FormInterface $form)
|
protected function customizeForm(string $action, FormInterface $form) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function customizeQuery(string $action, Request $request, $query): void
|
protected function customizeQuery(string $action, Request $request, $query): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $id
|
* @param $id
|
||||||
@ -927,9 +923,7 @@ class CRUDController extends AbstractController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function onFormValid(string $action, object $entity, FormInterface $form, Request $request)
|
protected function onFormValid(string $action, object $entity, FormInterface $form, Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $action
|
* @param $action
|
||||||
@ -952,77 +946,55 @@ class CRUDController extends AbstractController
|
|||||||
/**
|
/**
|
||||||
* @param $entity
|
* @param $entity
|
||||||
*/
|
*/
|
||||||
protected function onPostFlush(string $action, $entity, FormInterface $form, Request $request)
|
protected function onPostFlush(string $action, $entity, FormInterface $form, Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* method used by indexAction.
|
* method used by indexAction.
|
||||||
*
|
*
|
||||||
* @param mixed $query
|
* @param mixed $query
|
||||||
*/
|
*/
|
||||||
protected function onPostIndexBuildQuery(string $action, Request $request, int $totalItems, PaginatorInterface $paginator, $query)
|
protected function onPostIndexBuildQuery(string $action, Request $request, int $totalItems, PaginatorInterface $paginator, $query) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* method used by indexAction.
|
* method used by indexAction.
|
||||||
*
|
*
|
||||||
* @param mixed $entities
|
* @param mixed $entities
|
||||||
*/
|
*/
|
||||||
protected function onPostIndexFetchQuery(string $action, Request $request, int $totalItems, PaginatorInterface $paginator, $entities)
|
protected function onPostIndexFetchQuery(string $action, Request $request, int $totalItems, PaginatorInterface $paginator, $entities) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $entity
|
* @param $entity
|
||||||
*/
|
*/
|
||||||
protected function onPostPersist(string $action, $entity, FormInterface $form, Request $request)
|
protected function onPostPersist(string $action, $entity, FormInterface $form, Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $entity
|
* @param $entity
|
||||||
*/
|
*/
|
||||||
protected function onPostRemove(string $action, $entity, FormInterface $form, Request $request)
|
protected function onPostRemove(string $action, $entity, FormInterface $form, Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function onPreDelete(string $action, Request $request)
|
protected function onPreDelete(string $action, Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $entity
|
* @param $entity
|
||||||
*/
|
*/
|
||||||
protected function onPreFlush(string $action, $entity, FormInterface $form, Request $request)
|
protected function onPreFlush(string $action, $entity, FormInterface $form, Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function onPreIndex(string $action, Request $request)
|
protected function onPreIndex(string $action, Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* method used by indexAction.
|
* method used by indexAction.
|
||||||
*/
|
*/
|
||||||
protected function onPreIndexBuildQuery(string $action, Request $request, int $totalItems, PaginatorInterface $paginator)
|
protected function onPreIndexBuildQuery(string $action, Request $request, int $totalItems, PaginatorInterface $paginator) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $entity
|
* @param $entity
|
||||||
*/
|
*/
|
||||||
protected function onPrePersist(string $action, $entity, FormInterface $form, Request $request)
|
protected function onPrePersist(string $action, $entity, FormInterface $form, Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $entity
|
* @param $entity
|
||||||
*/
|
*/
|
||||||
protected function onPreRemove(string $action, $entity, FormInterface $form, Request $request)
|
protected function onPreRemove(string $action, $entity, FormInterface $form, Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add ordering fields in the query build by self::queryEntities.
|
* Add ordering fields in the query build by self::queryEntities.
|
||||||
|
@ -16,6 +16,4 @@ use Symfony\Component\Form\AbstractType;
|
|||||||
/**
|
/**
|
||||||
* Class CRUDDeleteEntityForm.
|
* Class CRUDDeleteEntityForm.
|
||||||
*/
|
*/
|
||||||
class CRUDDeleteEntityForm extends AbstractType
|
class CRUDDeleteEntityForm extends AbstractType {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -213,14 +213,8 @@ class LoadPostalCodesCommand extends Command
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ExistingPostalCodeException extends Exception
|
class ExistingPostalCodeException extends Exception {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
class CountryCodeNotFoundException extends Exception
|
class CountryCodeNotFoundException extends Exception {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
class PostalCodeNotValidException extends Exception
|
class PostalCodeNotValidException extends Exception {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -13,6 +13,4 @@ namespace Chill\MainBundle\Controller;
|
|||||||
|
|
||||||
use Chill\MainBundle\CRUD\Controller\CRUDController;
|
use Chill\MainBundle\CRUD\Controller\CRUDController;
|
||||||
|
|
||||||
class LocationTypeController extends CRUDController
|
class LocationTypeController extends CRUDController {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -44,7 +44,5 @@ class LoginController extends AbstractController
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function LoginCheckAction(Request $request)
|
public function LoginCheckAction(Request $request) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -50,8 +50,7 @@ final class PermissionsGroupController extends AbstractController
|
|||||||
private readonly EntityManagerInterface $em,
|
private readonly EntityManagerInterface $em,
|
||||||
private readonly PermissionsGroupRepository $permissionsGroupRepository,
|
private readonly PermissionsGroupRepository $permissionsGroupRepository,
|
||||||
private readonly RoleScopeRepository $roleScopeRepository,
|
private readonly RoleScopeRepository $roleScopeRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
|
@ -27,8 +27,7 @@ final readonly class UserExportController
|
|||||||
private UserRepositoryInterface $userRepository,
|
private UserRepositoryInterface $userRepository,
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private TranslatorInterface $translator,
|
private TranslatorInterface $translator,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws \League\Csv\CannotInsertRecord
|
* @throws \League\Csv\CannotInsertRecord
|
||||||
|
@ -175,9 +175,7 @@ class User implements UserInterface
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function eraseCredentials()
|
public function eraseCredentials() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAbsenceStart(): ?DateTimeImmutable
|
public function getAbsenceStart(): ?DateTimeImmutable
|
||||||
{
|
{
|
||||||
|
@ -26,8 +26,7 @@ final readonly class ExportFormHelper
|
|||||||
private AuthorizationHelperForCurrentUserInterface $authorizationHelper,
|
private AuthorizationHelperForCurrentUserInterface $authorizationHelper,
|
||||||
private ExportManager $exportManager,
|
private ExportManager $exportManager,
|
||||||
private FormFactoryInterface $formFactory,
|
private FormFactoryInterface $formFactory,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function getDefaultData(string $step, ExportInterface|DirectExportInterface $export, array $options = []): array
|
public function getDefaultData(string $step, ExportInterface|DirectExportInterface $export, array $options = []): array
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,4 @@ namespace Chill\MainBundle\Export;
|
|||||||
*
|
*
|
||||||
* When used, the `ExportManager` will not handle aggregator for this class.
|
* When used, the `ExportManager` will not handle aggregator for this class.
|
||||||
*/
|
*/
|
||||||
interface ListInterface extends ExportInterface
|
interface ListInterface extends ExportInterface {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -19,9 +19,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
|||||||
|
|
||||||
class AggregatorType extends AbstractType
|
class AggregatorType extends AbstractType
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
|
@ -21,9 +21,7 @@ class FilterType extends AbstractType
|
|||||||
{
|
{
|
||||||
public const ENABLED_FIELD = 'enabled';
|
public const ENABLED_FIELD = 'enabled';
|
||||||
|
|
||||||
public function __construct()
|
public function __construct() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
|
@ -13,6 +13,4 @@ namespace Chill\MainBundle\Notification\Exception;
|
|||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
|
||||||
class NotificationHandlerNotFound extends RuntimeException
|
class NotificationHandlerNotFound extends RuntimeException {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -16,6 +16,4 @@ use Redis;
|
|||||||
/**
|
/**
|
||||||
* Redis client configured by chill main.
|
* Redis client configured by chill main.
|
||||||
*/
|
*/
|
||||||
class ChillRedis extends Redis
|
class ChillRedis extends Redis {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -13,6 +13,4 @@ namespace Chill\MainBundle\Search;
|
|||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
class ParsingException extends Exception
|
class ParsingException extends Exception {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -24,6 +24,4 @@ use const E_USER_DEPRECATED;
|
|||||||
*
|
*
|
||||||
* This abstract Voter provide generic methods to handle object specific to Chill
|
* This abstract Voter provide generic methods to handle object specific to Chill
|
||||||
*/
|
*/
|
||||||
abstract class AbstractChillVoter extends Voter implements ChillVoterInterface
|
abstract class AbstractChillVoter extends Voter implements ChillVoterInterface {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -14,6 +14,4 @@ namespace Chill\MainBundle\Security\Authorization;
|
|||||||
/**
|
/**
|
||||||
* Provides methods for compiling voter and build admin role fields.
|
* Provides methods for compiling voter and build admin role fields.
|
||||||
*/
|
*/
|
||||||
interface ChillVoterInterface
|
interface ChillVoterInterface {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -101,8 +101,7 @@ final readonly class CollateAddressWithReferenceOrPostalCode implements CollateA
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private Connection $connection,
|
private Connection $connection,
|
||||||
private LoggerInterface $logger,
|
private LoggerInterface $logger,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws \Throwable
|
* @throws \Throwable
|
||||||
|
@ -22,8 +22,7 @@ final readonly class CollateAddressWithReferenceOrPostalCodeCronJob implements C
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private ClockInterface $clock,
|
private ClockInterface $clock,
|
||||||
private CollateAddressWithReferenceOrPostalCodeInterface $collateAddressWithReferenceOrPostalCode,
|
private CollateAddressWithReferenceOrPostalCodeInterface $collateAddressWithReferenceOrPostalCode,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function canRun(?CronJobExecution $cronJobExecution): bool
|
public function canRun(?CronJobExecution $cronJobExecution): bool
|
||||||
{
|
{
|
||||||
|
@ -21,8 +21,7 @@ class ViewEntityInfoManager
|
|||||||
*/
|
*/
|
||||||
private iterable $vienEntityInfoProviders,
|
private iterable $vienEntityInfoProviders,
|
||||||
private Connection $connection,
|
private Connection $connection,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function synchronizeOnDB(): void
|
public function synchronizeOnDB(): void
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,5 @@ namespace Chill\MainBundle\Service\ShortMessage;
|
|||||||
|
|
||||||
class NullShortMessageSender implements ShortMessageSenderInterface
|
class NullShortMessageSender implements ShortMessageSenderInterface
|
||||||
{
|
{
|
||||||
public function send(ShortMessage $shortMessage): void
|
public function send(ShortMessage $shortMessage): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,7 @@ final readonly class FilterOrderGetActiveFilterHelper
|
|||||||
private TranslatorInterface $translator,
|
private TranslatorInterface $translator,
|
||||||
private PropertyAccessorInterface $propertyAccessor,
|
private PropertyAccessorInterface $propertyAccessor,
|
||||||
private UserRender $userRender,
|
private UserRender $userRender,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return all the data required to display the active filters
|
* Return all the data required to display the active filters
|
||||||
|
@ -54,8 +54,7 @@ final class FilterOrderHelper
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly FormFactoryInterface $formFactory,
|
private readonly FormFactoryInterface $formFactory,
|
||||||
private readonly RequestStack $requestStack,
|
private readonly RequestStack $requestStack,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function addSingleCheckbox(string $name, string $label): self
|
public function addSingleCheckbox(string $name, string $label): self
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,7 @@ class Templating extends AbstractExtension
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly RequestStack $requestStack,
|
private readonly RequestStack $requestStack,
|
||||||
private readonly FilterOrderGetActiveFilterHelper $filterOrderGetActiveFilterHelper,
|
private readonly FilterOrderGetActiveFilterHelper $filterOrderGetActiveFilterHelper,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function getFilters(): array
|
public function getFilters(): array
|
||||||
{
|
{
|
||||||
|
@ -36,9 +36,7 @@ final class TokenManagerTest extends KernelTestCase
|
|||||||
$this->tokenManager = new TokenManager('secret', $logger);
|
$this->tokenManager = new TokenManager('secret', $logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function setUpBefore()
|
public static function setUpBefore() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGenerate()
|
public function testGenerate()
|
||||||
{
|
{
|
||||||
|
@ -13,6 +13,4 @@ namespace Chill\MainBundle\Workflow\Exception;
|
|||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
|
||||||
class HandlerNotFoundException extends RuntimeException
|
class HandlerNotFoundException extends RuntimeException {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -16,9 +16,7 @@ use Doctrine\Migrations\AbstractMigration;
|
|||||||
|
|
||||||
class Version20100000000000 extends AbstractMigration
|
class Version20100000000000 extends AbstractMigration
|
||||||
{
|
{
|
||||||
public function down(Schema $schema): void
|
public function down(Schema $schema): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function up(Schema $schema): void
|
public function up(Schema $schema): void
|
||||||
{
|
{
|
||||||
|
@ -16,9 +16,7 @@ use Doctrine\Migrations\AbstractMigration;
|
|||||||
|
|
||||||
final class Version20220513151853 extends AbstractMigration
|
final class Version20220513151853 extends AbstractMigration
|
||||||
{
|
{
|
||||||
public function down(Schema $schema): void
|
public function down(Schema $schema): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDescription(): string
|
public function getDescription(): string
|
||||||
{
|
{
|
||||||
|
@ -20,8 +20,7 @@ readonly class AccompanyingPeriodStepChangeCronjob implements CronJobInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private ClockInterface $clock,
|
private ClockInterface $clock,
|
||||||
private AccompanyingPeriodStepChangeRequestor $requestor,
|
private AccompanyingPeriodStepChangeRequestor $requestor,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function canRun(?CronJobExecution $cronJobExecution): bool
|
public function canRun(?CronJobExecution $cronJobExecution): bool
|
||||||
{
|
{
|
||||||
|
@ -23,8 +23,7 @@ class AccompanyingPeriodStepChangeMessageHandler implements MessageHandlerInterf
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private AccompanyingPeriodRepository $accompanyingPeriodRepository,
|
private AccompanyingPeriodRepository $accompanyingPeriodRepository,
|
||||||
private AccompanyingPeriodStepChanger $changer,
|
private AccompanyingPeriodStepChanger $changer,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function __invoke(AccompanyingPeriodStepChangeRequestMessage $message): void
|
public function __invoke(AccompanyingPeriodStepChangeRequestMessage $message): void
|
||||||
{
|
{
|
||||||
|
@ -30,8 +30,7 @@ class AccompanyingPeriodStepChanger
|
|||||||
private EntityManagerInterface $entityManager,
|
private EntityManagerInterface $entityManager,
|
||||||
private LoggerInterface $logger,
|
private LoggerInterface $logger,
|
||||||
private Registry $workflowRegistry,
|
private Registry $workflowRegistry,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function __invoke(AccompanyingPeriod $period, string $transition, ?string $workflowName = null): void
|
public function __invoke(AccompanyingPeriod $period, string $transition, ?string $workflowName = null): void
|
||||||
{
|
{
|
||||||
|
@ -19,8 +19,7 @@ class PersonMoveCenterHistoryHandler implements PersonMoveSqlHandlerInterface
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private PersonCenterHistoryRepository $centerHistoryRepository,
|
private PersonCenterHistoryRepository $centerHistoryRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function supports(string $className, string $field): bool
|
public function supports(string $className, string $field): bool
|
||||||
{
|
{
|
||||||
|
@ -39,8 +39,7 @@ class PersonMove
|
|||||||
private EntityManagerInterface $em,
|
private EntityManagerInterface $em,
|
||||||
private PersonMoveManager $personMoveManager,
|
private PersonMoveManager $personMoveManager,
|
||||||
private EventDispatcherInterface $eventDispatcher
|
private EventDispatcherInterface $eventDispatcher
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the sql used to move or delete entities associated to a person to
|
* Return the sql used to move or delete entities associated to a person to
|
||||||
|
@ -20,8 +20,7 @@ class PersonMoveManager
|
|||||||
* @var iterable<PersonMoveSqlHandlerInterface>
|
* @var iterable<PersonMoveSqlHandlerInterface>
|
||||||
*/
|
*/
|
||||||
private iterable $handlers,
|
private iterable $handlers,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param class-string $className
|
* @param class-string $className
|
||||||
|
@ -43,8 +43,7 @@ final class AccompanyingCourseWorkController extends AbstractController
|
|||||||
private readonly LoggerInterface $chillLogger,
|
private readonly LoggerInterface $chillLogger,
|
||||||
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
||||||
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory
|
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route(
|
* @Route(
|
||||||
|
@ -20,9 +20,7 @@ use Symfony\Component\Security\Core\Security;
|
|||||||
|
|
||||||
class AccompanyingCourseWorkEvaluationDocumentController extends AbstractController
|
class AccompanyingCourseWorkEvaluationDocumentController extends AbstractController
|
||||||
{
|
{
|
||||||
public function __construct(private Security $security)
|
public function __construct(private Security $security) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route(
|
* @Route(
|
||||||
|
@ -28,8 +28,7 @@ final class SocialWorkSocialActionApiController extends ApiController
|
|||||||
private readonly SocialIssueRepository $socialIssueRepository,
|
private readonly SocialIssueRepository $socialIssueRepository,
|
||||||
private readonly PaginatorFactory $paginator,
|
private readonly PaginatorFactory $paginator,
|
||||||
private readonly ClockInterface $clock,
|
private readonly ClockInterface $clock,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function listBySocialIssueApi($id, Request $request)
|
public function listBySocialIssueApi($id, Request $request)
|
||||||
{
|
{
|
||||||
|
@ -74,6 +74,5 @@ class AccompanyingPeriodInfo
|
|||||||
* @ORM\Column(type="text")
|
* @ORM\Column(type="text")
|
||||||
*/
|
*/
|
||||||
public readonly string $discriminator,
|
public readonly string $discriminator,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1607,14 +1607,14 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addCenterHistory(PersonCenterHistory $newCenterHistory): self
|
public function addCenterHistory(PersonCenterHistory $newCenterHistory): self
|
||||||
{
|
{
|
||||||
if (!$this->centerHistory->contains($newCenterHistory)) {
|
if (!$this->centerHistory->contains($newCenterHistory)) {
|
||||||
$this->centerHistory[] = $newCenterHistory;
|
$this->centerHistory[] = $newCenterHistory;
|
||||||
$newCenterHistory->setPerson($this);
|
$newCenterHistory->setPerson($this);
|
||||||
}
|
|
||||||
return $this;
|
|
||||||
}
|
}
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Person
|
* @return Person
|
||||||
|
@ -27,8 +27,7 @@ final readonly class JobWorkingOnCourseAggregator implements AggregatorInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private UserJobRepositoryInterface $userJobRepository,
|
private UserJobRepositoryInterface $userJobRepository,
|
||||||
private TranslatableStringHelperInterface $translatableStringHelper,
|
private TranslatableStringHelperInterface $translatableStringHelper,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
{
|
{
|
||||||
|
@ -28,8 +28,7 @@ final readonly class ScopeWorkingOnCourseAggregator implements AggregatorInterfa
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private ScopeRepositoryInterface $scopeRepository,
|
private ScopeRepositoryInterface $scopeRepository,
|
||||||
private TranslatableStringHelperInterface $translatableStringHelper,
|
private TranslatableStringHelperInterface $translatableStringHelper,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
{
|
{
|
||||||
|
@ -27,8 +27,7 @@ final readonly class UserWorkingOnCourseAggregator implements AggregatorInterfac
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private UserRender $userRender,
|
private UserRender $userRender,
|
||||||
private UserRepositoryInterface $userRepository,
|
private UserRepositoryInterface $userRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
{
|
{
|
||||||
|
@ -24,8 +24,7 @@ final readonly class AgeAggregator implements AggregatorInterface, ExportElement
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function addRole(): ?string
|
public function addRole(): ?string
|
||||||
{
|
{
|
||||||
|
@ -28,8 +28,7 @@ final readonly class CenterAggregator implements AggregatorInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private CenterRepositoryInterface $centerRepository,
|
private CenterRepositoryInterface $centerRepository,
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
{
|
{
|
||||||
|
@ -45,9 +45,7 @@ final class GenderAggregator implements AggregatorInterface
|
|||||||
return Declarations::PERSON_TYPE;
|
return Declarations::PERSON_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -52,8 +52,7 @@ final readonly class ListAccompanyingPeriod implements ListInterface, GroupedExp
|
|||||||
private EntityManagerInterface $entityManager,
|
private EntityManagerInterface $entityManager,
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
|
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
{
|
{
|
||||||
|
@ -146,9 +146,7 @@ class ListPersonDuplicate implements DirectExportInterface, ExportElementValidat
|
|||||||
return PersonVoter::DUPLICATE;
|
return PersonVoter::DUPLICATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validateForm($data, ExecutionContextInterface $context)
|
public function validateForm($data, ExecutionContextInterface $context) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getHeaders(): array
|
protected function getHeaders(): array
|
||||||
{
|
{
|
||||||
|
@ -50,8 +50,7 @@ final readonly class ListPersonWithAccompanyingPeriodDetails implements ListInte
|
|||||||
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
|
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
|
||||||
private EntityManagerInterface $entityManager,
|
private EntityManagerInterface $entityManager,
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
{
|
{
|
||||||
|
@ -30,8 +30,7 @@ final readonly class HavingAnAccompanyingPeriodInfoWithinDatesFilter implements
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
{
|
{
|
||||||
|
@ -38,8 +38,7 @@ readonly class JobWorkingOnCourseFilter implements FilterInterface
|
|||||||
private UserJobRepositoryInterface $userJobRepository,
|
private UserJobRepositoryInterface $userJobRepository,
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
private TranslatableStringHelperInterface $translatableStringHelper,
|
private TranslatableStringHelperInterface $translatableStringHelper,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
{
|
{
|
||||||
|
@ -40,8 +40,7 @@ readonly class ScopeWorkingOnCourseFilter implements FilterInterface
|
|||||||
private ScopeRepositoryInterface $scopeRepository,
|
private ScopeRepositoryInterface $scopeRepository,
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
private TranslatableStringHelperInterface $translatableStringHelper,
|
private TranslatableStringHelperInterface $translatableStringHelper,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
{
|
{
|
||||||
|
@ -33,8 +33,7 @@ readonly class UserWorkingOnCourseFilter implements FilterInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private UserRender $userRender,
|
private UserRender $userRender,
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
{
|
{
|
||||||
|
@ -24,8 +24,7 @@ final readonly class AccompanyingPeriodWorkEndDateBetweenDateFilter implements F
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
{
|
{
|
||||||
|
@ -24,8 +24,7 @@ final readonly class AccompanyingPeriodWorkStartDateBetweenDateFilter implements
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
{
|
{
|
||||||
|
@ -75,8 +75,7 @@ final readonly class ListAccompanyingPeriodHelper
|
|||||||
private SocialIssueRender $socialIssueRender,
|
private SocialIssueRender $socialIssueRender,
|
||||||
private TranslatableStringHelperInterface $translatableStringHelper,
|
private TranslatableStringHelperInterface $translatableStringHelper,
|
||||||
private TranslatorInterface $translator,
|
private TranslatorInterface $translator,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function getQueryKeys($data)
|
public function getQueryKeys($data)
|
||||||
{
|
{
|
||||||
|
@ -13,6 +13,4 @@ namespace Chill\PersonBundle\Repository\Person;
|
|||||||
|
|
||||||
use Doctrine\Persistence\ObjectRepository;
|
use Doctrine\Persistence\ObjectRepository;
|
||||||
|
|
||||||
interface PersonCenterHistoryInterface extends ObjectRepository
|
interface PersonCenterHistoryInterface extends ObjectRepository {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -19,6 +19,4 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
|||||||
*/
|
*/
|
||||||
interface PersonJsonNormalizerInterface extends
|
interface PersonJsonNormalizerInterface extends
|
||||||
DenormalizerInterface,
|
DenormalizerInterface,
|
||||||
NormalizerInterface
|
NormalizerInterface {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -21,8 +21,7 @@ class AccompanyingPeriodViewEntityInfoProvider implements ViewEntityInfoProvider
|
|||||||
*/
|
*/
|
||||||
private iterable $unions,
|
private iterable $unions,
|
||||||
private AccompanyingPeriodInfoQueryBuilder $builder,
|
private AccompanyingPeriodInfoQueryBuilder $builder,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function getViewQuery(): string
|
public function getViewQuery(): string
|
||||||
{
|
{
|
||||||
|
@ -31,8 +31,7 @@ final readonly class AccompanyingPeriodWorkEvaluationGenericDocProvider implemen
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private Security $security,
|
private Security $security,
|
||||||
private EntityManagerInterface $entityManager,
|
private EntityManagerInterface $entityManager,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildFetchQueryForAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
|
public function buildFetchQueryForAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
|
||||||
{
|
{
|
||||||
|
@ -21,8 +21,7 @@ final readonly class AccompanyingPeriodWorkEvaluationGenericDocRenderer implemen
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private AccompanyingPeriodWorkEvaluationDocumentRepository $accompanyingPeriodWorkEvaluationDocumentRepository,
|
private AccompanyingPeriodWorkEvaluationDocumentRepository $accompanyingPeriodWorkEvaluationDocumentRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function supports(GenericDocDTO $genericDocDTO, $options = []): bool
|
public function supports(GenericDocDTO $genericDocDTO, $options = []): bool
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,4 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Chill\PersonBundle\Service\Import;
|
namespace Chill\PersonBundle\Service\Import;
|
||||||
|
|
||||||
interface SocialWorkMetadataInterface extends ChillImporter
|
interface SocialWorkMetadataInterface extends ChillImporter {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user