Php cs fixes

This commit is contained in:
Julie Lenaerts 2025-05-21 09:59:01 +02:00
parent a368e68abb
commit b0918ddd09
2 changed files with 4 additions and 4 deletions

View File

@ -58,9 +58,9 @@ readonly class AccompanyingPeriodWorkMergeService
private function transferEvaluationsSQL(AccompanyingPeriodWork $toKeep, AccompanyingPeriodWork $toDelete): void private function transferEvaluationsSQL(AccompanyingPeriodWork $toKeep, AccompanyingPeriodWork $toDelete): void
{ {
$this->em->getConnection()->executeQuery( $this->em->getConnection()->executeQuery(
"UPDATE chill_person_accompanying_period_work_evaluation cpapwe 'UPDATE chill_person_accompanying_period_work_evaluation cpapwe
SET accompanyingperiodwork_id = :toKeepId SET accompanyingperiodwork_id = :toKeepId
WHERE cpapwe.accompanyingperiodwork_id = :toDeleteId", WHERE cpapwe.accompanyingperiodwork_id = :toDeleteId',
['toKeepId' => $toKeep->getId(), 'toDeleteId' => $toDelete->getId()] ['toKeepId' => $toKeep->getId(), 'toDeleteId' => $toDelete->getId()]
); );
} }
@ -85,7 +85,7 @@ readonly class AccompanyingPeriodWorkMergeService
private function concatenateComments(AccompanyingPeriodWork $toKeep, AccompanyingPeriodWork $toDelete): void private function concatenateComments(AccompanyingPeriodWork $toKeep, AccompanyingPeriodWork $toDelete): void
{ {
if ($toDelete->getNote() !== '') { if ('' !== $toDelete->getNote()) {
$toKeep->setNote($toKeep->getNote()."\n\n-----------------\n\n".$toDelete->getNote()); $toKeep->setNote($toKeep->getNote()."\n\n-----------------\n\n".$toDelete->getNote());
} }

View File

@ -118,7 +118,7 @@ class ThirdpartyMergeService
// schema name, the table name is prefixed with "public". // schema name, the table name is prefixed with "public".
private function getFullTableName(string $tableName, ?string $schema): string private function getFullTableName(string $tableName, ?string $schema): string
{ {
if ($schema !== null) { if (null !== $schema) {
return "{$schema}.{$tableName}"; return "{$schema}.{$tableName}";
} }