This commit is contained in:
Julien Fastré 2025-04-25 18:25:29 +02:00
parent cfcecf1cdc
commit a996b05ead
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
7 changed files with 6 additions and 8 deletions

View File

@ -78,7 +78,7 @@ class BySocialActionFilter implements FilterInterface
public function getFormDefaultData(): array
{
return [
'accepted_socialactions' => []
'accepted_socialactions' => [],
];
}

View File

@ -16,7 +16,6 @@ use Chill\MainBundle\Export\ExportDataNormalizerTrait;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickLocationTypeType;
use Chill\MainBundle\Repository\LocationRepository;
use Chill\MainBundle\Repository\LocationTypeRepository;
use Chill\MainBundle\Templating\TranslatableStringHelper;
use Doctrine\ORM\Query\Expr\Andx;

View File

@ -344,7 +344,7 @@ class ExportController extends AbstractController
* @param array $dataExport Raw data from export step
* @param array $dataFormatter Raw data from formatter step
*/
private function buildExportDataForNormalization(string $alias, array|null $dataCenters, array $dataExport, array $dataFormatter, ?SavedExport $savedExport): array
private function buildExportDataForNormalization(string $alias, ?array $dataCenters, array $dataExport, array $dataFormatter, ?SavedExport $savedExport): array
{
if ($this->filterStatsByCenters) {
$formCenters = $this->createCreateFormExport($alias, 'generate_centers', [], null);

View File

@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\Center;
use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Export\Exception\UnauthorizedGenerationException;
use Chill\MainBundle\Form\Type\Export\ExportType;
use Chill\MainBundle\Repository\CenterRepository;
use Chill\MainBundle\Repository\CenterRepositoryInterface;
use Chill\MainBundle\Security\Authorization\AuthorizationHelperInterface;
use Chill\MainBundle\Service\Regroupement\CenterRegroupementResolver;

View File

@ -113,7 +113,7 @@ class SavedExportOptionsMigrator
return null;
}
$fixedDate = null !== ($formData['fixedDate'] ?? null) && "" !== $formData['fixedDate'] ?
$fixedDate = null !== ($formData['fixedDate'] ?? null) && '' !== $formData['fixedDate'] ?
\DateTimeImmutable::createFromFormat('Y-m-d H:i:s', sprintf('%s 00:00:00', $formData['fixedDate']), new \DateTimeZone(date_default_timezone_get())) : null;
return (new RollingDate(

View File

@ -57,7 +57,7 @@ final readonly class AccompanyingPeriodWorkEndDateBetweenDateFilter implements F
return [
'start_date' => RollingDate::fromNormalized($formData['start_date']),
'end_date' => RollingDate::fromNormalized($formData['end_date']),
'keep_null' => (bool) ($formData['keep_null'] ?? true)
'keep_null' => (bool) ($formData['keep_null'] ?? true),
];
}