Fix CS and upgrade issues after mergin master branch

This commit is contained in:
Julien Fastré 2024-06-24 10:56:02 +02:00
parent 916724c0c5
commit 49dd7f94fa
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
13 changed files with 13 additions and 27 deletions

View File

@ -18,9 +18,7 @@ use Symfony\Component\Security\Core\Security;
final readonly class AccompanyingCourseQuickMenuBuilder implements LocalMenuBuilderInterface
{
public function __construct(private Security $security)
{
}
public function __construct(private Security $security) {}
public static function getMenuIds(): array
{

View File

@ -18,9 +18,7 @@ use Symfony\Component\Security\Core\Security;
final readonly class AccompanyingCourseQuickMenuBuilder implements LocalMenuBuilderInterface
{
public function __construct(private Security $security)
{
}
public function __construct(private Security $security) {}
public static function getMenuIds(): array
{

View File

@ -41,9 +41,7 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
'isAbsent' => false,
];
public function __construct(private readonly UserRender $userRender, private readonly ClockInterface $clock)
{
}
public function __construct(private readonly UserRender $userRender, private readonly ClockInterface $clock) {}
/**
* @param mixed|null $format

View File

@ -38,8 +38,7 @@ class UserRender implements ChillEntityRenderInterface
private readonly \Twig\Environment $engine,
private readonly TranslatorInterface $translator,
private readonly ClockInterface $clock,
) {
}
) {}
/**
* @throws LoaderError

View File

@ -32,8 +32,7 @@ final readonly class ReferrerAggregator implements AggregatorInterface, DataTran
private UserRepository $userRepository,
private UserRender $userRender,
private RollingDateConverterInterface $rollingDateConverter
) {
}
) {}
public function addRole(): ?string
{

View File

@ -32,8 +32,7 @@ readonly class ReferrerScopeAggregator implements AggregatorInterface, DataTrans
private ScopeRepositoryInterface $scopeRepository,
private TranslatableStringHelperInterface $translatableStringHelper,
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function addRole(): ?string
{

View File

@ -32,8 +32,7 @@ final readonly class UserJobAggregator implements AggregatorInterface, DataTrans
private UserJobRepository $jobRepository,
private TranslatableStringHelper $translatableStringHelper,
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function addRole(): ?string
{

View File

@ -35,8 +35,7 @@ final readonly class UserJobFilter implements FilterInterface, DataTransformerIn
private TranslatableStringHelper $translatableStringHelper,
private UserJobRepositoryInterface $userJobRepository,
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function addRole(): ?string
{

View File

@ -35,8 +35,7 @@ final readonly class UserScopeFilter implements FilterInterface, DataTransformer
private ScopeRepositoryInterface $scopeRepository,
private TranslatableStringHelper $translatableStringHelper,
private RollingDateConverterInterface $rollingDateConverter,
) {
}
) {}
public function addRole(): ?string
{

View File

@ -18,9 +18,7 @@ use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
final readonly class PersonQuickMenuBuilder implements LocalMenuBuilderInterface
{
public function __construct(private AuthorizationCheckerInterface $authorizationChecker)
{
}
public function __construct(private AuthorizationCheckerInterface $authorizationChecker) {}
public static function getMenuIds(): array
{

View File

@ -47,7 +47,7 @@ final class ReferrerAggregatorTest extends AbstractAggregatorTest
}
}
public function provideBeforeData(): iterable
public static function provideBeforeData(): iterable
{
yield [
['date_calc' => new RollingDate(RollingDate::T_TODAY)],

View File

@ -74,7 +74,7 @@ final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
}
}
public function provideBeforeData(): iterable
public static function provideBeforeData(): iterable
{
yield [
null,

View File

@ -47,7 +47,7 @@ final class UserJobAggregatorTest extends AbstractAggregatorTest
}
}
public function provideBeforeData(): iterable
public static function provideBeforeData(): iterable
{
yield [
null,