mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-12 11:56:14 +00:00
Fix CS
This commit is contained in:
parent
c407c3029f
commit
925fbaed6d
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user