cs: Fix code-style.

This commit is contained in:
Pol Dellaiera 2021-12-21 12:13:20 +01:00
parent e2bc868495
commit 530ad497bc
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
12 changed files with 23 additions and 16 deletions

View File

@ -11,11 +11,11 @@ declare(strict_types=1);
namespace Chill\DocGeneratorBundle\Serializer\Encoder; namespace Chill\DocGeneratorBundle\Serializer\Encoder;
use Symfony\Component\Serializer\Exception\UnexpectedValueException; use Symfony\Component\Serializer\Encoder\EncoderInterface;
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
use function array_keys; use function array_keys;
use function is_array; use function is_array;
use Symfony\Component\Serializer\Encoder\EncoderInterface;
class DocGenEncoder implements EncoderInterface class DocGenEncoder implements EncoderInterface
{ {

View File

@ -26,6 +26,7 @@ class CollectionDocGenNormalizer implements ContextAwareNormalizerInterface, Nor
/** /**
* @param Collection $object * @param Collection $object
* @param null|string $format
* *
* @return array|ArrayObject|bool|float|int|string|void|null * @return array|ArrayObject|bool|float|int|string|void|null
*/ */

View File

@ -48,6 +48,7 @@ class AddressNormalizer implements ContextAwareNormalizerInterface, NormalizerAw
/** /**
* @param Address $address * @param Address $address
* @param null|string $format
*/ */
public function normalize($address, $format = null, array $context = []) public function normalize($address, $format = null, array $context = [])
{ {

View File

@ -22,6 +22,7 @@ class CollectionNormalizer implements NormalizerAwareInterface, NormalizerInterf
/** /**
* @param Collection $collection * @param Collection $collection
* @param null|string $format
*/ */
public function normalize($collection, $format = null, array $context = []) public function normalize($collection, $format = null, array $context = [])
{ {

View File

@ -85,7 +85,7 @@ class AccompanyingCourseCommentController extends AbstractController
return $this->render('@ChillPerson/AccompanyingCourse/comment_list.html.twig', [ return $this->render('@ChillPerson/AccompanyingCourse/comment_list.html.twig', [
'accompanyingCourse' => $accompanyingCourse, 'accompanyingCourse' => $accompanyingCourse,
'form' => $form->createView(), 'form' => $form->createView(),
'edit_form' => $editForm !== null ? $editForm->createView() : null, 'edit_form' => null !== $editForm ? $editForm->createView() : null,
'commentEditId' => $commentEditId ?? null, 'commentEditId' => $commentEditId ?? null,
]); ]);
} }

View File

@ -93,6 +93,7 @@ class AccompanyingPeriodDocGenNormalizer implements ContextAwareNormalizerInterf
/** /**
* @param AccompanyingPeriod|null $period * @param AccompanyingPeriod|null $period
* @param null|string $format
*/ */
public function normalize($period, $format = null, array $context = []) public function normalize($period, $format = null, array $context = [])
{ {

View File

@ -19,9 +19,9 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
*/ */
final class AccompanyingPeriodOriginNormalizer implements NormalizerInterface final class AccompanyingPeriodOriginNormalizer implements NormalizerInterface
{ {
/** /**
* @param Origin $origin * @param Origin $origin
* @param null|string $format
*/ */
public function normalize($origin, $format = null, array $context = []) public function normalize($origin, $format = null, array $context = [])
{ {

View File

@ -21,6 +21,7 @@ class AccompanyingPeriodParticipationNormalizer implements NormalizerAwareInterf
/** /**
* @param AccompanyingPeriodParticipation $participation * @param AccompanyingPeriodParticipation $participation
* @param null|string $format
*/ */
public function normalize($participation, $format = null, array $context = []) public function normalize($participation, $format = null, array $context = [])
{ {

View File

@ -14,7 +14,6 @@ namespace Chill\PersonBundle\Serializer\Normalizer;
use Chill\MainBundle\Entity\Center; use Chill\MainBundle\Entity\Center;
use Chill\MainBundle\Security\Resolver\CenterResolverManagerInterface; use Chill\MainBundle\Security\Resolver\CenterResolverManagerInterface;
use Chill\MainBundle\Templating\Entity\ChillEntityRenderExtension; use Chill\MainBundle\Templating\Entity\ChillEntityRenderExtension;
use Chill\PersonBundle\Entity\Household\Household;
use Chill\PersonBundle\Entity\Person; use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Repository\PersonRepository; use Chill\PersonBundle\Repository\PersonRepository;
use DateTime; use DateTime;
@ -142,6 +141,7 @@ class PersonJsonNormalizer implements
/** /**
* @param Person $person * @param Person $person
* @param null|string $format
*/ */
public function normalize($person, $format = null, array $context = []) public function normalize($person, $format = null, array $context = [])
{ {

View File

@ -31,6 +31,7 @@ class RelationshipDocGenNormalizer implements ContextAwareNormalizerInterface, N
/** /**
* @param Relationship $relation * @param Relationship $relation
* @param null|string $format
*/ */
public function normalize($relation, $format = null, array $context = []) public function normalize($relation, $format = null, array $context = [])
{ {

View File

@ -73,9 +73,9 @@ final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepository
$orXDate $orXDate
->add( ->add(
$qb->expr()->orX( $qb->expr()->orX(
$qb->expr()->isNull('t.endDate'), $qb->expr()->isNull('t.endDate'),
$qb->expr()->gte('t.endDate - COALESCE(t.warningInterval, :intervalBlank)', ':now') $qb->expr()->gte('t.endDate - COALESCE(t.warningInterval, :intervalBlank)', ':now')
) )
); );
$qb $qb
->setParameter('intervalBlank', new DateInterval('P0D')) ->setParameter('intervalBlank', new DateInterval('P0D'))
@ -87,11 +87,11 @@ final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepository
$orXDate $orXDate
->add( ->add(
$qb->expr()->andX( $qb->expr()->andX(
$qb->expr()->not($qb->expr()->isNull('t.endDate')), $qb->expr()->not($qb->expr()->isNull('t.endDate')),
$qb->expr()->not($qb->expr()->isNull('t.warningInterval')), $qb->expr()->not($qb->expr()->isNull('t.warningInterval')),
$qb->expr()->lte('t.endDate - t.warningInterval', ':now'), $qb->expr()->lte('t.endDate - t.warningInterval', ':now'),
$qb->expr()->gt('t.endDate', ':now') $qb->expr()->gt('t.endDate', ':now')
) )
); );
$qb $qb
->setParameter('now', $now); ->setParameter('now', $now);
@ -102,9 +102,9 @@ final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepository
$orXDate $orXDate
->add( ->add(
$qb->expr()->andX( $qb->expr()->andX(
$qb->expr()->not($qb->expr()->isNull('t.endDate')), $qb->expr()->not($qb->expr()->isNull('t.endDate')),
$qb->expr()->lte('t.endDate', ':now') $qb->expr()->lte('t.endDate', ':now')
) )
); );
$qb $qb
->setParameter('now', $now); ->setParameter('now', $now);

View File

@ -30,6 +30,7 @@ class ThirdPartyNormalizer implements NormalizerAwareInterface, NormalizerInterf
/** /**
* @param ThirdParty $thirdParty * @param ThirdParty $thirdParty
* @param null|string $format
*/ */
public function normalize($thirdParty, $format = null, array $context = []) public function normalize($thirdParty, $format = null, array $context = [])
{ {