mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix new CS
This commit is contained in:
parent
e7a9b10d0d
commit
6f1dd5b3f2
@ -152,7 +152,7 @@ class EventSearch extends AbstractSearch
|
||||
$orWhere = $qb->expr()->orX();
|
||||
|
||||
foreach ($reachableCenters as $center) {
|
||||
$n = $n+1;
|
||||
$n = $n + 1;
|
||||
$circles = $this->authorizationHelper->getReachableScopes(
|
||||
$this->security->getUser(),
|
||||
'CHILL_EVENT_SEE',
|
||||
|
@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
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 Notification\Email;
|
||||
|
||||
use Chill\MainBundle\Entity\Notification;
|
||||
@ -16,6 +25,10 @@ use Symfony\Component\Mailer\MailerInterface;
|
||||
use Symfony\Component\Mime\Email;
|
||||
use Symfony\Component\Translation\Translator;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
class NotificationMailerTest extends TestCase
|
||||
{
|
||||
use ProphecyTrait;
|
||||
@ -104,8 +117,7 @@ class NotificationMailerTest extends TestCase
|
||||
|
||||
private function buildNotificationMailer(
|
||||
MailerInterface $mailer = null,
|
||||
): NotificationMailer
|
||||
{
|
||||
): NotificationMailer {
|
||||
return new NotificationMailer(
|
||||
$mailer,
|
||||
new NullLogger(),
|
||||
|
@ -214,7 +214,7 @@ final class PersonController extends AbstractController
|
||||
{
|
||||
$person = new Person();
|
||||
|
||||
$authorizedCenters =$this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE);
|
||||
$authorizedCenters = $this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE);
|
||||
|
||||
if (1 === count($authorizedCenters)) {
|
||||
$person->setCenter($authorizedCenters[0]);
|
||||
|
@ -108,7 +108,7 @@ class AccompanyingPeriodContextTest extends KernelTestCase
|
||||
): void {
|
||||
$context = $this->buildContext();
|
||||
$template = new DocGeneratorTemplate();
|
||||
$template->setName(["fr" =>"test"])->setContext(AccompanyingPeriodContext::class)
|
||||
$template->setName(["fr" => "test"])->setContext(AccompanyingPeriodContext::class)
|
||||
->setDescription("description")->setActive(true)
|
||||
->setOptions($options);
|
||||
|
||||
|
@ -102,7 +102,7 @@ final class PersonContextTest extends KernelTestCase
|
||||
self::$container->get(ThirdPartyRepository::class)
|
||||
);
|
||||
$template = new DocGeneratorTemplate();
|
||||
$template->setName(["fr" =>"test"])->setContext(AccompanyingPeriodContext::class)
|
||||
$template->setName(["fr" => "test"])->setContext(AccompanyingPeriodContext::class)
|
||||
->setDescription("description")->setActive(true)
|
||||
->setOptions($options);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user