mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
cs: Fix code-style.
This commit is contained in:
parent
e2bc868495
commit
530ad497bc
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
@ -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 = [])
|
||||||
{
|
{
|
||||||
|
@ -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 = [])
|
||||||
{
|
{
|
||||||
|
@ -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,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -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 = [])
|
||||||
{
|
{
|
||||||
|
@ -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 = [])
|
||||||
{
|
{
|
||||||
|
@ -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 = [])
|
||||||
{
|
{
|
||||||
|
@ -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 = [])
|
||||||
{
|
{
|
||||||
|
@ -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 = [])
|
||||||
{
|
{
|
||||||
|
@ -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 = [])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user