mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-12-03 00:48:27 +00:00
fix CS
This commit is contained in:
@@ -29,7 +29,7 @@ final class BySocialActionAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\ActivityBundle\Export\Aggregator\ACPAggregators\BySocialActionAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(BySocialActionAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): BySocialActionAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class BySocialIssueAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\ActivityBundle\Export\Aggregator\ACPAggregators\BySocialIssueAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(BySocialIssueAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): BySocialIssueAggregator
|
||||
|
||||
@@ -34,7 +34,7 @@ final class ActivityUserAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\ActivityBundle\Export\Aggregator\ActivityUserAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ActivityUserAggregator::class);
|
||||
|
||||
$request = $this->prophesize()
|
||||
->willExtend(\Symfony\Component\HttpFoundation\Request::class);
|
||||
|
||||
@@ -28,7 +28,7 @@ final class SumActivityVisitDurationTest extends AbstractExportTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->export = self::getContainer()->get(\Chill\ActivityBundle\Export\Export\LinkedToACP\SumActivityVisitDuration::class);
|
||||
$this->export = self::getContainer()->get(SumActivityVisitDuration::class);
|
||||
}
|
||||
|
||||
public function getExport()
|
||||
|
||||
@@ -33,7 +33,7 @@ final class ActivityReasonFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\PersonFilters\ActivityReasonFilter::class);
|
||||
$this->filter = self::getContainer()->get(ActivityReasonFilter::class);
|
||||
|
||||
$request = $this->prophesize()
|
||||
->willExtend(\Symfony\Component\HttpFoundation\Request::class);
|
||||
|
||||
@@ -31,7 +31,7 @@ final class ActivityTypeFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\ActivityTypeFilter::class);
|
||||
$this->filter = self::getContainer()->get(ActivityTypeFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): ActivityTypeFilter
|
||||
|
||||
@@ -31,7 +31,7 @@ final class ActivityReasonFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\PersonFilters\ActivityReasonFilter::class);
|
||||
$this->filter = self::getContainer()->get(ActivityReasonFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): ActivityReasonFilter
|
||||
|
||||
@@ -30,7 +30,7 @@ final class PersonHavingActivityBetweenDateFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\PersonFilters\PersonHavingActivityBetweenDateFilter::class);
|
||||
$this->filter = self::getContainer()->get(PersonHavingActivityBetweenDateFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): PersonHavingActivityBetweenDateFilter
|
||||
|
||||
@@ -32,7 +32,7 @@ final class PersonHavingActivityBetweenDateFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\PersonFilters\PersonHavingActivityBetweenDateFilter::class);
|
||||
$this->filter = self::getContainer()->get(PersonHavingActivityBetweenDateFilter::class);
|
||||
|
||||
$request = $this->prophesize()
|
||||
->willExtend(Request::class);
|
||||
|
||||
@@ -41,16 +41,15 @@ final class MapAndSubscribeUserCalendarCommand
|
||||
private readonly MapCalendarToUser $mapCalendarToUser,
|
||||
private readonly UserRepositoryInterface $userRepository,
|
||||
private readonly MSUserAbsenceSync $userAbsenceSync,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function __invoke(
|
||||
#[\Symfony\Component\Console\Attribute\Option(name: 'renew-before-end-interval', shortcut: 'r', mode: InputOption::VALUE_OPTIONAL, description: 'delay before renewing subscription')]
|
||||
string $renewBeforeEndInterval = 'P1D',
|
||||
#[\Symfony\Component\Console\Attribute\Option(name: 'subscription-duration', shortcut: 's', mode: InputOption::VALUE_OPTIONAL, description: 'duration for the subscription')]
|
||||
string $subscriptionDuration = 'PT4230M',
|
||||
?OutputInterface $output = null): int
|
||||
{
|
||||
?OutputInterface $output = null,
|
||||
): int {
|
||||
$this->logger->info(self::class.' execute command');
|
||||
|
||||
$limit = 50;
|
||||
|
||||
@@ -46,8 +46,7 @@ class SendTestShortMessageOnCalendarCommand
|
||||
private readonly ShortMessageForCalendarBuilderInterface $messageForCalendarBuilder,
|
||||
private readonly TexterInterface $transporter,
|
||||
private readonly UserRepositoryInterface $userRepository,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function __invoke(OutputInterface $output): int
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ final class AgentAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\AgentAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(AgentAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): AgentAggregator
|
||||
|
||||
@@ -36,7 +36,7 @@ final class CancelReasonAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\CancelReasonAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(CancelReasonAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): CancelReasonAggregator
|
||||
|
||||
@@ -36,7 +36,7 @@ final class JobAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\JobAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(JobAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): JobAggregator
|
||||
|
||||
@@ -36,7 +36,7 @@ final class LocationAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\LocationAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(LocationAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): LocationAggregator
|
||||
|
||||
@@ -36,7 +36,7 @@ final class LocationTypeAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\LocationTypeAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(LocationTypeAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): LocationTypeAggregator
|
||||
|
||||
@@ -36,7 +36,7 @@ final class MonthYearAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\MonthYearAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(MonthYearAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): MonthYearAggregator
|
||||
|
||||
@@ -36,7 +36,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\ScopeAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ScopeAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): ScopeAggregator
|
||||
|
||||
@@ -43,7 +43,7 @@ final class AgentFilterTest extends AbstractFilterTest
|
||||
$request->willExtend(\Symfony\Component\HttpFoundation\Request::class);
|
||||
$request->getLocale()->willReturn('fr');
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\CalendarBundle\Export\Filter\AgentFilter::class);
|
||||
$this->filter = self::getContainer()->get(AgentFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): AgentFilter
|
||||
|
||||
@@ -43,7 +43,7 @@ final class BetweenDatesFilterTest extends AbstractFilterTest
|
||||
$request->willExtend(\Symfony\Component\HttpFoundation\Request::class);
|
||||
$request->getLocale()->willReturn('fr');
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\CalendarBundle\Export\Filter\BetweenDatesFilter::class);
|
||||
$this->filter = self::getContainer()->get(BetweenDatesFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): BetweenDatesFilter
|
||||
|
||||
@@ -44,7 +44,7 @@ final class JobFilterTest extends AbstractFilterTest
|
||||
$request->willExtend(\Symfony\Component\HttpFoundation\Request::class);
|
||||
$request->getLocale()->willReturn('fr');
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\CalendarBundle\Export\Filter\JobFilter::class);
|
||||
$this->filter = self::getContainer()->get(JobFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): JobFilter
|
||||
|
||||
@@ -44,7 +44,7 @@ final class ScopeFilterTest extends AbstractFilterTest
|
||||
$request->willExtend(\Symfony\Component\HttpFoundation\Request::class);
|
||||
$request->getLocale()->willReturn('fr');
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\CalendarBundle\Export\Filter\ScopeFilter::class);
|
||||
$this->filter = self::getContainer()->get(ScopeFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): ScopeFilter
|
||||
|
||||
@@ -45,8 +45,7 @@ class CreateFieldsOnGroupCommand
|
||||
private readonly ValidatorInterface $validator,
|
||||
private $availableLanguages,
|
||||
private $customizablesEntities,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Delete the existing custom fields for a given customFieldGroup.
|
||||
|
||||
@@ -62,7 +62,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte
|
||||
$attributes = \array_filter(
|
||||
$metadata->getAttributesMetadata(),
|
||||
static function (AttributeMetadataInterface $a) use ($expectedGroups) {
|
||||
return array_any($a->getGroups(), fn($g) => \in_array($g, $expectedGroups, true));
|
||||
return array_any($a->getGroups(), fn ($g) => \in_array($g, $expectedGroups, true));
|
||||
}
|
||||
);
|
||||
|
||||
@@ -147,7 +147,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte
|
||||
// add a discriminator
|
||||
if (null !== $discriminator = $metadata->getClassDiscriminatorMapping()) {
|
||||
$typeKey = $discriminator->getTypeProperty();
|
||||
$typeValue = array_find_key($discriminator->getTypesMapping(), fn($typeClass) => $typeClass === $context['docgen:expects']);
|
||||
$typeValue = array_find_key($discriminator->getTypesMapping(), fn ($typeClass) => $typeClass === $context['docgen:expects']);
|
||||
|
||||
if (null === $typeValue) {
|
||||
$typeKey = null;
|
||||
|
||||
@@ -115,7 +115,8 @@ class OnGenerationFailsTest extends TestCase
|
||||
if (!$arg instanceof Email) {
|
||||
return false;
|
||||
}
|
||||
return array_any($arg->getTo(), fn($to) => 'test@test.com' === $to->getAddress());
|
||||
|
||||
return array_any($arg->getTo(), fn ($to) => 'test@test.com' === $to->getAddress());
|
||||
}),
|
||||
Argument::any()
|
||||
)
|
||||
|
||||
@@ -189,8 +189,6 @@ class CRUDController extends AbstractController
|
||||
* build a default role name, using the crud resolver.
|
||||
*
|
||||
* This method should not be overriden. Override `getRoleFor` instead.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function buildDefaultRole(string $action): string
|
||||
{
|
||||
|
||||
@@ -60,8 +60,7 @@ class ChillImportUsersCommand
|
||||
protected \Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface $passwordEncoder,
|
||||
protected ValidatorInterface $validator,
|
||||
protected UserRepository $userRepository,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
protected function appendUserToFile(User $user)
|
||||
{
|
||||
|
||||
@@ -19,9 +19,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||
#[AsCommand(name: 'chill:main:dump-list-permissions', description: 'Print a markdown reference of permissions (roles) grouped by title with dependencies).')]
|
||||
final readonly class DumpListPermissionsCommand
|
||||
{
|
||||
public function __construct(private RoleDumper $roleDumper)
|
||||
{
|
||||
}
|
||||
public function __construct(private RoleDumper $roleDumper) {}
|
||||
|
||||
public function __invoke(OutputInterface $output): int
|
||||
{
|
||||
|
||||
@@ -25,8 +25,7 @@ class ExecuteCronJobCommand
|
||||
|
||||
public function __construct(
|
||||
private readonly CronManagerInterface $cronManager,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
protected function configure()
|
||||
{
|
||||
|
||||
@@ -24,8 +24,7 @@ class LoadAddressesBEFromBestAddressCommand
|
||||
public function __construct(
|
||||
private readonly AddressReferenceBEFromBestAddress $addressImporter,
|
||||
private readonly PostalCodeBEFromBestAddress $postalCodeBEFromBestAddressImporter,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function __invoke(
|
||||
#[\Symfony\Component\Console\Attribute\Argument(name: 'lang', description: "Language code, for example 'fr'")]
|
||||
|
||||
@@ -21,9 +21,7 @@ class LoadAddressesFRFromBANCommand
|
||||
{
|
||||
protected static $defaultDescription = 'Import FR addresses from BAN (see https://adresses.data.gouv.fr';
|
||||
|
||||
public function __construct(private readonly AddressReferenceFromBAN $addressReferenceFromBAN)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly AddressReferenceFromBAN $addressReferenceFromBAN) {}
|
||||
|
||||
public function __invoke(#[\Symfony\Component\Console\Attribute\Argument(name: 'departementNo', description: 'a list of departement numbers')]
|
||||
array $departementno, #[\Symfony\Component\Console\Attribute\Option(name: 'send-report-email', shortcut: 's', mode: InputOption::VALUE_REQUIRED, description: 'Email address where a list of unimported addresses can be send')]
|
||||
|
||||
@@ -21,9 +21,7 @@ class LoadAddressesFRFromBANOCommand
|
||||
{
|
||||
protected static $defaultDescription = 'Import FR addresses from bano (see https://bano.openstreetmap.fr';
|
||||
|
||||
public function __construct(private readonly AddressReferenceFromBano $addressReferenceFromBano)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly AddressReferenceFromBano $addressReferenceFromBano) {}
|
||||
|
||||
public function __invoke(#[\Symfony\Component\Console\Attribute\Argument(name: 'departementNo', description: 'a list of departement numbers')]
|
||||
array $departementno, #[\Symfony\Component\Console\Attribute\Option(name: 'send-report-email', shortcut: 's', mode: InputOption::VALUE_REQUIRED, description: 'Email address where a list of unimported addresses can be send')]
|
||||
|
||||
@@ -22,8 +22,7 @@ class LoadAddressesLUFromBDAddressCommand
|
||||
|
||||
public function __construct(
|
||||
private readonly AddressReferenceLU $addressImporter,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function __invoke(
|
||||
#[\Symfony\Component\Console\Attribute\Option(name: 'send-report-email', shortcut: 's', mode: InputOption::VALUE_REQUIRED, description: 'Email address where a list of unimported addresses can be send')]
|
||||
|
||||
@@ -39,9 +39,7 @@ class LoadAndUpdateLanguagesCommand
|
||||
/**
|
||||
* LoadCountriesCommand constructor.
|
||||
*/
|
||||
public function __construct(private readonly EntityManagerInterface $entityManager, private readonly ParameterBagInterface $parameterBag)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly EntityManagerInterface $entityManager, private readonly ParameterBagInterface $parameterBag) {}
|
||||
|
||||
/**
|
||||
* (non-PHPdoc).
|
||||
@@ -52,8 +50,8 @@ class LoadAndUpdateLanguagesCommand
|
||||
#[\Symfony\Component\Console\Attribute\Option(name: self::INCLUDE_REGIONAL_VERSION, mode: InputOption::VALUE_NONE, description: 'Include the regional languages. The regional languages are languages with code containing')]
|
||||
bool $includeRegional = false,
|
||||
#[\Symfony\Component\Console\Attribute\Option(name: self::INCLUDE_ANCIENT, mode: InputOption::VALUE_NONE, description: 'Include the ancient languages that are languages with code ')]
|
||||
bool $includeAncient = false): int
|
||||
{
|
||||
bool $includeAncient = false,
|
||||
): int {
|
||||
$em = $this->entityManager;
|
||||
$chillAvailableLanguages = $this->parameterBag->get('chill_main.available_languages');
|
||||
$languages = [];
|
||||
|
||||
@@ -22,9 +22,7 @@ class LoadCountriesCommand
|
||||
/**
|
||||
* LoadCountriesCommand constructor.
|
||||
*/
|
||||
public function __construct(private readonly EntityManager $entityManager, private $availableLanguages)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly EntityManager $entityManager, private $availableLanguages) {}
|
||||
|
||||
public static function prepareCountryList($languages)
|
||||
{
|
||||
|
||||
@@ -19,9 +19,7 @@ class LoadPostalCodeFR
|
||||
{
|
||||
protected static $defaultDescription = 'Load France\'s postal code from online open data';
|
||||
|
||||
public function __construct(private readonly PostalCodeFRFromOpenData $loader)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly PostalCodeFRFromOpenData $loader) {}
|
||||
|
||||
public function __invoke(): int
|
||||
{
|
||||
|
||||
@@ -27,9 +27,7 @@ class LoadPostalCodesCommand
|
||||
{
|
||||
protected static $defaultDescription = 'Add the postal code from a csv file.';
|
||||
|
||||
public function __construct(private readonly EntityManagerInterface $entityManager, private readonly ValidatorInterface $validator)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly EntityManagerInterface $entityManager, private readonly ValidatorInterface $validator) {}
|
||||
|
||||
public function __invoke(#[\Symfony\Component\Console\Attribute\Argument(name: 'csv_file', description: 'the path to '
|
||||
.'the csv file. See the help for specifications.')]
|
||||
|
||||
@@ -28,9 +28,7 @@ class SetPasswordCommand
|
||||
/**
|
||||
* SetPasswordCommand constructor.
|
||||
*/
|
||||
public function __construct(private readonly EntityManager $entityManager)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly EntityManager $entityManager) {}
|
||||
|
||||
public function _getUser($username): ?object
|
||||
{
|
||||
|
||||
@@ -21,8 +21,7 @@ class SynchronizeEntityInfoViewsCommand
|
||||
|
||||
public function __construct(
|
||||
private readonly ViewEntityInfoManager $viewEntityInfoManager,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function __invoke(): int
|
||||
{
|
||||
|
||||
@@ -18,9 +18,8 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
*/
|
||||
class MenuController extends AbstractController
|
||||
{
|
||||
public function __construct(private readonly \Chill\MainBundle\Routing\MenuComposer $menuComposer)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly \Chill\MainBundle\Routing\MenuComposer $menuComposer) {}
|
||||
|
||||
public function writeMenuAction($menu, $layout, $activeRouteKey = null, array $args = []): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
return $this->render($layout, [
|
||||
|
||||
@@ -26,7 +26,6 @@ use Symfony\Component\HttpFoundation\Session\Session;
|
||||
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Twig\Environment;
|
||||
|
||||
final readonly class UserUpdateProfileController
|
||||
|
||||
@@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\Workflow\EntityWorkflow;
|
||||
use Chill\MainBundle\Routing\ChillUrlGeneratorInterface;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Twig\Environment;
|
||||
|
||||
final readonly class WorkflowWaitStepChangeController
|
||||
|
||||
@@ -367,12 +367,12 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
public function isFinal(): bool
|
||||
{
|
||||
return array_any($this->getStepsChained(), fn($step) => $step->isFinal());
|
||||
return array_any($this->getStepsChained(), fn ($step) => $step->isFinal());
|
||||
}
|
||||
|
||||
public function isFreeze(): bool
|
||||
{
|
||||
return array_any($this->getStepsChained(), fn($step) => $step->isFreezeAfter());
|
||||
return array_any($this->getStepsChained(), fn ($step) => $step->isFreezeAfter());
|
||||
}
|
||||
|
||||
public function isOnHoldByUser(User $user): bool
|
||||
|
||||
@@ -41,7 +41,6 @@ class MenuTwig extends AbstractExtension
|
||||
* - layout: the layout. Absolute path needed (i.e.: @ChillXyz/section/foo.html.twig)
|
||||
* - activeRouteKey : the key active, will render the menu differently.
|
||||
*
|
||||
*
|
||||
* @param string $menuId
|
||||
* @param mixed[] $params
|
||||
*/
|
||||
|
||||
@@ -202,7 +202,8 @@ class AuthorizationHelper implements AuthorizationHelperInterface
|
||||
public function userHasAccess(UserInterface $user, mixed $entity, string $attribute): bool
|
||||
{
|
||||
$centers = $this->centerResolverManager->resolveCenters($entity);
|
||||
return array_any($centers, fn($c) => $this->userHasAccessForCenter($user, $c, $entity, $attribute));
|
||||
|
||||
return array_any($centers, fn ($c) => $this->userHasAccessForCenter($user, $c, $entity, $attribute));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -77,6 +77,7 @@ final class EntityWorkflowTransitionVoter extends Voter implements ProvideRoleHi
|
||||
|
||||
$centers = $this->centerResolverManager->resolveCenters($entity);
|
||||
$reachableCenters = $this->authorizationHelper->getReachableCenters(self::APPLY_ALL_TRANSITIONS);
|
||||
return array_any($centers, fn($center) => in_array($center, $reachableCenters, true));
|
||||
|
||||
return array_any($centers, fn ($center) => in_array($center, $reachableCenters, true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,7 @@ namespace Chill\MainBundle\Templating;
|
||||
|
||||
use Symfony\Bridge\Twig\Extension\RoutingExtension;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
use Twig\Attribute\AsTwigFunction;
|
||||
use Twig\ExpressionParser\ExpressionParserInterface;
|
||||
use Twig\Extension\AbstractExtension;
|
||||
use Twig\Extension\ExtensionInterface;
|
||||
use Twig\Node\Node;
|
||||
use Twig\TwigFilter;
|
||||
use Twig\TwigFunction;
|
||||
|
||||
@@ -11,9 +11,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Templating;
|
||||
|
||||
use Twig\Extension\AbstractExtension;
|
||||
use Twig\Extension\ExtensionInterface;
|
||||
|
||||
class TranslatableStringTwig
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -347,7 +347,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
|
||||
return new ExportManager(
|
||||
$logger ?? self::getContainer()->get(LoggerInterface::class),
|
||||
$authorizationChecker ?? self::getContainer()->get(\Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface::class),
|
||||
$authorizationChecker ?? self::getContainer()->get(AuthorizationCheckerInterface::class),
|
||||
$authorizationHelper ?? self::getContainer()->get(\Chill\MainBundle\Security\Authorization\AuthorizationHelperInterface::class),
|
||||
$tokenStorage,
|
||||
$exports,
|
||||
|
||||
@@ -63,7 +63,7 @@ class NotificationMailerTest extends TestCase
|
||||
|
||||
// a mail only to user1 and user3 should have been sent
|
||||
$mailer->send(Argument::that(function (Email $email) {
|
||||
return array_any($email->getTo(), fn($address) => 'user1@foo.com' === $address->getAddress() || 'user3@foo.com' === $address->getAddress());
|
||||
return array_any($email->getTo(), fn ($address) => 'user1@foo.com' === $address->getAddress() || 'user3@foo.com' === $address->getAddress());
|
||||
}))->shouldBeCalledTimes(2);
|
||||
|
||||
$objectManager = $this->prophesize(EntityManagerInterface::class);
|
||||
@@ -96,7 +96,7 @@ class NotificationMailerTest extends TestCase
|
||||
|
||||
// a mail only to user1 and user3 should have been sent
|
||||
$mailer->send(Argument::that(function (Email $email) {
|
||||
return array_any($email->getTo(), fn($address) => 'user1@foo.com' === $address->getAddress());
|
||||
return array_any($email->getTo(), fn ($address) => 'user1@foo.com' === $address->getAddress());
|
||||
}))->shouldBeCalledTimes(1);
|
||||
|
||||
$objectManager = $this->prophesize(EntityManagerInterface::class);
|
||||
|
||||
@@ -53,7 +53,7 @@ class NotificationToUserGroupsOnTransitionTest extends KernelTestCase
|
||||
protected function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->twig = self::getContainer()->get(\Twig\Environment::class);
|
||||
$this->twig = self::getContainer()->get(Environment::class);
|
||||
$this->bodyRenderer = self::getContainer()->get(BodyRendererInterface::class);
|
||||
$this->em = self::getContainer()->get(\Doctrine\ORM\EntityManager::class);
|
||||
}
|
||||
|
||||
@@ -193,6 +193,7 @@ class WorkflowRelatedEntityPermissionHelper
|
||||
if (!$currentUser instanceof User) {
|
||||
return false;
|
||||
}
|
||||
return array_any($entityWorkflows, fn($entityWorkflow) => $entityWorkflow->isUserInvolved($currentUser));
|
||||
|
||||
return array_any($entityWorkflows, fn ($entityWorkflow) => $entityWorkflow->isUserInvolved($currentUser));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,8 +30,7 @@ final class ChillPersonMoveCommand extends Command
|
||||
private readonly PersonMove $mover,
|
||||
private readonly EntityManagerInterface $em,
|
||||
private readonly LoggerInterface $chillLogger,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
protected function buildLoggingContext(Person $from, Person $to, $deleteEntities, $sqls)
|
||||
{
|
||||
|
||||
@@ -23,8 +23,7 @@ final readonly class ImportSocialWorkMetadata
|
||||
|
||||
public function __construct(
|
||||
private SocialWorkMetadataInterface $importer,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
private function configure(): void
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@ class RemoveOldDraftAccompanyingPeriodCommand
|
||||
{
|
||||
protected static $defaultDescription = 'Remove draft accompanying period which are still draft and unused';
|
||||
|
||||
public function __construct(private readonly LoggerInterface $logger, private readonly OldDraftAccompanyingPeriodRemoverInterface $remover)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly LoggerInterface $logger, private readonly OldDraftAccompanyingPeriodRemoverInterface $remover) {}
|
||||
|
||||
public function __invoke(
|
||||
#[\Symfony\Component\Console\Attribute\Argument(name: 'interval', description: 'The interval for unactive periods')]
|
||||
|
||||
@@ -19,7 +19,6 @@ use Symfony\Bundle\SecurityBundle\Security;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
|
||||
use Symfony\Component\Serializer\SerializerInterface;
|
||||
|
||||
|
||||
@@ -772,7 +772,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
* If the `$at` parameter is now, use the method `getCurrentPersonAddress`, which is optimized
|
||||
* on database side.
|
||||
*
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
#[\Deprecated(message: 'since chill2.0, address is linked to the household. Use @see{Person::getCurrentHouseholdAddress}')]
|
||||
@@ -1168,8 +1167,8 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return false|mixed|null
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
#[\Deprecated(message: 'Use @see{Person::getCurrentPersonAddress} or @see{Person::getCurrentHouseholdAddress} instead')]
|
||||
@@ -1389,7 +1388,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
*/
|
||||
public function isOpen(): bool
|
||||
{
|
||||
return array_any($this->getAccompanyingPeriods(), fn($period) => $period->isOpen());
|
||||
return array_any($this->getAccompanyingPeriods(), fn ($period) => $period->isOpen());
|
||||
}
|
||||
|
||||
public function isSharingHousehold(?\DateTimeImmutable $at = null): bool
|
||||
|
||||
@@ -43,7 +43,7 @@ class WorkflowSignatureCancelControllerStepTest extends WebTestCase
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->formFactory = self::getContainer()->get(\Symfony\Component\Form\FormFactoryInterface::class);
|
||||
$this->formFactory = self::getContainer()->get(FormFactoryInterface::class);
|
||||
$this->signatureStepStateChanger = self::getContainer()->get(SignatureStepStateChanger::class);
|
||||
$this->chillUrlGenerator = self::getContainer()->get(ChillUrlGeneratorInterface::class);
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ final class AdministrativeLocationAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\AdministrativeLocationAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(AdministrativeLocationAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): AdministrativeLocationAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class ClosingMotiveAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ClosingMotiveAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ClosingMotiveAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): ClosingMotiveAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class ConfidentialAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ConfidentialAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ConfidentialAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): ConfidentialAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class DurationAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\DurationAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(DurationAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): DurationAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class EmergencyAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\EmergencyAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(EmergencyAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): EmergencyAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class EvaluationAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\EvaluationAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(EvaluationAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): EvaluationAggregator
|
||||
|
||||
@@ -31,7 +31,7 @@ final class GeographicalUnitStatAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\GeographicalUnitStatAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(GeographicalUnitStatAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): GeographicalUnitStatAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class IntensityAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\IntensityAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(IntensityAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): IntensityAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class OriginAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\OriginAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(OriginAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): OriginAggregator
|
||||
|
||||
@@ -30,7 +30,7 @@ final class ReferrerAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ReferrerAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ReferrerAggregator::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,7 +29,7 @@ final class RequestorAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\RequestorAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(RequestorAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): RequestorAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ScopeAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ScopeAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): ScopeAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class SocialActionAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\SocialActionAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(SocialActionAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): SocialActionAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class SocialIssueAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\SocialIssueAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(SocialIssueAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): SocialIssueAggregator
|
||||
|
||||
@@ -30,7 +30,7 @@ final class StepAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\StepAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(StepAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): StepAggregator
|
||||
|
||||
@@ -30,7 +30,7 @@ final class UserJobAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\UserJobAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(UserJobAggregator::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,7 +29,7 @@ final class EvaluationTypeAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\EvaluationAggregators\EvaluationTypeAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(EvaluationTypeAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): EvaluationTypeAggregator
|
||||
|
||||
@@ -30,7 +30,7 @@ final class ChildrenNumberAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\HouseholdAggregators\ChildrenNumberAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ChildrenNumberAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): ChildrenNumberAggregator
|
||||
|
||||
@@ -30,7 +30,7 @@ final class CompositionAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\HouseholdAggregators\CompositionAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(CompositionAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): CompositionAggregator
|
||||
|
||||
@@ -30,7 +30,7 @@ final class AgeAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\AgeAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(AgeAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): AgeAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class CountryOfBirthAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\CountryOfBirthAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(CountryOfBirthAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): CountryOfBirthAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class GenderAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\GenderAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(GenderAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): GenderAggregator
|
||||
|
||||
@@ -32,7 +32,7 @@ final class HouseholdPositionAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\HouseholdPositionAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(HouseholdPositionAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): HouseholdPositionAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class MaritalStatusAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\MaritalStatusAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(MaritalStatusAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): MaritalStatusAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class NationalityAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\NationalityAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(NationalityAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): NationalityAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class ActionTypeAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\ActionTypeAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ActionTypeAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): ActionTypeAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class GoalAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\GoalAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(GoalAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): GoalAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class GoalResultAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\GoalResultAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(GoalResultAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): GoalResultAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class JobAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\JobAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(JobAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): JobAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class ResultAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\ResultAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ResultAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): ResultAggregator
|
||||
|
||||
@@ -29,7 +29,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\ScopeAggregator::class);
|
||||
$this->aggregator = self::getContainer()->get(ScopeAggregator::class);
|
||||
}
|
||||
|
||||
public function getAggregator(): ScopeAggregator
|
||||
|
||||
@@ -31,7 +31,7 @@ final class StatAccompanyingCourseDurationTest extends AbstractExportTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->export = self::getContainer()->get(\Chill\PersonBundle\Export\Export\StatAccompanyingCourseDuration::class);
|
||||
$this->export = self::getContainer()->get(StatAccompanyingCourseDuration::class);
|
||||
}
|
||||
|
||||
public function getExport()
|
||||
|
||||
@@ -30,7 +30,7 @@ final class ActiveOnDateFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ActiveOnDateFilter::class);
|
||||
$this->filter = self::getContainer()->get(ActiveOnDateFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): ActiveOnDateFilter
|
||||
|
||||
@@ -30,7 +30,7 @@ final class ActiveOneDayBetweenDatesFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ActiveOneDayBetweenDatesFilter::class);
|
||||
$this->filter = self::getContainer()->get(ActiveOneDayBetweenDatesFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): ActiveOneDayBetweenDatesFilter
|
||||
|
||||
@@ -29,7 +29,7 @@ final class AdministrativeLocationFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\AdministrativeLocationFilter::class);
|
||||
$this->filter = self::getContainer()->get(AdministrativeLocationFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): AdministrativeLocationFilter
|
||||
|
||||
@@ -30,7 +30,7 @@ final class ClosingMotiveFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ClosingMotiveFilter::class);
|
||||
$this->filter = self::getContainer()->get(ClosingMotiveFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): ClosingMotiveFilter
|
||||
|
||||
@@ -28,7 +28,7 @@ final class ConfidentialFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ConfidentialFilter::class);
|
||||
$this->filter = self::getContainer()->get(ConfidentialFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): ConfidentialFilter
|
||||
|
||||
@@ -28,7 +28,7 @@ final class EmergencyFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\EmergencyFilter::class);
|
||||
$this->filter = self::getContainer()->get(EmergencyFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): EmergencyFilter
|
||||
|
||||
@@ -29,7 +29,7 @@ final class EvaluationFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\EvaluationFilter::class);
|
||||
$this->filter = self::getContainer()->get(EvaluationFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): EvaluationFilter
|
||||
|
||||
@@ -31,7 +31,7 @@ final class GeographicalUnitStatFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\GeographicalUnitStatFilter::class);
|
||||
$this->filter = self::getContainer()->get(GeographicalUnitStatFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): GeographicalUnitStatFilter
|
||||
|
||||
@@ -29,7 +29,7 @@ final class IntensityFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\IntensityFilter::class);
|
||||
$this->filter = self::getContainer()->get(IntensityFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): IntensityFilter
|
||||
|
||||
@@ -30,7 +30,7 @@ final class OpenBetweenDatesFilterTest extends AbstractFilterTest
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\OpenBetweenDatesFilter::class);
|
||||
$this->filter = self::getContainer()->get(OpenBetweenDatesFilter::class);
|
||||
}
|
||||
|
||||
public function getFilter(): OpenBetweenDatesFilter
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user