mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix CS
This commit is contained in:
parent
cfcecf1cdc
commit
a996b05ead
@ -78,7 +78,7 @@ class BySocialActionFilter implements FilterInterface
|
|||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'accepted_socialactions' => []
|
'accepted_socialactions' => [],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@ use Chill\MainBundle\Export\ExportDataNormalizerTrait;
|
|||||||
use Chill\MainBundle\Export\ExportGenerationContext;
|
use Chill\MainBundle\Export\ExportGenerationContext;
|
||||||
use Chill\MainBundle\Export\FilterInterface;
|
use Chill\MainBundle\Export\FilterInterface;
|
||||||
use Chill\MainBundle\Form\Type\PickLocationTypeType;
|
use Chill\MainBundle\Form\Type\PickLocationTypeType;
|
||||||
use Chill\MainBundle\Repository\LocationRepository;
|
|
||||||
use Chill\MainBundle\Repository\LocationTypeRepository;
|
use Chill\MainBundle\Repository\LocationTypeRepository;
|
||||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||||
use Doctrine\ORM\Query\Expr\Andx;
|
use Doctrine\ORM\Query\Expr\Andx;
|
||||||
|
@ -344,7 +344,7 @@ class ExportController extends AbstractController
|
|||||||
* @param array $dataExport Raw data from export step
|
* @param array $dataExport Raw data from export step
|
||||||
* @param array $dataFormatter Raw data from formatter 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) {
|
if ($this->filterStatsByCenters) {
|
||||||
$formCenters = $this->createCreateFormExport($alias, 'generate_centers', [], null);
|
$formCenters = $this->createCreateFormExport($alias, 'generate_centers', [], null);
|
||||||
|
@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\Center;
|
|||||||
use Chill\MainBundle\Entity\User;
|
use Chill\MainBundle\Entity\User;
|
||||||
use Chill\MainBundle\Export\Exception\UnauthorizedGenerationException;
|
use Chill\MainBundle\Export\Exception\UnauthorizedGenerationException;
|
||||||
use Chill\MainBundle\Form\Type\Export\ExportType;
|
use Chill\MainBundle\Form\Type\Export\ExportType;
|
||||||
use Chill\MainBundle\Repository\CenterRepository;
|
|
||||||
use Chill\MainBundle\Repository\CenterRepositoryInterface;
|
use Chill\MainBundle\Repository\CenterRepositoryInterface;
|
||||||
use Chill\MainBundle\Security\Authorization\AuthorizationHelperInterface;
|
use Chill\MainBundle\Security\Authorization\AuthorizationHelperInterface;
|
||||||
use Chill\MainBundle\Service\Regroupement\CenterRegroupementResolver;
|
use Chill\MainBundle\Service\Regroupement\CenterRegroupementResolver;
|
||||||
|
@ -113,7 +113,7 @@ class SavedExportOptionsMigrator
|
|||||||
return null;
|
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;
|
\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(
|
return (new RollingDate(
|
||||||
|
@ -57,7 +57,7 @@ final readonly class AccompanyingPeriodWorkEndDateBetweenDateFilter implements F
|
|||||||
return [
|
return [
|
||||||
'start_date' => RollingDate::fromNormalized($formData['start_date']),
|
'start_date' => RollingDate::fromNormalized($formData['start_date']),
|
||||||
'end_date' => RollingDate::fromNormalized($formData['end_date']),
|
'end_date' => RollingDate::fromNormalized($formData['end_date']),
|
||||||
'keep_null' => (bool) ($formData['keep_null'] ?? true)
|
'keep_null' => (bool) ($formData['keep_null'] ?? true),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user