diff --git a/src/Bundle/ChillMainBundle/Service/UserGroup/UserGroupRelatedToUserJobSync.php b/src/Bundle/ChillMainBundle/Service/UserGroup/UserGroupRelatedToUserJobSync.php index be2347c47..bc602cf2a 100644 --- a/src/Bundle/ChillMainBundle/Service/UserGroup/UserGroupRelatedToUserJobSync.php +++ b/src/Bundle/ChillMainBundle/Service/UserGroup/UserGroupRelatedToUserJobSync.php @@ -77,9 +77,9 @@ final readonly class UserGroupRelatedToUserJobSync implements UserGroupRelatedTo return $counter; } -private function removeUserNotRelatedToJob(Connection $connection): int -{ - $sql = <<<'SQL' + private function removeUserNotRelatedToJob(Connection $connection): int + { + $sql = <<<'SQL' DELETE FROM chill_main_user_group_user USING users AS u, chill_main_user_group ug WHERE @@ -105,10 +105,10 @@ private function removeUserNotRelatedToJob(Connection $connection): int ) SQL; - $result = $connection->executeQuery($sql); + $result = $connection->executeQuery($sql); - return $result->rowCount(); -} + return $result->rowCount(); + } private function createNewAssociations(Connection $connection): int { diff --git a/src/Bundle/ChillMainBundle/migrations/Version20250617141354.php b/src/Bundle/ChillMainBundle/migrations/Version20250617141354.php index 241b0a12f..69c2076b3 100644 --- a/src/Bundle/ChillMainBundle/migrations/Version20250617141354.php +++ b/src/Bundle/ChillMainBundle/migrations/Version20250617141354.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\Main; use Doctrine\DBAL\Schema\Schema; diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListAccompanyingPeriodTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListAccompanyingPeriodTest.php index b8818ba9d..181d24548 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListAccompanyingPeriodTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListAccompanyingPeriodTest.php @@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\Center; use Chill\MainBundle\Entity\User; use Chill\MainBundle\Repository\CenterRepositoryInterface; use Chill\MainBundle\Repository\ScopeRepositoryInterface; -use Chill\MainBundle\Security\Authorization\AuthorizationHelperForCurrentUserInterface; use Chill\MainBundle\Security\Authorization\AuthorizationHelperInterface; use Chill\MainBundle\Service\RollingDate\RollingDate; use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface;