cs: Enable more risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-30 12:27:49 +01:00
parent 733bee06a8
commit 28d2c42454
34 changed files with 45 additions and 45 deletions

View File

@@ -26,8 +26,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
class LoadCustomFields extends AbstractFixture implements
OrderedFixtureInterface,
ContainerAwareInterface
ContainerAwareInterface,
OrderedFixtureInterface
{
/**
* @var ContainerInterface

View File

@@ -47,7 +47,7 @@ use function ucfirst;
/**
* Load people into database.
*/
class LoadPeople extends AbstractFixture implements OrderedFixtureInterface, ContainerAwareInterface
class LoadPeople extends AbstractFixture implements ContainerAwareInterface, OrderedFixtureInterface
{
use \Symfony\Component\DependencyInjection\ContainerAwareTrait;

View File

@@ -58,11 +58,11 @@ use const SORT_REGULAR;
* )
*/
class AccompanyingPeriod implements
TrackCreationInterface,
TrackUpdateInterface,
HasScopesInterface,
GroupSequenceProviderInterface,
HasCentersInterface,
GroupSequenceProviderInterface
HasScopesInterface,
TrackCreationInterface,
TrackUpdateInterface
{
public const INTENSITIES = [self::INTENSITY_OCCASIONAL, self::INTENSITY_REGULAR];

View File

@@ -30,7 +30,7 @@ use Symfony\Component\Serializer\Annotation as Serializer;
* "accompanying_period_work_evaluation": AccompanyingPeriodWorkEvaluation::class,
* })
*/
class AccompanyingPeriodWorkEvaluation implements TrackUpdateInterface, TrackCreationInterface
class AccompanyingPeriodWorkEvaluation implements TrackCreationInterface, TrackUpdateInterface
{
/**
* @ORM\ManyToOne(

View File

@@ -44,7 +44,7 @@ use function uniqid;
/**
* Render a list of people.
*/
class ListPerson implements ListInterface, ExportElementValidatedInterface
class ListPerson implements ExportElementValidatedInterface, ListInterface
{
protected CustomFieldProvider $customFieldProvider;

View File

@@ -16,7 +16,7 @@ use Doctrine\ORM\Query\Expr;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
class BirthdateFilter implements FilterInterface, ExportElementValidatedInterface
class BirthdateFilter implements ExportElementValidatedInterface, FilterInterface
{
public function addRole()
{

View File

@@ -25,8 +25,8 @@ use function in_array;
use function is_array;
class GenderFilter implements
FilterInterface,
ExportElementValidatedInterface
ExportElementValidatedInterface,
FilterInterface
{
/**
* @var TranslatorInterface

View File

@@ -20,8 +20,8 @@ use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
class NationalityFilter implements
FilterInterface,
ExportElementValidatedInterface
ExportElementValidatedInterface,
FilterInterface
{
/**
* @var TranslatableStringHelper

View File

@@ -13,7 +13,7 @@ use Chill\PersonBundle\Entity\AccompanyingPeriodParticipation;
use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class AccompanyingPeriodParticipationNormalizer implements NormalizerInterface, NormalizerAwareInterface
class AccompanyingPeriodParticipationNormalizer implements NormalizerAwareInterface, NormalizerInterface
{
protected ?NormalizerInterface $normalizer = null;

View File

@@ -23,7 +23,7 @@ use function array_key_exists;
use function array_merge;
use function count;
class AccompanyingPeriodResourceNormalizer implements DenormalizerInterface, DenormalizerAwareInterface
class AccompanyingPeriodResourceNormalizer implements DenormalizerAwareInterface, DenormalizerInterface
{
use DenormalizerAwareTrait;
use ObjectToPopulateTrait;

View File

@@ -27,7 +27,7 @@ use function is_array;
* This denormalizer rely on AbstractNormalizer for most of the job, and
* add some logic for synchronizing collection.
*/
class AccompanyingPeriodWorkDenormalizer implements DenormalizerAwareInterface, ContextAwareDenormalizerInterface
class AccompanyingPeriodWorkDenormalizer implements ContextAwareDenormalizerInterface, DenormalizerAwareInterface
{
use DenormalizerAwareTrait;
use ObjectToPopulateTrait;

View File

@@ -23,7 +23,7 @@ use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use function array_key_exists;
class MembersEditorNormalizer implements DenormalizerInterface, DenormalizerAwareInterface
class MembersEditorNormalizer implements DenormalizerAwareInterface, DenormalizerInterface
{
use DenormalizerAwareTrait;

View File

@@ -31,10 +31,10 @@ use function array_key_exists;
* Serialize a Person entity.
*/
class PersonJsonNormalizer implements
NormalizerInterface,
NormalizerAwareInterface,
DenormalizerAwareInterface,
DenormalizerInterface,
DenormalizerAwareInterface
NormalizerAwareInterface,
NormalizerInterface
{
use DenormalizerAwareTrait;
use NormalizerAwareTrait;

View File

@@ -15,7 +15,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class SocialActionNormalizer implements NormalizerInterface, NormalizerAwareInterface
class SocialActionNormalizer implements NormalizerAwareInterface, NormalizerInterface
{
use NormalizerAwareTrait;

View File

@@ -15,7 +15,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class SocialIssueNormalizer implements NormalizerInterface, NormalizerAwareInterface
class SocialIssueNormalizer implements NormalizerAwareInterface, NormalizerInterface
{
use NormalizerAwareTrait;