Explorar o código

fix code quality

Olivier Massot %!s(int64=2) %!d(string=hai) anos
pai
achega
96ddf30727

+ 1 - 1
src/Entity/AccessWish/AccessFamilyWish.php

@@ -25,7 +25,7 @@ class AccessFamilyWish
 
     /**
      * Date de dernière mise à jour de l'entité
-     * @var DateTime
+     * @var \DateTimeInterface
      */
     #[ORM\Column(type: 'datetime', nullable: true)]
     private \DateTimeInterface $updateDate;

+ 1 - 0
src/Entity/AccessWish/AccessWish.php

@@ -15,6 +15,7 @@ use Doctrine\Common\Collections\ArrayCollection;
 use Doctrine\ORM\Mapping as ORM;
 use Doctrine\Common\Collections\Collection;
 use \DateTime;
+use Symfony\Component\Validator\Constraints as Assert;
 
 /**
  * Demande d'inscription d'un Access via l'IEL

+ 2 - 2
src/Entity/OnlineRegistration/OnlineRegistrationOpeningPeriod.php

@@ -31,14 +31,14 @@ class OnlineRegistrationOpeningPeriod
 
     /**
      * Date de début de la période d'IEL
-     * @var DateTime
+     * @var \DateTimeInterface
      */
     #[ORM\Column(type: 'datetime', nullable: false)]
     private \DateTimeInterface $startDate;
 
     /**
      * Date de fin de la période d'IEL
-     * @var DateTime
+     * @var \DateTimeInterface
      */
     #[ORM\Column(type: 'datetime', nullable: false)]
     private \DateTimeInterface $endDate;

+ 8 - 0
src/Enum/Export/ExportFormatEnum.php

@@ -7,6 +7,13 @@ use MyCLabs\Enum\Enum;
 
 /**
  * Formats de sortie des fichiers exportés
+ *
+ * @method static PDF()
+ * @method static CSV()
+ * @method static TXT()
+ * @method static XLSX()
+ * @method static XML()
+ * @method static DOCX()
  */
 class ExportFormatEnum extends Enum
 {
@@ -15,4 +22,5 @@ class ExportFormatEnum extends Enum
     private const TXT = 'txt';
     private const XLSX = 'xlsx';
     private const XML = 'xml';
+    private const DOCX = 'docx';
 }

+ 2 - 1
src/Service/OnlineRegistration/RegistrationStartingService.php

@@ -1,4 +1,4 @@
-<?php
+<?php /** @noinspection ALL */
 
 namespace App\Service\OnlineRegistration;
 
@@ -11,6 +11,7 @@ use App\Service\Utils\DatesUtils;
 use Doctrine\Common\Collections\ArrayCollection;
 use Doctrine\Common\Collections\Collection;
 
+
 /**
  * --- SERVICE INUTILISE POUR LE MOMENT ---
  * Service de lancement de l'inscription en ligne

+ 2 - 2
src/Service/Utils/ArrayUtils.php

@@ -8,7 +8,7 @@ class ArrayUtils
     /**
      * Vérifie que tous les éléments d'une array valident le callback
      *
-     * @param array $array
+     * @param array<mixed> $array
      * @param callable $callback
      * @return bool
      */
@@ -24,7 +24,7 @@ class ArrayUtils
     /**
      * Vérifie qu'au moins un élément d'une array valide le callback
      *
-     * @param array $array
+     * @param array<mixed> $array
      * @param callable $callback
      * @return bool
      */