From b0918ddd09b439c4c7c90824a58240660cac1cf0 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 21 May 2025 09:59:01 +0200 Subject: [PATCH] Php cs fixes --- .../AccompanyingPeriodWorkMergeService.php | 6 +++--- .../Service/ThirdpartyMergeService.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Service/AccompanyingPeriodWork/AccompanyingPeriodWorkMergeService.php b/src/Bundle/ChillPersonBundle/Service/AccompanyingPeriodWork/AccompanyingPeriodWorkMergeService.php index 490798171..83793fcd2 100644 --- a/src/Bundle/ChillPersonBundle/Service/AccompanyingPeriodWork/AccompanyingPeriodWorkMergeService.php +++ b/src/Bundle/ChillPersonBundle/Service/AccompanyingPeriodWork/AccompanyingPeriodWorkMergeService.php @@ -58,9 +58,9 @@ readonly class AccompanyingPeriodWorkMergeService private function transferEvaluationsSQL(AccompanyingPeriodWork $toKeep, AccompanyingPeriodWork $toDelete): void { $this->em->getConnection()->executeQuery( - "UPDATE chill_person_accompanying_period_work_evaluation cpapwe + 'UPDATE chill_person_accompanying_period_work_evaluation cpapwe SET accompanyingperiodwork_id = :toKeepId - WHERE cpapwe.accompanyingperiodwork_id = :toDeleteId", + WHERE cpapwe.accompanyingperiodwork_id = :toDeleteId', ['toKeepId' => $toKeep->getId(), 'toDeleteId' => $toDelete->getId()] ); } @@ -85,7 +85,7 @@ readonly class AccompanyingPeriodWorkMergeService private function concatenateComments(AccompanyingPeriodWork $toKeep, AccompanyingPeriodWork $toDelete): void { - if ($toDelete->getNote() !== '') { + if ('' !== $toDelete->getNote()) { $toKeep->setNote($toKeep->getNote()."\n\n-----------------\n\n".$toDelete->getNote()); } diff --git a/src/Bundle/ChillThirdPartyBundle/Service/ThirdpartyMergeService.php b/src/Bundle/ChillThirdPartyBundle/Service/ThirdpartyMergeService.php index ec8a134e6..a7cb16929 100644 --- a/src/Bundle/ChillThirdPartyBundle/Service/ThirdpartyMergeService.php +++ b/src/Bundle/ChillThirdPartyBundle/Service/ThirdpartyMergeService.php @@ -118,7 +118,7 @@ class ThirdpartyMergeService // schema name, the table name is prefixed with "public". private function getFullTableName(string $tableName, ?string $schema): string { - if ($schema !== null) { + if (null !== $schema) { return "{$schema}.{$tableName}"; }