From 331443ae12297bb65b8d0f139d8c50ff783d7eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 28 Mar 2023 18:12:47 +0200 Subject: [PATCH] fix cs --- .../Service/Generator/Generator.php | 8 ++++---- .../Service/Messenger/RequestGenerationMessage.php | 2 +- .../Filter/SocialWorkFilters/SocialWorkTypeFilter.php | 2 -- .../ChillPersonBundle/Search/SimilarPersonMatcher.php | 2 +- .../migrations/Version20230210104424.php | 7 +++++++ 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/Bundle/ChillDocGeneratorBundle/Service/Generator/Generator.php b/src/Bundle/ChillDocGeneratorBundle/Service/Generator/Generator.php index b2655e57c..e2e09f349 100644 --- a/src/Bundle/ChillDocGeneratorBundle/Service/Generator/Generator.php +++ b/src/Bundle/ChillDocGeneratorBundle/Service/Generator/Generator.php @@ -91,10 +91,10 @@ class Generator implements GeneratorInterface $contextGenerationDataNormalized = array_merge( $contextGenerationDataNormalized, - ['creator' => $creator], - $context instanceof DocGeneratorContextWithPublicFormInterface ? - $context->contextGenerationDataDenormalize($template, $entity, $contextGenerationDataNormalized) - : [] + ['creator' => $creator], + $context instanceof DocGeneratorContextWithPublicFormInterface ? + $context->contextGenerationDataDenormalize($template, $entity, $contextGenerationDataNormalized) + : [] ); $data = $context->getData($template, $entity, $contextGenerationDataNormalized); diff --git a/src/Bundle/ChillDocGeneratorBundle/Service/Messenger/RequestGenerationMessage.php b/src/Bundle/ChillDocGeneratorBundle/Service/Messenger/RequestGenerationMessage.php index 99d4074df..e8734e62b 100644 --- a/src/Bundle/ChillDocGeneratorBundle/Service/Messenger/RequestGenerationMessage.php +++ b/src/Bundle/ChillDocGeneratorBundle/Service/Messenger/RequestGenerationMessage.php @@ -27,7 +27,7 @@ class RequestGenerationMessage private array $contextGenerationData; - private \DateTimeImmutable $createdAt; + private \DateTimeImmutable $createdAt; public function __construct( User $creator, diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/SocialWorkTypeFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/SocialWorkTypeFilter.php index a59220d74..853d50744 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/SocialWorkTypeFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/SocialWorkTypeFilter.php @@ -64,7 +64,6 @@ class SocialWorkTypeFilter implements FilterInterface $orX = $qb->expr()->orX(); foreach ($data['goal'] as $goal) { - /** @var Goal $goal */ $andX = $qb->expr()->andX(); $andX->add($qb->expr()->eq('acpw_goal.goal', $goalId = ':goal_'.uniqid())); @@ -73,7 +72,6 @@ class SocialWorkTypeFilter implements FilterInterface if (count($data['result']) > 0) { $orXResult = $qb->expr()->orX(); foreach ($data['result'] as $result) { - /** @var Result $result */ $orXResult->add($qb->expr()->isMemberOf($resultId = ':result_'.uniqid(), 'acpw_goal.results')); $qb->setParameter($resultId, $result); diff --git a/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php b/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php index 7684ac3c3..c77c0758e 100644 --- a/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php +++ b/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php @@ -80,7 +80,7 @@ class SimilarPersonMatcher ->where('SIMILARITY(p.fullnameCanonical, UNACCENT(LOWER(:fullName))) >= :precision') ->andWhere($qb->expr()->in('center_history.center', ':centers')) ->andWhere($qb->expr()->andX( - $qb->expr()->lte('center_history.startDate', 'CURRENT_DATE()'), + $qb->expr()->lte('center_history.startDate', 'CURRENT_DATE()'), $qb->expr()->orX( $qb->expr()->isNull('center_history.endDate'), $qb->expr()->gt('center_history.endDate', 'CURRENT_DATE()') diff --git a/src/Bundle/ChillPersonBundle/migrations/Version20230210104424.php b/src/Bundle/ChillPersonBundle/migrations/Version20230210104424.php index ec802a993..0e2369db4 100644 --- a/src/Bundle/ChillPersonBundle/migrations/Version20230210104424.php +++ b/src/Bundle/ChillPersonBundle/migrations/Version20230210104424.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * Chill is a software for social workers + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Chill\Migrations\Person; use Doctrine\DBAL\Schema\Schema;