mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-13 04:16:14 +00:00
Fix CS
This commit is contained in:
parent
c407c3029f
commit
925fbaed6d
@ -77,8 +77,8 @@ final readonly class UserGroupRelatedToUserJobSync implements UserGroupRelatedTo
|
|||||||
return $counter;
|
return $counter;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function removeUserNotRelatedToJob(Connection $connection): int
|
private function removeUserNotRelatedToJob(Connection $connection): int
|
||||||
{
|
{
|
||||||
$sql = <<<'SQL'
|
$sql = <<<'SQL'
|
||||||
DELETE FROM chill_main_user_group_user
|
DELETE FROM chill_main_user_group_user
|
||||||
USING users AS u, chill_main_user_group ug
|
USING users AS u, chill_main_user_group ug
|
||||||
@ -108,7 +108,7 @@ private function removeUserNotRelatedToJob(Connection $connection): int
|
|||||||
$result = $connection->executeQuery($sql);
|
$result = $connection->executeQuery($sql);
|
||||||
|
|
||||||
return $result->rowCount();
|
return $result->rowCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createNewAssociations(Connection $connection): int
|
private function createNewAssociations(Connection $connection): int
|
||||||
{
|
{
|
||||||
|
@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
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;
|
namespace Chill\Migrations\Main;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\Center;
|
|||||||
use Chill\MainBundle\Entity\User;
|
use Chill\MainBundle\Entity\User;
|
||||||
use Chill\MainBundle\Repository\CenterRepositoryInterface;
|
use Chill\MainBundle\Repository\CenterRepositoryInterface;
|
||||||
use Chill\MainBundle\Repository\ScopeRepositoryInterface;
|
use Chill\MainBundle\Repository\ScopeRepositoryInterface;
|
||||||
use Chill\MainBundle\Security\Authorization\AuthorizationHelperForCurrentUserInterface;
|
|
||||||
use Chill\MainBundle\Security\Authorization\AuthorizationHelperInterface;
|
use Chill\MainBundle\Security\Authorization\AuthorizationHelperInterface;
|
||||||
use Chill\MainBundle\Service\RollingDate\RollingDate;
|
use Chill\MainBundle\Service\RollingDate\RollingDate;
|
||||||
use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface;
|
use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user