Ver Fonte

apply cs fixer

Olivier Massot há 11 meses atrás
pai
commit
535aa72bc9
88 ficheiros alterados com 794 adições e 706 exclusões
  1. 13 17
      src/Commands/Doctrine/SchemaValidateCommand.php
  2. 36 29
      src/Entity/Access/Access.php
  3. 3 2
      src/Entity/Access/AccessCommunication.php
  4. 3 2
      src/Entity/Access/AccessNetworkSetting.php
  5. 3 2
      src/Entity/Access/AccessSocial.php
  6. 3 3
      src/Entity/AccessWish/AccessFamilyWish.php
  7. 15 10
      src/Entity/AccessWish/AccessWish.php
  8. 6 4
      src/Entity/AccessWish/DocumentWish.php
  9. 9 7
      src/Entity/AccessWish/EducationStudentWish.php
  10. 84 60
      src/Entity/Awin/Product.php
  11. 25 17
      src/Entity/Billing/AbstractBillAccounting.php
  12. 3 2
      src/Entity/Billing/AccessBilling.php
  13. 1 0
      src/Entity/Billing/AdvancePayment.php
  14. 10 9
      src/Entity/Billing/Afi.php
  15. 3 2
      src/Entity/Billing/BergerLevrault.php
  16. 1 0
      src/Entity/Billing/Bill.php
  17. 1 0
      src/Entity/Billing/BillAccounting.php
  18. 1 0
      src/Entity/Billing/BillCredit.php
  19. 6 4
      src/Entity/Billing/BillPayment.php
  20. 16 13
      src/Entity/Billing/BillSchedule.php
  21. 6 5
      src/Entity/Billing/BillScheduleDate.php
  22. 7 5
      src/Entity/Billing/BillingExportSetting.php
  23. 3 2
      src/Entity/Billing/BillingSetting.php
  24. 4 2
      src/Entity/Billing/BillingSettingRent.php
  25. 3 2
      src/Entity/Billing/Ciril.php
  26. 10 9
      src/Entity/Billing/CirilCivil.php
  27. 12 9
      src/Entity/Billing/FamilyQuotientBand.php
  28. 13 11
      src/Entity/Billing/FamilyQuotientBandDetail.php
  29. 13 11
      src/Entity/Billing/FamilyQuotientModel.php
  30. 3 2
      src/Entity/Billing/Jvs.php
  31. 10 9
      src/Entity/Billing/Odyssee.php
  32. 3 5
      src/Entity/Billing/PayboxPaymentReturn.php
  33. 3 2
      src/Entity/Billing/Pes.php
  34. 3 2
      src/Entity/Billing/PesSetting.php
  35. 6 5
      src/Entity/Billing/SddBank.php
  36. 9 7
      src/Entity/Billing/SddRegie.php
  37. 10 10
      src/Entity/Booking/AbstractBooking.php
  38. 6 4
      src/Entity/Booking/CalendarSynchro.php
  39. 3 3
      src/Entity/Booking/Course.php
  40. 3 3
      src/Entity/Booking/EducationalProject.php
  41. 3 3
      src/Entity/Booking/Event.php
  42. 6 4
      src/Entity/Booking/Examen.php
  43. 9 6
      src/Entity/Booking/OrganizationHoliday.php
  44. 12 8
      src/Entity/Booking/PersonHoliday.php
  45. 6 5
      src/Entity/Core/AbstractControl.php
  46. 3 2
      src/Entity/Core/AbstractRepair.php
  47. 3 3
      src/Entity/Core/AddressPostal.php
  48. 3 2
      src/Entity/Core/City.php
  49. 3 2
      src/Entity/Core/Department.php
  50. 1 0
      src/Entity/Core/File.php
  51. 22 18
      src/Entity/Core/LoginLog.php
  52. 3 2
      src/Entity/Core/Region.php
  53. 19 20
      src/Entity/Core/Tagg.php
  54. 3 3
      src/Entity/Education/Cycle.php
  55. 3 3
      src/Entity/Education/Education.php
  56. 3 3
      src/Entity/Education/EducationComplement.php
  57. 18 18
      src/Entity/Education/EducationCurriculum.php
  58. 22 18
      src/Entity/Education/EducationCurriculumPack.php
  59. 3 2
      src/Entity/Education/EducationStudent.php
  60. 3 3
      src/Entity/Message/AbstractMessage.php
  61. 0 1
      src/Entity/Message/Email.php
  62. 0 1
      src/Entity/Message/Mail.php
  63. 14 12
      src/Entity/Message/ReportMessage.php
  64. 3 2
      src/Entity/Network/Network.php
  65. 3 2
      src/Entity/Organization/Activity.php
  66. 3 2
      src/Entity/Organization/CotisationByYear.php
  67. 3 2
      src/Entity/Organization/CotisationStaffInfos.php
  68. 3 2
      src/Entity/Organization/OnlineRegistrationDocument.php
  69. 6 5
      src/Entity/Organization/OnlineRegistrationSettings.php
  70. 31 29
      src/Entity/Organization/Organization.php
  71. 3 0
      src/Entity/Person/AllowedIp.php
  72. 1 0
      src/Entity/Person/Medical.php
  73. 2 0
      src/Entity/Person/Person.php
  74. 1 1
      src/Entity/Place/AbstractPlace.php
  75. 3 3
      src/Entity/Product/AbstractProduct.php
  76. 12 12
      src/Entity/Product/Equipment.php
  77. 6 5
      src/Entity/Product/Intangible.php
  78. 6 4
      src/Entity/Product/IntangibleDiscountDetail.php
  79. 6 5
      src/Entity/Product/IntangiblePriceAndDiscount.php
  80. 2 0
      src/Entity/Public/PublicEvent.php
  81. 7 7
      src/Entity/Token/Token.php
  82. 1 0
      src/Service/Doctrine/SchemaValidation/DiffTypeEnum.php
  83. 10 7
      src/Service/Doctrine/SchemaValidation/Difference.php
  84. 80 111
      src/Service/Doctrine/SchemaValidation/SchemaSnippetsMaker.php
  85. 31 39
      src/Service/Doctrine/SchemaValidation/SchemaValidationService.php
  86. 12 21
      src/Service/Utils/EntityUtils.php
  87. 1 4
      src/Service/Utils/FileUtils.php
  88. 24 13
      tests/Unit/Service/Utils/EntityUtilsTest.php

+ 13 - 17
src/Commands/Doctrine/SchemaValidateCommand.php

@@ -15,7 +15,7 @@ use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Output\OutputInterface;
 
 /**
- * Valide le schéma Doctrine en le comparant à la V1
+ * Valide le schéma Doctrine en le comparant à la V1.
  *
  * @see https://ressources-opentalent.atlassian.net/wiki/spaces/DEV/pages/240551231/V+rifier+le+sch+ma+Doctrine+de+la+V2+et+g+n+rer+les+entit+s+et+propri+t+s+manquantes
  */
@@ -27,7 +27,7 @@ class SchemaValidateCommand extends Command
 {
     public function __construct(
         private readonly SchemaValidationService $schemaValidationService,
-        private readonly SchemaSnippetsMaker $schemaSnippetsMaker
+        private readonly SchemaSnippetsMaker $schemaSnippetsMaker,
     ) {
         parent::__construct();
     }
@@ -47,13 +47,13 @@ class SchemaValidateCommand extends Command
             'csv',
             null,
             InputOption::VALUE_NONE,
-            "Print the result in CSV format."
+            'Print the result in CSV format.'
         );
         $this->addOption(
             'snippets',
             null,
             InputOption::VALUE_NONE,
-            "Make snippets of the missing classes and fields"
+            'Make snippets of the missing classes and fields'
         );
     }
 
@@ -81,33 +81,31 @@ class SchemaValidateCommand extends Command
                 $count += (is_array($value) ? count($value) : 1);
             }
 
-            $output->writeln($count . " differences found");
+            $output->writeln($count.' differences found');
         } else {
-            $output->writeln("No difference found");
+            $output->writeln('No difference found');
         }
 
         if ($input->getOption('snippets')) {
             $this->schemaSnippetsMaker->makeSnippets($diff);
-            $output->writeln("Snippets generated");
+            $output->writeln('Snippets generated');
         }
 
         return 0;
     }
 
     /**
-     * @param OutputInterface $output
-     * @param string $entity
      * @param Difference|array<Difference> $differences
-     * @return void
      */
-    protected function printVerbose(OutputInterface $output, string $entity, Difference | array $differences): void {
+    protected function printVerbose(OutputInterface $output, string $entity, Difference|array $differences): void
+    {
         $output->writeln($entity);
 
         if (!is_array($differences)) {
-            $output->writeln($differences->getType()->value . " : " . $differences->getMessage());
+            $output->writeln($differences->getType()->value.' : '.$differences->getMessage());
         } else {
             foreach ($differences as $field => $difference) {
-                $output->writeln(" * " . $field . " - " . $difference->getType()->value . " : " . $difference->getMessage());
+                $output->writeln(' * '.$field.' - '.$difference->getType()->value.' : '.$difference->getMessage());
             }
         }
 
@@ -115,12 +113,10 @@ class SchemaValidateCommand extends Command
     }
 
     /**
-     * @param OutputInterface $output
-     * @param string $entity
      * @param Difference|array<Difference> $differences
-     * @return void
      */
-    protected function printCsv(OutputInterface $output, string $entity, Difference | array $differences): void {
+    protected function printCsv(OutputInterface $output, string $entity, Difference|array $differences): void
+    {
         if (!is_array($differences)) {
             $output->writeln(implode(';', [$entity, '', $differences->getType()->value]));
         } else {

+ 36 - 29
src/Entity/Access/Access.php

@@ -18,8 +18,10 @@ use App\Entity\Billing\Bill;
 use App\Entity\Billing\BillCredit;
 use App\Entity\Billing\BillLine;
 use App\Entity\Billing\EducationalProjectPayer;
+use App\Entity\Booking\AbstractBooking;
 use App\Entity\Booking\Attendance;
 use App\Entity\Booking\AttendanceBooking;
+use App\Entity\Booking\CalendarSynchro;
 use App\Entity\Booking\Course;
 use App\Entity\Booking\EducationalProject;
 use App\Entity\Booking\Event;
@@ -27,6 +29,7 @@ use App\Entity\Booking\EventUser;
 use App\Entity\Booking\ExamenConvocation;
 use App\Entity\Booking\PersonHoliday;
 use App\Entity\Booking\WorkByUser;
+use App\Entity\Core\AbstractControl;
 use App\Entity\Core\Notification;
 use App\Entity\Core\NotificationUser;
 use App\Entity\Core\Tagg;
@@ -52,12 +55,6 @@ use App\Entity\Product\Equipment;
 use App\Entity\Product\EquipmentLoan;
 use App\Entity\Product\EquipmentRepair;
 use App\Entity\Reward\AccessReward;
-use App\Entity\Access\AccessCommunication;
-use App\Entity\Access\AccessNetworkSetting;
-use App\Entity\Access\AccessSocial;
-use App\Entity\Booking\AbstractBooking;
-use App\Entity\Booking\CalendarSynchro;
-use App\Entity\Core\AbstractControl;
 use App\Entity\Token\Token;
 use App\Filter\ApiPlatform\Person\FullNameFilter;
 use App\Filter\ApiPlatform\Utils\InFilter;
@@ -2181,125 +2178,135 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-
-    function getBookingOrganizers(): Collection
+    public function getBookingOrganizers(): Collection
     {
         return $this->bookingOrganizers;
     }
 
-    function setBookingOrganizers(Collection $bookingOrganizers): self
+    public function setBookingOrganizers(Collection $bookingOrganizers): self
     {
         $this->bookingOrganizers = $bookingOrganizers;
+
         return $this;
     }
 
-    function getAdvancePayments(): Collection
+    public function getAdvancePayments(): Collection
     {
         return $this->advancePayments;
     }
 
-    function setAdvancePayments(Collection $advancePayments): self
+    public function setAdvancePayments(Collection $advancePayments): self
     {
         $this->advancePayments = $advancePayments;
+
         return $this;
     }
 
-    function getMessages(): Collection
+    public function getMessages(): Collection
     {
         return $this->messages;
     }
 
-    function setMessages(Collection $messages): self
+    public function setMessages(Collection $messages): self
     {
         $this->messages = $messages;
+
         return $this;
     }
 
-    function getEquipmentManagerControls(): Collection
+    public function getEquipmentManagerControls(): Collection
     {
         return $this->equipmentManagerControls;
     }
 
-    function setEquipmentManagerControls(Collection $equipmentManagerControls): self
+    public function setEquipmentManagerControls(Collection $equipmentManagerControls): self
     {
         $this->equipmentManagerControls = $equipmentManagerControls;
+
         return $this;
     }
 
-    function getAccompanistControl(): Collection
+    public function getAccompanistControl(): Collection
     {
         return $this->accompanistControl;
     }
 
-    function setAccompanistControl(Collection $accompanistControl): self
+    public function setAccompanistControl(Collection $accompanistControl): self
     {
         $this->accompanistControl = $accompanistControl;
+
         return $this;
     }
 
-    function getRewards(): Collection
+    public function getRewards(): Collection
     {
         return $this->rewards;
     }
 
-    function setRewards(Collection $rewards): self
+    public function setRewards(Collection $rewards): self
     {
         $this->rewards = $rewards;
+
         return $this;
     }
 
-    function getAccessSocial(): AccessSocial
+    public function getAccessSocial(): AccessSocial
     {
         return $this->accessSocial;
     }
 
-    function setAccessSocial(AccessSocial $accessSocial): self
+    public function setAccessSocial(AccessSocial $accessSocial): self
     {
         $this->accessSocial = $accessSocial;
+
         return $this;
     }
 
-    function getAccessNetworkSetting(): AccessNetworkSetting
+    public function getAccessNetworkSetting(): AccessNetworkSetting
     {
         return $this->accessNetworkSetting;
     }
 
-    function setAccessNetworkSetting(AccessNetworkSetting $accessNetworkSetting): self
+    public function setAccessNetworkSetting(AccessNetworkSetting $accessNetworkSetting): self
     {
         $this->accessNetworkSetting = $accessNetworkSetting;
+
         return $this;
     }
 
-    function getAccessCommunication(): AccessCommunication
+    public function getAccessCommunication(): AccessCommunication
     {
         return $this->accessCommunication;
     }
 
-    function setAccessCommunication(AccessCommunication $accessCommunication): self
+    public function setAccessCommunication(AccessCommunication $accessCommunication): self
     {
         $this->accessCommunication = $accessCommunication;
+
         return $this;
     }
 
-    function getCalendarSynchro(): CalendarSynchro
+    public function getCalendarSynchro(): CalendarSynchro
     {
         return $this->calendarSynchro;
     }
 
-    function setCalendarSynchro(CalendarSynchro $calendarSynchro): self
+    public function setCalendarSynchro(CalendarSynchro $calendarSynchro): self
     {
         $this->calendarSynchro = $calendarSynchro;
+
         return $this;
     }
 
-    function getTokens(): Collection
+    public function getTokens(): Collection
     {
         return $this->tokens;
     }
 
-    function setTokens(Collection $tokens): self
+    public function setTokens(Collection $tokens): self
     {
         $this->tokens = $tokens;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Access/AccessCommunication.php

@@ -27,14 +27,15 @@ class AccessCommunication
         return $this->id;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Access/AccessNetworkSetting.php

@@ -27,14 +27,15 @@ class AccessNetworkSetting
         return $this->id;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Access/AccessSocial.php

@@ -27,14 +27,15 @@ class AccessSocial
         return $this->id;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 }

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

@@ -110,12 +110,12 @@ class AccessFamilyWish
         $this->closeRegistration = $closeRegistration;
     }
 
-    function getAccessWishesGuardians(): Collection
+    public function getAccessWishesGuardians(): Collection
     {
         return $this->accessWishesGuardians;
     }
 
-    function addAccessWishesGuardian(AccessWish $accessWishesGuardian): self
+    public function addAccessWishesGuardian(AccessWish $accessWishesGuardian): self
     {
         if (!$this->accessWishesGuardians->contains($accessWishesGuardian)) {
             $this->accessWishesGuardians[] = $accessWishesGuardian;
@@ -124,7 +124,7 @@ class AccessFamilyWish
         return $this;
     }
 
-    function removeAccessWishesGuardian(AccessWish $accessWishesGuardian): self
+    public function removeAccessWishesGuardian(AccessWish $accessWishesGuardian): self
     {
         $this->accessWishesGuardians->removeElement($accessWishesGuardian);
 

+ 15 - 10
src/Entity/AccessWish/AccessWish.php

@@ -319,58 +319,63 @@ class AccessWish
         $this->validationState = $validationState;
     }
 
-    function getBillSchedule(): BillSchedule
+    public function getBillSchedule(): BillSchedule
     {
         return $this->billSchedule;
     }
 
-    function setBillSchedule(BillSchedule $billSchedule): self
+    public function setBillSchedule(BillSchedule $billSchedule): self
     {
         $this->billSchedule = $billSchedule;
+
         return $this;
     }
 
-    function getDocumentRib(): DocumentWish
+    public function getDocumentRib(): DocumentWish
     {
         return $this->documentRib;
     }
 
-    function setDocumentRib(DocumentWish $documentRib): self
+    public function setDocumentRib(DocumentWish $documentRib): self
     {
         $this->documentRib = $documentRib;
+
         return $this;
     }
 
-    function getDocumentSepa(): DocumentWish
+    public function getDocumentSepa(): DocumentWish
     {
         return $this->documentSepa;
     }
 
-    function setDocumentSepa(DocumentWish $documentSepa): self
+    public function setDocumentSepa(DocumentWish $documentSepa): self
     {
         $this->documentSepa = $documentSepa;
+
         return $this;
     }
 
-    function getWishPack(): EducationCurriculumPack
+    public function getWishPack(): EducationCurriculumPack
     {
         return $this->wishPack;
     }
 
-    function setWishPack(EducationCurriculumPack $wishPack): self
+    public function setWishPack(EducationCurriculumPack $wishPack): self
     {
         $this->wishPack = $wishPack;
+
         return $this;
     }
 
-    function getFavoritePlace(): Place
+    public function getFavoritePlace(): Place
     {
         return $this->favoritePlace;
     }
 
-    function setFavoritePlace(Place $favoritePlace): self
+    public function setFavoritePlace(Place $favoritePlace): self
     {
         $this->favoritePlace = $favoritePlace;
+
         return $this;
     }
 }

+ 6 - 4
src/Entity/AccessWish/DocumentWish.php

@@ -104,25 +104,27 @@ class DocumentWish
         return $this;
     }
 
-    function getAccessWishRib(): AccessWish
+    public function getAccessWishRib(): AccessWish
     {
         return $this->accessWishRib;
     }
 
-    function setAccessWishRib(AccessWish $accessWishRib): self
+    public function setAccessWishRib(AccessWish $accessWishRib): self
     {
         $this->accessWishRib = $accessWishRib;
+
         return $this;
     }
 
-    function getAccessWishSepa(): AccessWish
+    public function getAccessWishSepa(): AccessWish
     {
         return $this->accessWishSepa;
     }
 
-    function setAccessWishSepa(AccessWish $accessWishSepa): self
+    public function setAccessWishSepa(AccessWish $accessWishSepa): self
     {
         $this->accessWishSepa = $accessWishSepa;
+
         return $this;
     }
 }

+ 9 - 7
src/Entity/AccessWish/EducationStudentWish.php

@@ -171,12 +171,12 @@ class EducationStudentWish
         return $this;
     }
 
-    function getTeachers(): Collection
+    public function getTeachers(): Collection
     {
         return $this->teachers;
     }
 
-    function addTeacher(Access $teacher): self
+    public function addTeacher(Access $teacher): self
     {
         if (!$this->teachers->contains($teacher)) {
             $this->teachers[] = $teacher;
@@ -185,32 +185,34 @@ class EducationStudentWish
         return $this;
     }
 
-    function removeTeacher(Access $teacher): self
+    public function removeTeacher(Access $teacher): self
     {
         $this->teachers->removeElement($teacher);
 
         return $this;
     }
 
-    function getSpeciality(): EquipmentList
+    public function getSpeciality(): EquipmentList
     {
         return $this->speciality;
     }
 
-    function setSpeciality(EquipmentList $speciality): self
+    public function setSpeciality(EquipmentList $speciality): self
     {
         $this->speciality = $speciality;
+
         return $this;
     }
 
-    function getCourse(): Course
+    public function getCourse(): Course
     {
         return $this->course;
     }
 
-    function setCourse(Course $course): self
+    public function setCourse(Course $course): self
     {
         $this->course = $course;
+
         return $this;
     }
 }

+ 84 - 60
src/Entity/Awin/Product.php

@@ -5,9 +5,6 @@ declare(strict_types=1);
 namespace App\Entity\Awin;
 
 use ApiPlatform\Metadata\ApiResource;
-use DateTimeInterface;
-use Doctrine\Common\Collections\ArrayCollection;
-use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -99,319 +96,346 @@ class Product
     protected string $uuid;
 
     #[ORM\Column(type: 'date', options: ['nullable' => true])]
-    protected ?DateTimeInterface $createDate;
+    protected ?\DateTimeInterface $createDate;
 
     #[ORM\Column(type: 'date', options: ['nullable' => true])]
-    protected ?DateTimeInterface $updateDate;
+    protected ?\DateTimeInterface $updateDate;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getSlug(): mixed
+    public function getSlug(): mixed
     {
         return $this->slug;
     }
 
-    function setSlug(mixed $slug): self
+    public function setSlug(mixed $slug): self
     {
         $this->slug = $slug;
+
         return $this;
     }
 
-    function getName(): mixed
+    public function getName(): mixed
     {
         return $this->name;
     }
 
-    function setName(mixed $name): self
+    public function setName(mixed $name): self
     {
         $this->name = $name;
+
         return $this;
     }
 
-    function getDescription(): string
+    public function getDescription(): string
     {
         return $this->description;
     }
 
-    function setDescription(string $description): self
+    public function setDescription(string $description): self
     {
         $this->description = $description;
+
         return $this;
     }
 
-    function getCategoryCode(): mixed
+    public function getCategoryCode(): mixed
     {
         return $this->categoryCode;
     }
 
-    function setCategoryCode(mixed $categoryCode): self
+    public function setCategoryCode(mixed $categoryCode): self
     {
         $this->categoryCode = $categoryCode;
+
         return $this;
     }
 
-    function getSubCategory(): mixed
+    public function getSubCategory(): mixed
     {
         return $this->subCategory;
     }
 
-    function setSubCategory(mixed $subCategory): self
+    public function setSubCategory(mixed $subCategory): self
     {
         $this->subCategory = $subCategory;
+
         return $this;
     }
 
     /**
      * @return string[]
      */
-    function getCategories(): array
+    public function getCategories(): array
     {
         return $this->categories;
     }
 
     /**
      * @param string[] $categories
-     * @return self
      */
-    function setCategories(array $categories): self
+    public function setCategories(array $categories): self
     {
         $this->categories = $categories;
+
         return $this;
     }
 
-    function getDatetimeStart(): mixed
+    public function getDatetimeStart(): mixed
     {
         return $this->datetimeStart;
     }
 
-    function setDatetimeStart(mixed $datetimeStart): self
+    public function setDatetimeStart(mixed $datetimeStart): self
     {
         $this->datetimeStart = $datetimeStart;
+
         return $this;
     }
 
-    function getDatetimeEnd(): mixed
+    public function getDatetimeEnd(): mixed
     {
         return $this->datetimeEnd;
     }
 
-    function setDatetimeEnd(mixed $datetimeEnd): self
+    public function setDatetimeEnd(mixed $datetimeEnd): self
     {
         $this->datetimeEnd = $datetimeEnd;
+
         return $this;
     }
 
     /**
      * @return string[]
      */
-    function getMeetingSchedule(): array
+    public function getMeetingSchedule(): array
     {
         return $this->meetingSchedule;
     }
 
     /**
      * @param array<string> $meetingSchedule
+     *
      * @return $this
      */
-    function setMeetingSchedule(array $meetingSchedule): self
+    public function setMeetingSchedule(array $meetingSchedule): self
     {
         $this->meetingSchedule = $meetingSchedule;
+
         return $this;
     }
 
-    function getPlaceCode(): mixed
+    public function getPlaceCode(): mixed
     {
         return $this->placeCode;
     }
 
-    function setPlaceCode(mixed $placeCode): self
+    public function setPlaceCode(mixed $placeCode): self
     {
         $this->placeCode = $placeCode;
+
         return $this;
     }
 
-    function getPlace(): mixed
+    public function getPlace(): mixed
     {
         return $this->place;
     }
 
-    function setPlace(mixed $place): self
+    public function setPlace(mixed $place): self
     {
         $this->place = $place;
+
         return $this;
     }
 
-    function getStreetAddress(): mixed
+    public function getStreetAddress(): mixed
     {
         return $this->streetAddress;
     }
 
-    function setStreetAddress(mixed $streetAddress): self
+    public function setStreetAddress(mixed $streetAddress): self
     {
         $this->streetAddress = $streetAddress;
+
         return $this;
     }
 
-    function getPostalCode(): mixed
+    public function getPostalCode(): mixed
     {
         return $this->postalCode;
     }
 
-    function setPostalCode(mixed $postalCode): self
+    public function setPostalCode(mixed $postalCode): self
     {
         $this->postalCode = $postalCode;
+
         return $this;
     }
 
-    function getCity(): mixed
+    public function getCity(): mixed
     {
         return $this->city;
     }
 
-    function setCity(mixed $city): self
+    public function setCity(mixed $city): self
     {
         $this->city = $city;
+
         return $this;
     }
 
-    function getCountry(): mixed
+    public function getCountry(): mixed
     {
         return $this->country;
     }
 
-    function setCountry(mixed $country): self
+    public function setCountry(mixed $country): self
     {
         $this->country = $country;
+
         return $this;
     }
 
-    function getLatitude(): mixed
+    public function getLatitude(): mixed
     {
         return $this->latitude;
     }
 
-    function setLatitude(mixed $latitude): self
+    public function setLatitude(mixed $latitude): self
     {
         $this->latitude = $latitude;
+
         return $this;
     }
 
-    function getLongitude(): mixed
+    public function getLongitude(): mixed
     {
         return $this->longitude;
     }
 
-    function setLongitude(mixed $longitude): self
+    public function setLongitude(mixed $longitude): self
     {
         $this->longitude = $longitude;
+
         return $this;
     }
 
-    function getMediumimage(): mixed
+    public function getMediumimage(): mixed
     {
         return $this->mediumimage;
     }
 
-    function setMediumimage(mixed $mediumimage): self
+    public function setMediumimage(mixed $mediumimage): self
     {
         $this->mediumimage = $mediumimage;
+
         return $this;
     }
 
-    function getLargeimage(): mixed
+    public function getLargeimage(): mixed
     {
         return $this->largeimage;
     }
 
-    function setLargeimage(mixed $largeimage): self
+    public function setLargeimage(mixed $largeimage): self
     {
         $this->largeimage = $largeimage;
+
         return $this;
     }
 
-    function getDeepLink(): string
+    public function getDeepLink(): string
     {
         return $this->deepLink;
     }
 
-    function setDeepLink(string $deepLink): self
+    public function setDeepLink(string $deepLink): self
     {
         $this->deepLink = $deepLink;
+
         return $this;
     }
 
-    function getPriceMini(): mixed
+    public function getPriceMini(): mixed
     {
         return $this->priceMini;
     }
 
-    function setPriceMini(mixed $priceMini): self
+    public function setPriceMini(mixed $priceMini): self
     {
         $this->priceMini = $priceMini;
+
         return $this;
     }
 
-    function getPriceMaxi(): mixed
+    public function getPriceMaxi(): mixed
     {
         return $this->priceMaxi;
     }
 
-    function setPriceMaxi(mixed $priceMaxi): self
+    public function setPriceMaxi(mixed $priceMaxi): self
     {
         $this->priceMaxi = $priceMaxi;
+
         return $this;
     }
 
-    function getArtists(): string
+    public function getArtists(): string
     {
         return $this->artists;
     }
 
-    function setArtists(string $artists): self
+    public function setArtists(string $artists): self
     {
         $this->artists = $artists;
+
         return $this;
     }
 
-    function getUuid(): string
+    public function getUuid(): string
     {
         return $this->uuid;
     }
 
-    function setUuid(string $uuid): self
+    public function setUuid(string $uuid): self
     {
         $this->uuid = $uuid;
+
         return $this;
     }
 
-    function getCreateDate(): DateTimeInterface
+    public function getCreateDate(): \DateTimeInterface
     {
         return $this->createDate;
     }
 
-    function setCreateDate(DateTimeInterface $createDate): self
+    public function setCreateDate(\DateTimeInterface $createDate): self
     {
         $this->createDate = $createDate;
+
         return $this;
     }
 
-    function getUpdateDate(): DateTimeInterface
+    public function getUpdateDate(): \DateTimeInterface
     {
         return $this->updateDate;
     }
 
-    function setUpdateDate(DateTimeInterface $updateDate): self
+    public function setUpdateDate(\DateTimeInterface $updateDate): self
     {
         $this->updateDate = $updateDate;
+
         return $this;
     }
 }

+ 25 - 17
src/Entity/Billing/AbstractBillAccounting.php

@@ -13,7 +13,7 @@ use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 /**
- * Facture ou avoir
+ * Facture ou avoir.
  *
  * @see Bill, BillCredit, AdvancePayment
  *
@@ -343,91 +343,99 @@ abstract class AbstractBillAccounting
         return $this;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(?Access $access): self
+    public function setAccess(?Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 
-    function getAccessDetail(): BillAccessDetail
+    public function getAccessDetail(): BillAccessDetail
     {
         return $this->accessDetail;
     }
 
-    function setAccessDetail(BillAccessDetail $accessDetail): self
+    public function setAccessDetail(BillAccessDetail $accessDetail): self
     {
         $this->accessDetail = $accessDetail;
+
         return $this;
     }
 
-    function getBillPeriod(): BillPeriod
+    public function getBillPeriod(): BillPeriod
     {
         return $this->billPeriod;
     }
 
-    function setBillPeriod(BillPeriod $billPeriod): self
+    public function setBillPeriod(BillPeriod $billPeriod): self
     {
         $this->billPeriod = $billPeriod;
+
         return $this;
     }
 
-    function getTotalDetail(): BillTotalDetail
+    public function getTotalDetail(): BillTotalDetail
     {
         return $this->totalDetail;
     }
 
-    function setTotalDetail(BillTotalDetail $totalDetail): self
+    public function setTotalDetail(BillTotalDetail $totalDetail): self
     {
         $this->totalDetail = $totalDetail;
+
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 
-    function getOdyssee(): Odyssee
+    public function getOdyssee(): Odyssee
     {
         return $this->odyssee;
     }
 
-    function setOdyssee(Odyssee $odyssee): self
+    public function setOdyssee(Odyssee $odyssee): self
     {
         $this->odyssee = $odyssee;
+
         return $this;
     }
 
-    function getAfi(): Afi
+    public function getAfi(): Afi
     {
         return $this->afi;
     }
 
-    function setAfi(Afi $afi): self
+    public function setAfi(Afi $afi): self
     {
         $this->afi = $afi;
+
         return $this;
     }
 
-    function getCirilCivil(): CirilCivil
+    public function getCirilCivil(): CirilCivil
     {
         return $this->cirilCivil;
     }
 
-    function setCirilCivil(CirilCivil $cirilCivil): self
+    public function setCirilCivil(CirilCivil $cirilCivil): self
     {
         $this->cirilCivil = $cirilCivil;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Billing/AccessBilling.php

@@ -187,14 +187,15 @@ class AccessBilling
         return $this;
     }
 
-    function getBillSchedule(): BillSchedule
+    public function getBillSchedule(): BillSchedule
     {
         return $this->billSchedule;
     }
 
-    function setBillSchedule(BillSchedule $billSchedule): self
+    public function setBillSchedule(BillSchedule $billSchedule): self
     {
         $this->billSchedule = $billSchedule;
+
         return $this;
     }
 }

+ 1 - 0
src/Entity/Billing/AdvancePayment.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Entity\Billing;

+ 10 - 9
src/Entity/Billing/Afi.php

@@ -5,9 +5,7 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use App;
 use App\Entity\Core\File;
-use DateTimeInterface;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
@@ -24,38 +22,41 @@ class Afi
     protected Collection $bills;
 
     #[ORM\OneToOne(targetEntity: File::class, cascade: ['persist'])]
-    protected App\Entity\Core\File $file;
+    protected File $file;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getBills(): Collection
+    public function getBills(): Collection
     {
         return $this->bills;
     }
 
-    function setBills(Collection $bills): self
+    public function setBills(Collection $bills): self
     {
         $this->bills = $bills;
+
         return $this;
     }
 
-    function getFile(): App\Entity\Core\File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(App\Entity\Core\File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Billing/BergerLevrault.php

@@ -68,14 +68,15 @@ class BergerLevrault
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 1 - 0
src/Entity/Billing/Bill.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Entity\Billing;

+ 1 - 0
src/Entity/Billing/BillAccounting.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Entity\Billing;

+ 1 - 0
src/Entity/Billing/BillCredit.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Entity\Billing;

+ 6 - 4
src/Entity/Billing/BillPayment.php

@@ -153,25 +153,27 @@ class BillPayment
         return $this;
     }
 
-    function getSddBank(): SddBank
+    public function getSddBank(): SddBank
     {
         return $this->sddBank;
     }
 
-    function setSddBank(SddBank $sddBank): self
+    public function setSddBank(SddBank $sddBank): self
     {
         $this->sddBank = $sddBank;
+
         return $this;
     }
 
-    function getSddRegie(): SddRegie
+    public function getSddRegie(): SddRegie
     {
         return $this->sddRegie;
     }
 
-    function setSddRegie(SddRegie $sddRegie): self
+    public function setSddRegie(SddRegie $sddRegie): self
     {
         $this->sddRegie = $sddRegie;
+
         return $this;
     }
 }

+ 16 - 13
src/Entity/Billing/BillSchedule.php

@@ -5,10 +5,8 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use App;
 use App\Entity\AccessWish\AccessWish;
 use App\Entity\Organization\Organization;
-use DateTimeInterface;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
@@ -23,7 +21,7 @@ class BillSchedule
 
     #[ORM\ManyToOne(targetEntity: Organization::class, cascade: [], inversedBy: 'billSchedules')]
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
-    protected App\Entity\Organization\Organization $organization;
+    protected Organization $organization;
 
     #[ORM\OneToMany(mappedBy: 'billSchedule', targetEntity: BillScheduleDate::class, cascade: ['persist'], orphanRemoval: true)]
     protected Collection $scheduleDates;
@@ -34,58 +32,63 @@ class BillSchedule
     #[ORM\OneToMany(mappedBy: 'billSchedule', targetEntity: AccessWish::class, cascade: [], orphanRemoval: false)]
     protected Collection $accessWishes;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getOrganization(): App\Entity\Organization\Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(App\Entity\Organization\Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 
-    function getScheduleDates(): Collection
+    public function getScheduleDates(): Collection
     {
         return $this->scheduleDates;
     }
 
-    function setScheduleDates(Collection $scheduleDates): self
+    public function setScheduleDates(Collection $scheduleDates): self
     {
         $this->scheduleDates = $scheduleDates;
+
         return $this;
     }
 
-    function getAccessBilling(): Collection
+    public function getAccessBilling(): Collection
     {
         return $this->accessBilling;
     }
 
-    function setAccessBilling(Collection $accessBilling): self
+    public function setAccessBilling(Collection $accessBilling): self
     {
         $this->accessBilling = $accessBilling;
+
         return $this;
     }
 
-    function getAccessWishes(): Collection
+    public function getAccessWishes(): Collection
     {
         return $this->accessWishes;
     }
 
-    function setAccessWishes(Collection $accessWishes): self
+    public function setAccessWishes(Collection $accessWishes): self
     {
         $this->accessWishes = $accessWishes;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Billing/BillScheduleDate.php

@@ -5,7 +5,6 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use DateTimeInterface;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -21,25 +20,27 @@ class BillScheduleDate
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
     protected mixed $billSchedule;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getBillSchedule(): mixed
+    public function getBillSchedule(): mixed
     {
         return $this->billSchedule;
     }
 
-    function setBillSchedule(mixed $billSchedule): self
+    public function setBillSchedule(mixed $billSchedule): self
     {
         $this->billSchedule = $billSchedule;
+
         return $this;
     }
 }

+ 7 - 5
src/Entity/Billing/BillingExportSetting.php

@@ -55,22 +55,24 @@ class BillingExportSetting
         return $this;
     }
 
-    function getOrganization(): Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
-    function getStageManagers(): Collection
+
+    public function getStageManagers(): Collection
     {
         return $this->stageManagers;
     }
 
-    function addStageManager(Access $stageManager): self
+    public function addStageManager(Access $stageManager): self
     {
         if (!$this->stageManagers->contains($stageManager)) {
             $this->stageManagers[] = $stageManager;
@@ -79,7 +81,7 @@ class BillingExportSetting
         return $this;
     }
 
-    function removeStageManager(Access $stageManager): self
+    public function removeStageManager(Access $stageManager): self
     {
         $this->stageManagers->removeElement($stageManager);
 

+ 3 - 2
src/Entity/Billing/BillingSetting.php

@@ -132,14 +132,15 @@ class BillingSetting
         return $this;
     }
 
-    function getBillingSettingRent(): BillingSettingRent
+    public function getBillingSettingRent(): BillingSettingRent
     {
         return $this->billingSettingRent;
     }
 
-    function setBillingSettingRent(BillingSettingRent $billingSettingRent): self
+    public function setBillingSettingRent(BillingSettingRent $billingSettingRent): self
     {
         $this->billingSettingRent = $billingSettingRent;
+
         return $this;
     }
 }

+ 4 - 2
src/Entity/Billing/BillingSettingRent.php

@@ -22,16 +22,18 @@ class BillingSettingRent
     #[ORM\OneToOne(inversedBy: 'billingSettingRent', targetEntity: BillingSetting::class, cascade: [])]
     protected BillingSetting $billingSetting;
 
-    function getBillingSetting(): BillingSetting
+    public function getBillingSetting(): BillingSetting
     {
         return $this->billingSetting;
     }
 
-    function setBillingSetting(BillingSetting $billingSetting): self
+    public function setBillingSetting(BillingSetting $billingSetting): self
     {
         $this->billingSetting = $billingSetting;
+
         return $this;
     }
+
     public function getId(): ?int
     {
         return $this->id;

+ 3 - 2
src/Entity/Billing/Ciril.php

@@ -68,14 +68,15 @@ class Ciril
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 10 - 9
src/Entity/Billing/CirilCivil.php

@@ -5,9 +5,7 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use App;
 use App\Entity\Core\File;
-use DateTimeInterface;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
@@ -24,38 +22,41 @@ class CirilCivil
     protected Collection $bills;
 
     #[ORM\OneToOne(targetEntity: File::class, cascade: ['persist'])]
-    protected App\Entity\Core\File $file;
+    protected File $file;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getBills(): Collection
+    public function getBills(): Collection
     {
         return $this->bills;
     }
 
-    function setBills(Collection $bills): self
+    public function setBills(Collection $bills): self
     {
         $this->bills = $bills;
+
         return $this;
     }
 
-    function getFile(): App\Entity\Core\File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(App\Entity\Core\File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 12 - 9
src/Entity/Billing/FamilyQuotientBand.php

@@ -6,7 +6,6 @@ namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
 use App\Entity\Product\IntangibleDiscountDetail;
-use DateTimeInterface;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
@@ -34,47 +33,51 @@ class FamilyQuotientBand
     #[ORM\OneToMany(mappedBy: 'familyQuotientBand', targetEntity: IntangibleDiscountDetail::class, cascade: [], orphanRemoval: true)]
     protected Collection $intangibleDiscountDetails;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getFamilyQuotientModel(): mixed
+    public function getFamilyQuotientModel(): mixed
     {
         return $this->familyQuotientModel;
     }
 
-    function setFamilyQuotientModel(mixed $familyQuotientModel): self
+    public function setFamilyQuotientModel(mixed $familyQuotientModel): self
     {
         $this->familyQuotientModel = $familyQuotientModel;
+
         return $this;
     }
 
-    function getFamilyQuotientBandDetails(): Collection
+    public function getFamilyQuotientBandDetails(): Collection
     {
         return $this->familyQuotientBandDetails;
     }
 
-    function setFamilyQuotientBandDetails(Collection $familyQuotientBandDetails): self
+    public function setFamilyQuotientBandDetails(Collection $familyQuotientBandDetails): self
     {
         $this->familyQuotientBandDetails = $familyQuotientBandDetails;
+
         return $this;
     }
 
-    function getIntangibleDiscountDetails(): Collection
+    public function getIntangibleDiscountDetails(): Collection
     {
         return $this->intangibleDiscountDetails;
     }
 
-    function setIntangibleDiscountDetails(Collection $intangibleDiscountDetails): self
+    public function setIntangibleDiscountDetails(Collection $intangibleDiscountDetails): self
     {
         $this->intangibleDiscountDetails = $intangibleDiscountDetails;
+
         return $this;
     }
 }

+ 13 - 11
src/Entity/Billing/FamilyQuotientBandDetail.php

@@ -5,9 +5,7 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use App;
 use App\Entity\Product\IntangibleDiscountDetail;
-use DateTimeInterface;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
@@ -26,52 +24,56 @@ class FamilyQuotientBandDetail
 
     #[ORM\ManyToOne(targetEntity: ResidenceArea::class, cascade: [], inversedBy: 'intangibleDiscountDetails')]
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
-    protected App\Entity\Billing\ResidenceArea $residenceArea;
+    protected ResidenceArea $residenceArea;
 
     #[ORM\OneToMany(mappedBy: 'familyQuotientBandDetail', targetEntity: IntangibleDiscountDetail::class, cascade: [], orphanRemoval: true)]
     protected Collection $intangibleDiscountDetails;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getFamilyQuotientBand(): mixed
+    public function getFamilyQuotientBand(): mixed
     {
         return $this->familyQuotientBand;
     }
 
-    function setFamilyQuotientBand(mixed $familyQuotientBand): self
+    public function setFamilyQuotientBand(mixed $familyQuotientBand): self
     {
         $this->familyQuotientBand = $familyQuotientBand;
+
         return $this;
     }
 
-    function getResidenceArea(): App\Entity\Billing\ResidenceArea
+    public function getResidenceArea(): ResidenceArea
     {
         return $this->residenceArea;
     }
 
-    function setResidenceArea(App\Entity\Billing\ResidenceArea $residenceArea): self
+    public function setResidenceArea(ResidenceArea $residenceArea): self
     {
         $this->residenceArea = $residenceArea;
+
         return $this;
     }
 
-    function getIntangibleDiscountDetails(): Collection
+    public function getIntangibleDiscountDetails(): Collection
     {
         return $this->intangibleDiscountDetails;
     }
 
-    function setIntangibleDiscountDetails(Collection $intangibleDiscountDetails): self
+    public function setIntangibleDiscountDetails(Collection $intangibleDiscountDetails): self
     {
         $this->intangibleDiscountDetails = $intangibleDiscountDetails;
+
         return $this;
     }
 }

+ 13 - 11
src/Entity/Billing/FamilyQuotientModel.php

@@ -5,10 +5,8 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use App;
 use App\Entity\Organization\Organization;
 use App\Entity\Product\IntangiblePriceAndDiscount;
-use DateTimeInterface;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
@@ -23,7 +21,7 @@ class FamilyQuotientModel
 
     #[ORM\ManyToOne(targetEntity: Organization::class, cascade: [], inversedBy: 'familyQuotientModels')]
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
-    protected App\Entity\Organization\Organization $organization;
+    protected Organization $organization;
 
     #[ORM\OneToMany(mappedBy: 'familyQuotientModel', targetEntity: FamilyQuotientBand::class, cascade: ['persist'], orphanRemoval: true)]
     protected Collection $familyQuotientBands;
@@ -31,47 +29,51 @@ class FamilyQuotientModel
     #[ORM\OneToMany(mappedBy: 'familyQuotientModel', targetEntity: IntangiblePriceAndDiscount::class, cascade: [], orphanRemoval: false)]
     protected Collection $intangiblePriceAndDiscounts;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getOrganization(): App\Entity\Organization\Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(App\Entity\Organization\Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 
-    function getFamilyQuotientBands(): Collection
+    public function getFamilyQuotientBands(): Collection
     {
         return $this->familyQuotientBands;
     }
 
-    function setFamilyQuotientBands(Collection $familyQuotientBands): self
+    public function setFamilyQuotientBands(Collection $familyQuotientBands): self
     {
         $this->familyQuotientBands = $familyQuotientBands;
+
         return $this;
     }
 
-    function getIntangiblePriceAndDiscounts(): Collection
+    public function getIntangiblePriceAndDiscounts(): Collection
     {
         return $this->intangiblePriceAndDiscounts;
     }
 
-    function setIntangiblePriceAndDiscounts(Collection $intangiblePriceAndDiscounts): self
+    public function setIntangiblePriceAndDiscounts(Collection $intangiblePriceAndDiscounts): self
     {
         $this->intangiblePriceAndDiscounts = $intangiblePriceAndDiscounts;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Billing/Jvs.php

@@ -68,14 +68,15 @@ class Jvs
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 10 - 9
src/Entity/Billing/Odyssee.php

@@ -5,9 +5,7 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use App;
 use App\Entity\Core\File;
-use DateTimeInterface;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
@@ -24,38 +22,41 @@ class Odyssee
     protected Collection $bills;
 
     #[ORM\OneToOne(targetEntity: File::class, cascade: ['persist'])]
-    protected App\Entity\Core\File $file;
+    protected File $file;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getBills(): Collection
+    public function getBills(): Collection
     {
         return $this->bills;
     }
 
-    function setBills(Collection $bills): self
+    public function setBills(Collection $bills): self
     {
         $this->bills = $bills;
+
         return $this;
     }
 
-    function getFile(): App\Entity\Core\File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(App\Entity\Core\File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 3 - 5
src/Entity/Billing/PayboxPaymentReturn.php

@@ -5,9 +5,6 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use DateTimeInterface;
-use Doctrine\Common\Collections\ArrayCollection;
-use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -19,14 +16,15 @@ class PayboxPaymentReturn
     #[ORM\GeneratedValue]
     private int $id;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Billing/Pes.php

@@ -68,14 +68,15 @@ class Pes
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Billing/PesSetting.php

@@ -28,14 +28,15 @@ class PesSetting
         return $this->id;
     }
 
-    function getOrganization(): Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Billing/SddBank.php

@@ -38,12 +38,12 @@ class SddBank
         return $this->id;
     }
 
-    function getBillPayments(): Collection
+    public function getBillPayments(): Collection
     {
         return $this->billPayments;
     }
 
-    function addBillPayment(BillPayment $billPayment): self
+    public function addBillPayment(BillPayment $billPayment): self
     {
         if (!$this->billPayments->contains($billPayment)) {
             $this->billPayments[] = $billPayment;
@@ -52,21 +52,22 @@ class SddBank
         return $this;
     }
 
-    function removeBillPayment(BillPayment $billPayment): self
+    public function removeBillPayment(BillPayment $billPayment): self
     {
         $this->billPayments->removeElement($billPayment);
 
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 9 - 7
src/Entity/Billing/SddRegie.php

@@ -42,12 +42,12 @@ class SddRegie
         return $this->id;
     }
 
-    function getBillPayments(): Collection
+    public function getBillPayments(): Collection
     {
         return $this->billPayments;
     }
 
-    function addBillPayment(BillPayment $billPayment): self
+    public function addBillPayment(BillPayment $billPayment): self
     {
         if (!$this->billPayments->contains($billPayment)) {
             $this->billPayments[] = $billPayment;
@@ -56,32 +56,34 @@ class SddRegie
         return $this;
     }
 
-    function removeBillPayment(BillPayment $billPayment): self
+    public function removeBillPayment(BillPayment $billPayment): self
     {
         $this->billPayments->removeElement($billPayment);
 
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 
-    function getBordereau(): File
+    public function getBordereau(): File
     {
         return $this->bordereau;
     }
 
-    function setBordereau(File $bordereau): self
+    public function setBordereau(File $bordereau): self
     {
         $this->bordereau = $bordereau;
+
         return $this;
     }
 }

+ 10 - 10
src/Entity/Booking/AbstractBooking.php

@@ -16,7 +16,7 @@ use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 /**
- * Données d'un évènement générique, classe de base des évènements
+ * Données d'un évènement générique, classe de base des évènements.
  *
  * @see Event, Course, EducationalProject, Examen, OrganizationHoliday, PersonHoliday
  */
@@ -128,12 +128,12 @@ abstract class AbstractBooking
         return $this;
     }
 
-    function getOrganizer(): Collection
+    public function getOrganizer(): Collection
     {
         return $this->organizer;
     }
 
-    function addOrganizer(Access $organizer): self
+    public function addOrganizer(Access $organizer): self
     {
         if (!$this->organizer->contains($organizer)) {
             $this->organizer[] = $organizer;
@@ -142,19 +142,19 @@ abstract class AbstractBooking
         return $this;
     }
 
-    function removeOrganizer(Access $organizer): self
+    public function removeOrganizer(Access $organizer): self
     {
         $this->organizer->removeElement($organizer);
 
         return $this;
     }
 
-    function getEquipments(): Collection
+    public function getEquipments(): Collection
     {
         return $this->equipments;
     }
 
-    function addEquipment(Equipment $equipment): self
+    public function addEquipment(Equipment $equipment): self
     {
         if (!$this->equipments->contains($equipment)) {
             $this->equipments[] = $equipment;
@@ -163,19 +163,19 @@ abstract class AbstractBooking
         return $this;
     }
 
-    function removeEquipment(Equipment $equipment): self
+    public function removeEquipment(Equipment $equipment): self
     {
         $this->equipments->removeElement($equipment);
 
         return $this;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function addTag(Tagg $tag): self
+    public function addTag(Tagg $tag): self
     {
         if (!$this->tags->contains($tag)) {
             $this->tags[] = $tag;
@@ -184,7 +184,7 @@ abstract class AbstractBooking
         return $this;
     }
 
-    function removeTag(Tagg $tag): self
+    public function removeTag(Tagg $tag): self
     {
         $this->tags->removeElement($tag);
 

+ 6 - 4
src/Entity/Booking/CalendarSynchro.php

@@ -32,25 +32,27 @@ class CalendarSynchro
         return $this->id;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 3 - 3
src/Entity/Booking/Course.php

@@ -428,12 +428,12 @@ class Course extends AbstractBooking
         return $this;
     }
 
-    function getEducationStudentWishes(): Collection
+    public function getEducationStudentWishes(): Collection
     {
         return $this->educationStudentWishes;
     }
 
-    function addEducationStudentWishe(EducationStudentWish $educationStudentWishe): self
+    public function addEducationStudentWishe(EducationStudentWish $educationStudentWishe): self
     {
         if (!$this->educationStudentWishes->contains($educationStudentWishe)) {
             $this->educationStudentWishes[] = $educationStudentWishe;
@@ -442,7 +442,7 @@ class Course extends AbstractBooking
         return $this;
     }
 
-    function removeEducationStudentWishe(EducationStudentWish $educationStudentWishe): self
+    public function removeEducationStudentWishe(EducationStudentWish $educationStudentWishe): self
     {
         $this->educationStudentWishes->removeElement($educationStudentWishe);
 

+ 3 - 3
src/Entity/Booking/EducationalProject.php

@@ -15,7 +15,6 @@ use App\Entity\Organization\Organization;
 use App\Entity\Place\AbstractPlace;
 use App\Entity\Place\Room;
 // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
-use App\Entity\Product\Equipment;
 use Doctrine\Common\Collections\ArrayCollection;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
@@ -490,14 +489,15 @@ class EducationalProject extends AbstractBooking
         return $this;
     }
 
-    function getAgeDistribution(): EducationalProjectAge
+    public function getAgeDistribution(): EducationalProjectAge
     {
         return $this->ageDistribution;
     }
 
-    function setAgeDistribution(EducationalProjectAge $ageDistribution): self
+    public function setAgeDistribution(EducationalProjectAge $ageDistribution): self
     {
         $this->ageDistribution = $ageDistribution;
+
         return $this;
     }
 }

+ 3 - 3
src/Entity/Booking/Event.php

@@ -14,7 +14,6 @@ use App\Entity\Place\AbstractPlace;
 use App\Entity\Place\PlaceSystem;
 use App\Entity\Place\Room;
 // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
-use App\Entity\Product\Equipment;
 use Doctrine\Common\Collections\ArrayCollection;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
@@ -455,14 +454,15 @@ class Event extends AbstractBooking
         return $this;
     }
 
-    function getEquipments(): Collection
+    public function getEquipments(): Collection
     {
         return $this->equipments;
     }
 
-    function setEquipments(Collection $equipments): self
+    public function setEquipments(Collection $equipments): self
     {
         $this->equipments = $equipments;
+
         return $this;
     }
 }

+ 6 - 4
src/Entity/Booking/Examen.php

@@ -349,25 +349,27 @@ class Examen extends AbstractBooking
         return $this;
     }
 
-    function getOrganizer(): Collection
+    public function getOrganizer(): Collection
     {
         return $this->organizer;
     }
 
-    function setOrganizer(Collection $organizer): self
+    public function setOrganizer(Collection $organizer): self
     {
         $this->organizer = $organizer;
+
         return $this;
     }
 
-    function getEquipments(): Collection
+    public function getEquipments(): Collection
     {
         return $this->equipments;
     }
 
-    function setEquipments(Collection $equipments): self
+    public function setEquipments(Collection $equipments): self
     {
         $this->equipments = $equipments;
+
         return $this;
     }
 }

+ 9 - 6
src/Entity/Booking/OrganizationHoliday.php

@@ -107,36 +107,39 @@ class OrganizationHoliday extends AbstractBooking
         return $this;
     }
 
-    function getOrganizer(): Collection
+    public function getOrganizer(): Collection
     {
         return $this->organizer;
     }
 
-    function setOrganizer(Collection $organizer): self
+    public function setOrganizer(Collection $organizer): self
     {
         $this->organizer = $organizer;
+
         return $this;
     }
 
-    function getEquipments(): Collection
+    public function getEquipments(): Collection
     {
         return $this->equipments;
     }
 
-    function setEquipments(Collection $equipments): self
+    public function setEquipments(Collection $equipments): self
     {
         $this->equipments = $equipments;
+
         return $this;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function setTags(Collection $tags): self
+    public function setTags(Collection $tags): self
     {
         $this->tags = $tags;
+
         return $this;
     }
 }

+ 12 - 8
src/Entity/Booking/PersonHoliday.php

@@ -110,47 +110,51 @@ class PersonHoliday extends AbstractBooking
         return $this;
     }
 
-    function getOrganizer(): Collection
+    public function getOrganizer(): Collection
     {
         return $this->organizer;
     }
 
-    function setOrganizer(Collection $organizer): self
+    public function setOrganizer(Collection $organizer): self
     {
         $this->organizer = $organizer;
+
         return $this;
     }
 
-    function getEquipments(): Collection
+    public function getEquipments(): Collection
     {
         return $this->equipments;
     }
 
-    function setEquipments(Collection $equipments): self
+    public function setEquipments(Collection $equipments): self
     {
         $this->equipments = $equipments;
+
         return $this;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function setTags(Collection $tags): self
+    public function setTags(Collection $tags): self
     {
         $this->tags = $tags;
+
         return $this;
     }
 
-    function getOrganization(): Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Core/AbstractControl.php

@@ -34,23 +34,24 @@ abstract class AbstractControl
         return $this->id;
     }
 
-    function getAccompanist(): Access
+    public function getAccompanist(): Access
     {
         return $this->accompanist;
     }
 
-    function setAccompanist(Access $accompanist): self
+    public function setAccompanist(Access $accompanist): self
     {
         $this->accompanist = $accompanist;
+
         return $this;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function addTag(Tagg $tag): self
+    public function addTag(Tagg $tag): self
     {
         if (!$this->tags->contains($tag)) {
             $this->tags[] = $tag;
@@ -59,7 +60,7 @@ abstract class AbstractControl
         return $this;
     }
 
-    function removeTag(Tagg $tag): self
+    public function removeTag(Tagg $tag): self
     {
         $this->tags->removeElement($tag);
 

+ 3 - 2
src/Entity/Core/AbstractRepair.php

@@ -29,14 +29,15 @@ abstract class AbstractRepair
         return $this->id;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function setTags(Collection $tags): self
+    public function setTags(Collection $tags): self
     {
         $this->tags = $tags;
+
         return $this;
     }
 }

+ 3 - 3
src/Entity/Core/AddressPostal.php

@@ -254,12 +254,12 @@ class AddressPostal
         return $this;
     }
 
-    function getOrganizationAddressPostals(): Collection
+    public function getOrganizationAddressPostals(): Collection
     {
         return $this->organizationAddressPostals;
     }
 
-    function addOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
+    public function addOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
     {
         if (!$this->organizationAddressPostals->contains($organizationAddressPostal)) {
             $this->organizationAddressPostals[] = $organizationAddressPostal;
@@ -268,7 +268,7 @@ class AddressPostal
         return $this;
     }
 
-    function removeOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
+    public function removeOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
     {
         $this->organizationAddressPostals->removeElement($organizationAddressPostal);
 

+ 3 - 2
src/Entity/Core/City.php

@@ -28,14 +28,15 @@ class City
         return $this->id;
     }
 
-    function getDepartment(): Department
+    public function getDepartment(): Department
     {
         return $this->department;
     }
 
-    function setDepartment(Department $department): self
+    public function setDepartment(Department $department): self
     {
         $this->department = $department;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Core/Department.php

@@ -28,14 +28,15 @@ class Department
         return $this->id;
     }
 
-    function getRegion(): Region
+    public function getRegion(): Region
     {
         return $this->region;
     }
 
-    function setRegion(Region $region): self
+    public function setRegion(Region $region): self
     {
         $this->region = $region;
+
         return $this;
     }
 }

+ 1 - 0
src/Entity/Core/File.php

@@ -778,6 +778,7 @@ class File
     public function setCalendarSynchro(CalendarSynchro $calendarSynchro): self
     {
         $this->calendarSynchro = $calendarSynchro;
+
         return $this;
     }
 }

+ 22 - 18
src/Entity/Core/LoginLog.php

@@ -5,9 +5,6 @@ declare(strict_types=1);
 namespace App\Entity\Core;
 
 use ApiPlatform\Metadata\ApiResource;
-use DateTimeInterface;
-use Doctrine\Common\Collections\ArrayCollection;
-use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -32,85 +29,92 @@ class LoginLog
     protected mixed $ip;
 
     #[ORM\Column(type: 'date', options: ['nullable' => true])]
-    protected ?DateTimeInterface $date;
+    protected ?\DateTimeInterface $date;
 
     #[ORM\Column]
     protected mixed $type;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getLogin(): mixed
+    public function getLogin(): mixed
     {
         return $this->login;
     }
 
-    function setLogin(mixed $login): self
+    public function setLogin(mixed $login): self
     {
         $this->login = $login;
+
         return $this;
     }
 
-    function getOrganizationId(): int
+    public function getOrganizationId(): int
     {
         return $this->organizationId;
     }
 
-    function setOrganizationId(int $organizationId): self
+    public function setOrganizationId(int $organizationId): self
     {
         $this->organizationId = $organizationId;
+
         return $this;
     }
 
-    function getNavigateur(): mixed
+    public function getNavigateur(): mixed
     {
         return $this->navigateur;
     }
 
-    function setNavigateur(mixed $navigateur): self
+    public function setNavigateur(mixed $navigateur): self
     {
         $this->navigateur = $navigateur;
+
         return $this;
     }
 
-    function getIp(): mixed
+    public function getIp(): mixed
     {
         return $this->ip;
     }
 
-    function setIp(mixed $ip): self
+    public function setIp(mixed $ip): self
     {
         $this->ip = $ip;
+
         return $this;
     }
 
-    function getDate(): DateTimeInterface
+    public function getDate(): \DateTimeInterface
     {
         return $this->date;
     }
 
-    function setDate(DateTimeInterface $date): self
+    public function setDate(\DateTimeInterface $date): self
     {
         $this->date = $date;
+
         return $this;
     }
 
-    function getType(): mixed
+    public function getType(): mixed
     {
         return $this->type;
     }
 
-    function setType(mixed $type): self
+    public function setType(mixed $type): self
     {
         $this->type = $type;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Core/Region.php

@@ -28,14 +28,15 @@ class Region
         return $this->id;
     }
 
-    function getCountry(): Country
+    public function getCountry(): Country
     {
         return $this->country;
     }
 
-    function setCountry(Country $country): self
+    public function setCountry(Country $country): self
     {
         $this->country = $country;
+
         return $this;
     }
 }

+ 19 - 20
src/Entity/Core/Tagg.php

@@ -7,8 +7,8 @@ namespace App\Entity\Core;
 use ApiPlatform\Metadata\ApiResource;
 use App\Entity\Access\Access;
 use App\Entity\AccessWish\AccessWish;
-use App\Entity\Billing\AbstractBillingIntangible;
 use App\Entity\Billing\AbstractBillAccounting;
+use App\Entity\Billing\AbstractBillingIntangible;
 use App\Entity\Billing\BillPayment;
 use App\Entity\Booking\AbstractBooking;
 use App\Entity\Booking\Course;
@@ -192,7 +192,6 @@ class Tagg
         $this->repairs = new ArrayCollection();
         $this->controls = new ArrayCollection();
         $this->educationCurriculumPacks = new ArrayCollection();
-
     }
 
     public function getId(): ?int
@@ -941,12 +940,12 @@ class Tagg
         return $this;
     }
 
-    function getProducts(): Collection
+    public function getProducts(): Collection
     {
         return $this->products;
     }
 
-    function addProduct(AbstractProduct $product): self
+    public function addProduct(AbstractProduct $product): self
     {
         if (!$this->products->contains($product)) {
             $this->products[] = $product;
@@ -955,19 +954,19 @@ class Tagg
         return $this;
     }
 
-    function removeProduct(AbstractProduct $product): self
+    public function removeProduct(AbstractProduct $product): self
     {
         $this->products->removeElement($product);
 
         return $this;
     }
 
-    function getBookings(): Collection
+    public function getBookings(): Collection
     {
         return $this->bookings;
     }
 
-    function addBooking(AbstractBooking $booking): self
+    public function addBooking(AbstractBooking $booking): self
     {
         if (!$this->bookings->contains($booking)) {
             $this->bookings[] = $booking;
@@ -976,19 +975,19 @@ class Tagg
         return $this;
     }
 
-    function removeBooking(AbstractBooking $booking): self
+    public function removeBooking(AbstractBooking $booking): self
     {
         $this->bookings->removeElement($booking);
 
         return $this;
     }
 
-    function getMessages(): Collection
+    public function getMessages(): Collection
     {
         return $this->messages;
     }
 
-    function addMessage(AbstractMessage $message): self
+    public function addMessage(AbstractMessage $message): self
     {
         if (!$this->messages->contains($message)) {
             $this->messages[] = $message;
@@ -997,19 +996,19 @@ class Tagg
         return $this;
     }
 
-    function removeMessage(AbstractMessage $message): self
+    public function removeMessage(AbstractMessage $message): self
     {
         $this->messages->removeElement($message);
 
         return $this;
     }
 
-    function getRepairs(): Collection
+    public function getRepairs(): Collection
     {
         return $this->repairs;
     }
 
-    function addRepair(AbstractRepair $repair): self
+    public function addRepair(AbstractRepair $repair): self
     {
         if (!$this->repairs->contains($repair)) {
             $this->repairs[] = $repair;
@@ -1018,19 +1017,19 @@ class Tagg
         return $this;
     }
 
-    function removeRepair(AbstractRepair $repair): self
+    public function removeRepair(AbstractRepair $repair): self
     {
         $this->repairs->removeElement($repair);
 
         return $this;
     }
 
-    function getControls(): Collection
+    public function getControls(): Collection
     {
         return $this->controls;
     }
 
-    function addControl(AbstractControl $control): self
+    public function addControl(AbstractControl $control): self
     {
         if (!$this->controls->contains($control)) {
             $this->controls[] = $control;
@@ -1039,19 +1038,19 @@ class Tagg
         return $this;
     }
 
-    function removeControl(AbstractControl $control): self
+    public function removeControl(AbstractControl $control): self
     {
         $this->controls->removeElement($control);
 
         return $this;
     }
 
-    function getEducationCurriculumPacks(): Collection
+    public function getEducationCurriculumPacks(): Collection
     {
         return $this->educationCurriculumPacks;
     }
 
-    function addEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
+    public function addEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
     {
         if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
             $this->educationCurriculumPacks[] = $educationCurriculumPack;
@@ -1060,7 +1059,7 @@ class Tagg
         return $this;
     }
 
-    function removeEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
+    public function removeEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
     {
         $this->educationCurriculumPacks->removeElement($educationCurriculumPack);
 

+ 3 - 3
src/Entity/Education/Cycle.php

@@ -169,12 +169,12 @@ class Cycle
         return $this;
     }
 
-    function getEducationCurriculums(): Collection
+    public function getEducationCurriculums(): Collection
     {
         return $this->educationCurriculums;
     }
 
-    function addEducationCurriculum(EducationCurriculum $educationCurriculum): self
+    public function addEducationCurriculum(EducationCurriculum $educationCurriculum): self
     {
         if (!$this->educationCurriculums->contains($educationCurriculum)) {
             $this->educationCurriculums[] = $educationCurriculum;
@@ -183,7 +183,7 @@ class Cycle
         return $this;
     }
 
-    function removeEducationCurriculum(EducationCurriculum $educationCurriculum): self
+    public function removeEducationCurriculum(EducationCurriculum $educationCurriculum): self
     {
         $this->educationCurriculums->removeElement($educationCurriculum);
 

+ 3 - 3
src/Entity/Education/Education.php

@@ -289,12 +289,12 @@ class Education
         return $this;
     }
 
-    function getEducationWishes(): Collection
+    public function getEducationWishes(): Collection
     {
         return $this->educationWishes;
     }
 
-    function addEducationWishe(EducationStudentWish $educationWishe): self
+    public function addEducationWishe(EducationStudentWish $educationWishe): self
     {
         if (!$this->educationWishes->contains($educationWishe)) {
             $this->educationWishes[] = $educationWishe;
@@ -303,7 +303,7 @@ class Education
         return $this;
     }
 
-    function removeEducationWishe(EducationStudentWish $educationWishe): self
+    public function removeEducationWishe(EducationStudentWish $educationWishe): self
     {
         $this->educationWishes->removeElement($educationWishe);
 

+ 3 - 3
src/Entity/Education/EducationComplement.php

@@ -34,12 +34,12 @@ class EducationComplement
         return $this->id;
     }
 
-    function getEducations(): Collection
+    public function getEducations(): Collection
     {
         return $this->educations;
     }
 
-    function addEducation(Education $education): self
+    public function addEducation(Education $education): self
     {
         if (!$this->educations->contains($education)) {
             $this->educations[] = $education;
@@ -48,7 +48,7 @@ class EducationComplement
         return $this;
     }
 
-    function removeEducation(Education $education): self
+    public function removeEducation(Education $education): self
     {
         $this->educations->removeElement($education);
 

+ 18 - 18
src/Entity/Education/EducationCurriculum.php

@@ -190,12 +190,12 @@ class EducationCurriculum
         return $this;
     }
 
-    function getEducationStudentWish(): Collection
+    public function getEducationStudentWish(): Collection
     {
         return $this->educationStudentWish;
     }
 
-    function addEducationStudentWish(EducationStudentWish $educationStudentWish): self
+    public function addEducationStudentWish(EducationStudentWish $educationStudentWish): self
     {
         if (!$this->educationStudentWish->contains($educationStudentWish)) {
             $this->educationStudentWish[] = $educationStudentWish;
@@ -204,19 +204,19 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeEducationStudentWish(EducationStudentWish $educationStudentWish): self
+    public function removeEducationStudentWish(EducationStudentWish $educationStudentWish): self
     {
         $this->educationStudentWish->removeElement($educationStudentWish);
 
         return $this;
     }
 
-    function getCourses(): Collection
+    public function getCourses(): Collection
     {
         return $this->courses;
     }
 
-    function addCourse(Course $course): self
+    public function addCourse(Course $course): self
     {
         if (!$this->courses->contains($course)) {
             $this->courses[] = $course;
@@ -225,19 +225,19 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeCourse(Course $course): self
+    public function removeCourse(Course $course): self
     {
         $this->courses->removeElement($course);
 
         return $this;
     }
 
-    function getExamens(): Collection
+    public function getExamens(): Collection
     {
         return $this->examens;
     }
 
-    function addExamen(Examen $examen): self
+    public function addExamen(Examen $examen): self
     {
         if (!$this->examens->contains($examen)) {
             $this->examens[] = $examen;
@@ -246,19 +246,19 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeExamen(Examen $examen): self
+    public function removeExamen(Examen $examen): self
     {
         $this->examens->removeElement($examen);
 
         return $this;
     }
 
-    function getIntangibles(): Collection
+    public function getIntangibles(): Collection
     {
         return $this->intangibles;
     }
 
-    function addIntangible(Intangible $intangible): self
+    public function addIntangible(Intangible $intangible): self
     {
         if (!$this->intangibles->contains($intangible)) {
             $this->intangibles[] = $intangible;
@@ -267,19 +267,19 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeIntangible(Intangible $intangible): self
+    public function removeIntangible(Intangible $intangible): self
     {
         $this->intangibles->removeElement($intangible);
 
         return $this;
     }
 
-    function getRequiredChoicesEducationCurriculumPacks(): Collection
+    public function getRequiredChoicesEducationCurriculumPacks(): Collection
     {
         return $this->requiredChoicesEducationCurriculumPacks;
     }
 
-    function addRequiredChoicesEducationCurriculumPack(
+    public function addRequiredChoicesEducationCurriculumPack(
         EducationCurriculumPack $requiredChoicesEducationCurriculumPack,
     ): self {
         if (!$this->requiredChoicesEducationCurriculumPacks->contains($requiredChoicesEducationCurriculumPack)) {
@@ -289,7 +289,7 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeRequiredChoicesEducationCurriculumPack(
+    public function removeRequiredChoicesEducationCurriculumPack(
         EducationCurriculumPack $requiredChoicesEducationCurriculumPack,
     ): self {
         $this->requiredChoicesEducationCurriculumPacks->removeElement($requiredChoicesEducationCurriculumPack);
@@ -297,12 +297,12 @@ class EducationCurriculum
         return $this;
     }
 
-    function getOptionnalEducationCurriculumPacks(): Collection
+    public function getOptionnalEducationCurriculumPacks(): Collection
     {
         return $this->optionnalEducationCurriculumPacks;
     }
 
-    function addOptionnalEducationCurriculumPack(EducationCurriculumPack $optionnalEducationCurriculumPack): self
+    public function addOptionnalEducationCurriculumPack(EducationCurriculumPack $optionnalEducationCurriculumPack): self
     {
         if (!$this->optionnalEducationCurriculumPacks->contains($optionnalEducationCurriculumPack)) {
             $this->optionnalEducationCurriculumPacks[] = $optionnalEducationCurriculumPack;
@@ -311,7 +311,7 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeOptionnalEducationCurriculumPack(EducationCurriculumPack $optionnalEducationCurriculumPack): self
+    public function removeOptionnalEducationCurriculumPack(EducationCurriculumPack $optionnalEducationCurriculumPack): self
     {
         $this->optionnalEducationCurriculumPacks->removeElement($optionnalEducationCurriculumPack);
 

+ 22 - 18
src/Entity/Education/EducationCurriculumPack.php

@@ -5,12 +5,9 @@ declare(strict_types=1);
 namespace App\Entity\Education;
 
 use ApiPlatform\Metadata\ApiResource;
-use App;
 use App\Entity\Core\Tagg;
 use App\Entity\Organization\Organization;
 use App\Entity\Product\Intangible;
-use DateTimeInterface;
-use Doctrine\Common\Collections\ArrayCollection;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
@@ -25,7 +22,7 @@ class EducationCurriculumPack
 
     #[ORM\ManyToOne(targetEntity: Organization::class, cascade: [], inversedBy: 'educationCurriculumPacks')]
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
-    public App\Entity\Organization\Organization $organization;
+    public Organization $organization;
 
     #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'educationCurriculumPacks', cascade: ['persist'], orphanRemoval: false)]
     public Collection $tags;
@@ -57,80 +54,87 @@ class EducationCurriculumPack
     #[ORM\ManyToMany(targetEntity: Intangible::class, mappedBy: 'educationCurriculumPacks', cascade: [], orphanRemoval: false)]
     public Collection $intangibles;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getOrganization(): App\Entity\Organization\Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(App\Entity\Organization\Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function setTags(Collection $tags): self
+    public function setTags(Collection $tags): self
     {
         $this->tags = $tags;
+
         return $this;
     }
 
-    function getRequiredEducationCurriculums(): Collection
+    public function getRequiredEducationCurriculums(): Collection
     {
         return $this->requiredEducationCurriculums;
     }
 
-    function setRequiredEducationCurriculums(Collection $requiredEducationCurriculums): self
+    public function setRequiredEducationCurriculums(Collection $requiredEducationCurriculums): self
     {
         $this->requiredEducationCurriculums = $requiredEducationCurriculums;
+
         return $this;
     }
 
-    function getRequiredChoicesEducationCurriculums(): Collection
+    public function getRequiredChoicesEducationCurriculums(): Collection
     {
         return $this->requiredChoicesEducationCurriculums;
     }
 
-    function setRequiredChoicesEducationCurriculums(Collection $requiredChoicesEducationCurriculums): self
+    public function setRequiredChoicesEducationCurriculums(Collection $requiredChoicesEducationCurriculums): self
     {
         $this->requiredChoicesEducationCurriculums = $requiredChoicesEducationCurriculums;
+
         return $this;
     }
 
-    function getOptionnalEducationCurriculums(): Collection
+    public function getOptionnalEducationCurriculums(): Collection
     {
         return $this->optionnalEducationCurriculums;
     }
 
-    function setOptionnalEducationCurriculums(Collection $optionnalEducationCurriculums): self
+    public function setOptionnalEducationCurriculums(Collection $optionnalEducationCurriculums): self
     {
         $this->optionnalEducationCurriculums = $optionnalEducationCurriculums;
+
         return $this;
     }
 
-    function getIntangibles(): Collection
+    public function getIntangibles(): Collection
     {
         return $this->intangibles;
     }
 
-    function setIntangibles(Collection $intangibles): self
+    public function setIntangibles(Collection $intangibles): self
     {
         $this->intangibles = $intangibles;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Education/EducationStudent.php

@@ -231,14 +231,15 @@ class EducationStudent
         return $this;
     }
 
-    function getSpeciality(): EquipmentList
+    public function getSpeciality(): EquipmentList
     {
         return $this->speciality;
     }
 
-    function setSpeciality(EquipmentList $speciality): self
+    public function setSpeciality(EquipmentList $speciality): self
     {
         $this->speciality = $speciality;
+
         return $this;
     }
 }

+ 3 - 3
src/Entity/Message/AbstractMessage.php

@@ -164,12 +164,12 @@ abstract class AbstractMessage
         return $this;
     }
 
-    function getReportMessage(): Collection
+    public function getReportMessage(): Collection
     {
         return $this->reportMessage;
     }
 
-    function addReportMessage(ReportMessage $reportMessage): self
+    public function addReportMessage(ReportMessage $reportMessage): self
     {
         if (!$this->reportMessage->contains($reportMessage)) {
             $this->reportMessage[] = $reportMessage;
@@ -178,7 +178,7 @@ abstract class AbstractMessage
         return $this;
     }
 
-    function removeReportMessage(ReportMessage $reportMessage): self
+    public function removeReportMessage(ReportMessage $reportMessage): self
     {
         $this->reportMessage->removeElement($reportMessage);
 

+ 0 - 1
src/Entity/Message/Email.php

@@ -6,7 +6,6 @@ namespace App\Entity\Message;
 
 use ApiPlatform\Metadata\ApiResource;
 use App\Entity\Access\Access;
-use App\Entity\Core\File;
 use App\Entity\Core\Tagg;
 // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
 use Doctrine\Common\Collections\ArrayCollection;

+ 0 - 1
src/Entity/Message/Mail.php

@@ -6,7 +6,6 @@ namespace App\Entity\Message;
 
 use ApiPlatform\Metadata\ApiResource;
 use App\Entity\Access\Access;
-use App\Entity\Core\File;
 use App\Entity\Core\Tagg;
 // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
 use Doctrine\Common\Collections\ArrayCollection;

+ 14 - 12
src/Entity/Message/ReportMessage.php

@@ -5,10 +5,8 @@ declare(strict_types=1);
 namespace App\Entity\Message;
 
 use ApiPlatform\Metadata\ApiResource;
-use App;
 use App\Entity\Access\Access;
 use App\Entity\Organization\Organization;
-use DateTimeInterface;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -26,53 +24,57 @@ class ReportMessage
 
     #[ORM\ManyToOne(targetEntity: Access::class, cascade: [])]
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
-    public App\Entity\Access\Access $access;
+    public Access $access;
 
     #[ORM\ManyToOne(targetEntity: Organization::class, cascade: [])]
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
-    public App\Entity\Organization\Organization $organization;
+    public Organization $organization;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getMessage(): mixed
+    public function getMessage(): mixed
     {
         return $this->message;
     }
 
-    function setMessage(mixed $message): self
+    public function setMessage(mixed $message): self
     {
         $this->message = $message;
+
         return $this;
     }
 
-    function getAccess(): App\Entity\Access\Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(App\Entity\Access\Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 
-    function getOrganization(): App\Entity\Organization\Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(App\Entity\Organization\Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Network/Network.php

@@ -129,14 +129,15 @@ class Network
         return $this;
     }
 
-    function getImage(): File
+    public function getImage(): File
     {
         return $this->image;
     }
 
-    function setImage(File $image): self
+    public function setImage(File $image): self
     {
         $this->image = $image;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Organization/Activity.php

@@ -196,14 +196,15 @@ class Activity
         return $this;
     }
 
-    function getTypeOfSection(): TypeOfPractice
+    public function getTypeOfSection(): TypeOfPractice
     {
         return $this->typeOfSection;
     }
 
-    function setTypeOfSection(TypeOfPractice $typeOfSection): self
+    public function setTypeOfSection(TypeOfPractice $typeOfSection): self
     {
         $this->typeOfSection = $typeOfSection;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Organization/CotisationByYear.php

@@ -43,14 +43,15 @@ class CotisationByYear
         return $this;
     }
 
-    function getCotisationStaffInfos(): CotisationStaffInfos
+    public function getCotisationStaffInfos(): CotisationStaffInfos
     {
         return $this->cotisationStaffInfos;
     }
 
-    function setCotisationStaffInfos(CotisationStaffInfos $cotisationStaffInfos): self
+    public function setCotisationStaffInfos(CotisationStaffInfos $cotisationStaffInfos): self
     {
         $this->cotisationStaffInfos = $cotisationStaffInfos;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Organization/CotisationStaffInfos.php

@@ -27,14 +27,15 @@ class CotisationStaffInfos
         return $this->id;
     }
 
-    function getCotisationByYear(): CotisationByYear
+    public function getCotisationByYear(): CotisationByYear
     {
         return $this->cotisationByYear;
     }
 
-    function setCotisationByYear(CotisationByYear $cotisationByYear): self
+    public function setCotisationByYear(CotisationByYear $cotisationByYear): self
     {
         $this->cotisationByYear = $cotisationByYear;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Organization/OnlineRegistrationDocument.php

@@ -60,15 +60,16 @@ class OnlineRegistrationDocument
         return $this;
     }
 
-    function getAdultStudentOnlineRegistrationSettings(): OnlineRegistrationSettings
+    public function getAdultStudentOnlineRegistrationSettings(): OnlineRegistrationSettings
     {
         return $this->adultStudentOnlineRegistrationSettings;
     }
 
-    function setAdultStudentOnlineRegistrationSettings(
+    public function setAdultStudentOnlineRegistrationSettings(
         OnlineRegistrationSettings $adultStudentOnlineRegistrationSettings,
     ): self {
         $this->adultStudentOnlineRegistrationSettings = $adultStudentOnlineRegistrationSettings;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Organization/OnlineRegistrationSettings.php

@@ -247,23 +247,24 @@ class OnlineRegistrationSettings
         return $this;
     }
 
-    function getOrganization(): Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 
-    function getAdultStudentDocuments(): Collection
+    public function getAdultStudentDocuments(): Collection
     {
         return $this->adultStudentDocuments;
     }
 
-    function addAdultStudentDocument(OnlineRegistrationDocument $adultStudentDocument): self
+    public function addAdultStudentDocument(OnlineRegistrationDocument $adultStudentDocument): self
     {
         if (!$this->adultStudentDocuments->contains($adultStudentDocument)) {
             $this->adultStudentDocuments[] = $adultStudentDocument;
@@ -272,7 +273,7 @@ class OnlineRegistrationSettings
         return $this;
     }
 
-    function removeAdultStudentDocument(OnlineRegistrationDocument $adultStudentDocument): self
+    public function removeAdultStudentDocument(OnlineRegistrationDocument $adultStudentDocument): self
     {
         $this->adultStudentDocuments->removeElement($adultStudentDocument);
 

+ 31 - 29
src/Entity/Organization/Organization.php

@@ -485,7 +485,7 @@ class Organization
         return $this->accesses;
     }
 
-    function addAccess(Access $access): self
+    public function addAccess(Access $access): self
     {
         if (!$this->access->contains($access)) {
             $this->access[] = $access;
@@ -494,7 +494,7 @@ class Organization
         return $this;
     }
 
-    function removeAccess(Access $access): self
+    public function removeAccess(Access $access): self
     {
         $this->access->removeElement($access);
 
@@ -1897,12 +1897,12 @@ class Organization
         return $this;
     }
 
-    function getNetwork(): Collection
+    public function getNetwork(): Collection
     {
         return $this->network;
     }
 
-    function addNetwork(NetworkOrganization $network): self
+    public function addNetwork(NetworkOrganization $network): self
     {
         if (!$this->network->contains($network)) {
             $this->network[] = $network;
@@ -1911,19 +1911,19 @@ class Organization
         return $this;
     }
 
-    function removeNetwork(NetworkOrganization $network): self
+    public function removeNetwork(NetworkOrganization $network): self
     {
         $this->network->removeElement($network);
 
         return $this;
     }
 
-    function getNetworkChild(): Collection
+    public function getNetworkChild(): Collection
     {
         return $this->networkChild;
     }
 
-    function addNetworkChild(NetworkOrganization $networkChild): self
+    public function addNetworkChild(NetworkOrganization $networkChild): self
     {
         if (!$this->networkChild->contains($networkChild)) {
             $this->networkChild[] = $networkChild;
@@ -1932,30 +1932,31 @@ class Organization
         return $this;
     }
 
-    function removeNetworkChild(NetworkOrganization $networkChild): self
+    public function removeNetworkChild(NetworkOrganization $networkChild): self
     {
         $this->networkChild->removeElement($networkChild);
 
         return $this;
     }
 
-    function getBillingExportSetting(): BillingExportSetting
+    public function getBillingExportSetting(): BillingExportSetting
     {
         return $this->billingExportSetting;
     }
 
-    function setBillingExportSetting(BillingExportSetting $billingExportSetting): self
+    public function setBillingExportSetting(BillingExportSetting $billingExportSetting): self
     {
         $this->billingExportSetting = $billingExportSetting;
+
         return $this;
     }
 
-    function getMessages(): Collection
+    public function getMessages(): Collection
     {
         return $this->messages;
     }
 
-    function addMessage(mixed $message): self
+    public function addMessage(mixed $message): self
     {
         if (!$this->messages->contains($message)) {
             $this->messages[] = $message;
@@ -1964,30 +1965,31 @@ class Organization
         return $this;
     }
 
-    function removeMessage(mixed $message): self
+    public function removeMessage(mixed $message): self
     {
         $this->messages->removeElement($message);
 
         return $this;
     }
 
-    function getOnlineRegistrationSettings(): OnlineRegistrationSettings
+    public function getOnlineRegistrationSettings(): OnlineRegistrationSettings
     {
         return $this->onlineRegistrationSettings;
     }
 
-    function setOnlineRegistrationSettings(OnlineRegistrationSettings $onlineRegistrationSettings): self
+    public function setOnlineRegistrationSettings(OnlineRegistrationSettings $onlineRegistrationSettings): self
     {
         $this->onlineRegistrationSettings = $onlineRegistrationSettings;
+
         return $this;
     }
 
-    function getCotisationByYears(): Collection
+    public function getCotisationByYears(): Collection
     {
         return $this->cotisationByYears;
     }
 
-    function addCotisationByYear(CotisationByYear $cotisationByYear): self
+    public function addCotisationByYear(CotisationByYear $cotisationByYear): self
     {
         if (!$this->cotisationByYears->contains($cotisationByYear)) {
             $this->cotisationByYears[] = $cotisationByYear;
@@ -1996,19 +1998,19 @@ class Organization
         return $this;
     }
 
-    function removeCotisationByYear(CotisationByYear $cotisationByYear): self
+    public function removeCotisationByYear(CotisationByYear $cotisationByYear): self
     {
         $this->cotisationByYears->removeElement($cotisationByYear);
 
         return $this;
     }
 
-    function getAttendanceBookingReasons(): Collection
+    public function getAttendanceBookingReasons(): Collection
     {
         return $this->attendanceBookingReasons;
     }
 
-    function addAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
+    public function addAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
     {
         if (!$this->attendanceBookingReasons->contains($attendanceBookingReason)) {
             $this->attendanceBookingReasons[] = $attendanceBookingReason;
@@ -2017,19 +2019,19 @@ class Organization
         return $this;
     }
 
-    function removeAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
+    public function removeAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
     {
         $this->attendanceBookingReasons->removeElement($attendanceBookingReason);
 
         return $this;
     }
 
-    function getEducationCurriculumPacks(): Collection
+    public function getEducationCurriculumPacks(): Collection
     {
         return $this->educationCurriculumPacks;
     }
 
-    function addEducationCurriculumPack(Cycle $educationCurriculumPack): self
+    public function addEducationCurriculumPack(Cycle $educationCurriculumPack): self
     {
         if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
             $this->educationCurriculumPacks[] = $educationCurriculumPack;
@@ -2038,19 +2040,19 @@ class Organization
         return $this;
     }
 
-    function removeEducationCurriculumPack(Cycle $educationCurriculumPack): self
+    public function removeEducationCurriculumPack(Cycle $educationCurriculumPack): self
     {
         $this->educationCurriculumPacks->removeElement($educationCurriculumPack);
 
         return $this;
     }
 
-    function getFamilyQuotientModels(): Collection
+    public function getFamilyQuotientModels(): Collection
     {
         return $this->familyQuotientModels;
     }
 
-    function addFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
+    public function addFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
     {
         if (!$this->familyQuotientModels->contains($familyQuotientModel)) {
             $this->familyQuotientModels[] = $familyQuotientModel;
@@ -2059,14 +2061,14 @@ class Organization
         return $this;
     }
 
-    function removeFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
+    public function removeFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
     {
         $this->familyQuotientModels->removeElement($familyQuotientModel);
 
         return $this;
     }
 
-    function addBillSchedule(BillSchedule $billSchedule): self
+    public function addBillSchedule(BillSchedule $billSchedule): self
     {
         if (!$this->billSchedules->contains($billSchedule)) {
             $this->billSchedules[] = $billSchedule;
@@ -2075,7 +2077,7 @@ class Organization
         return $this;
     }
 
-    function removeBillSchedule(BillSchedule $billSchedule): self
+    public function removeBillSchedule(BillSchedule $billSchedule): self
     {
         $this->billSchedules->removeElement($billSchedule);
 

+ 3 - 0
src/Entity/Person/AllowedIp.php

@@ -32,6 +32,7 @@ class AllowedIp
     public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
@@ -43,6 +44,7 @@ class AllowedIp
     public function setPerson(Person $person): self
     {
         $this->person = $person;
+
         return $this;
     }
 
@@ -54,6 +56,7 @@ class AllowedIp
     public function setIpOrRange(string $ipOrRange): self
     {
         $this->ipOrRange = $ipOrRange;
+
         return $this;
     }
 }

+ 1 - 0
src/Entity/Person/Medical.php

@@ -35,6 +35,7 @@ class Medical
     public function setPerson(Person $person): self
     {
         $this->person = $person;
+
         return $this;
     }
 }

+ 2 - 0
src/Entity/Person/Person.php

@@ -603,6 +603,7 @@ class Person implements UserInterface, PasswordAuthenticatedUserInterface
     public function setMedical(Medical $medical): self
     {
         $this->medical = $medical;
+
         return $this;
     }
 
@@ -624,6 +625,7 @@ class Person implements UserInterface, PasswordAuthenticatedUserInterface
     public function removeAllowedIp(AllowedIp $allowedIp): self
     {
         $this->allowedIps->removeElement($allowedIp);
+
         return $this;
     }
 }

+ 1 - 1
src/Entity/Place/AbstractPlace.php

@@ -4,7 +4,6 @@ declare(strict_types=1);
 
 namespace App\Entity\Place;
 
-use ApiPlatform\Metadata\ApiResource;
 use App\Entity\Booking\Course;
 use App\Entity\Booking\EducationalProject;
 use App\Entity\Booking\Event;
@@ -109,6 +108,7 @@ abstract class AbstractPlace
     public function setDiscr(string $discr): self
     {
         $this->discr = $discr;
+
         return $this;
     }
 

+ 3 - 3
src/Entity/Product/AbstractProduct.php

@@ -37,12 +37,12 @@ abstract class AbstractProduct
         return $this->id;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function addTag(Tagg $tag): self
+    public function addTag(Tagg $tag): self
     {
         if (!$this->tags->contains($tag)) {
             $this->tags[] = $tag;
@@ -51,7 +51,7 @@ abstract class AbstractProduct
         return $this;
     }
 
-    function removeTag(Tagg $tag): self
+    public function removeTag(Tagg $tag): self
     {
         $this->tags->removeElement($tag);
 

+ 12 - 12
src/Entity/Product/Equipment.php

@@ -406,12 +406,12 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function addTag(Tagg $tag): self
+    public function addTag(Tagg $tag): self
     {
         if (!$this->tags->contains($tag)) {
             $this->tags[] = $tag;
@@ -420,19 +420,19 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function removeTag(Tagg $tag): self
+    public function removeTag(Tagg $tag): self
     {
         $this->tags->removeElement($tag);
 
         return $this;
     }
 
-    function getEquipmentCompositionChildren(): Collection
+    public function getEquipmentCompositionChildren(): Collection
     {
         return $this->equipmentCompositionChildren;
     }
 
-    function addEquipmentCompositionChildren(EquipmentComposition $equipmentCompositionChildren): self
+    public function addEquipmentCompositionChildren(EquipmentComposition $equipmentCompositionChildren): self
     {
         if (!$this->equipmentCompositionChildren->contains($equipmentCompositionChildren)) {
             $this->equipmentCompositionChildren[] = $equipmentCompositionChildren;
@@ -441,19 +441,19 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function removeEquipmentCompositionChildren(EquipmentComposition $equipmentCompositionChildren): self
+    public function removeEquipmentCompositionChildren(EquipmentComposition $equipmentCompositionChildren): self
     {
         $this->equipmentCompositionChildren->removeElement($equipmentCompositionChildren);
 
         return $this;
     }
 
-    function getEquipmentLoanFiltered(): Collection
+    public function getEquipmentLoanFiltered(): Collection
     {
         return $this->equipmentLoanFiltered;
     }
 
-    function addEquipmentLoanFiltered(EquipmentLoan $equipmentLoanFiltered): self
+    public function addEquipmentLoanFiltered(EquipmentLoan $equipmentLoanFiltered): self
     {
         if (!$this->equipmentLoanFiltered->contains($equipmentLoanFiltered)) {
             $this->equipmentLoanFiltered[] = $equipmentLoanFiltered;
@@ -462,19 +462,19 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function removeEquipmentLoanFiltered(EquipmentLoan $equipmentLoanFiltered): self
+    public function removeEquipmentLoanFiltered(EquipmentLoan $equipmentLoanFiltered): self
     {
         $this->equipmentLoanFiltered->removeElement($equipmentLoanFiltered);
 
         return $this;
     }
 
-    function getExamenConvocations(): Collection
+    public function getExamenConvocations(): Collection
     {
         return $this->examenConvocations;
     }
 
-    function addExamenConvocation(ExamenConvocation $examenConvocation): self
+    public function addExamenConvocation(ExamenConvocation $examenConvocation): self
     {
         if (!$this->examenConvocations->contains($examenConvocation)) {
             $this->examenConvocations[] = $examenConvocation;
@@ -483,7 +483,7 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function removeExamenConvocation(ExamenConvocation $examenConvocation): self
+    public function removeExamenConvocation(ExamenConvocation $examenConvocation): self
     {
         $this->examenConvocations->removeElement($examenConvocation);
 

+ 6 - 5
src/Entity/Product/Intangible.php

@@ -162,23 +162,24 @@ class Intangible extends AbstractProduct
         return $this;
     }
 
-    function getEducationCurriculumPacks(): Collection
+    public function getEducationCurriculumPacks(): Collection
     {
         return $this->educationCurriculumPacks;
     }
 
-    function setEducationCurriculumPacks(Collection $educationCurriculumPacks): self
+    public function setEducationCurriculumPacks(Collection $educationCurriculumPacks): self
     {
         $this->educationCurriculumPacks = $educationCurriculumPacks;
+
         return $this;
     }
 
-    function getIntangiblePriceAndDiscount(): IntangiblePriceAndDiscount
+    public function getIntangiblePriceAndDiscount(): IntangiblePriceAndDiscount
     {
         return $this->intangiblePriceAndDiscount;
     }
 
-    function addEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
+    public function addEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
     {
         if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
             $this->educationCurriculumPacks[] = $educationCurriculumPack;
@@ -187,7 +188,7 @@ class Intangible extends AbstractProduct
         return $this;
     }
 
-    function removeEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
+    public function removeEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
     {
         $this->educationCurriculumPacks->removeElement($educationCurriculumPack);
 

+ 6 - 4
src/Entity/Product/IntangibleDiscountDetail.php

@@ -86,25 +86,27 @@ class IntangibleDiscountDetail
         return $this;
     }
 
-    function getFamilyQuotientBandDetail(): FamilyQuotientBandDetail
+    public function getFamilyQuotientBandDetail(): FamilyQuotientBandDetail
     {
         return $this->familyQuotientBandDetail;
     }
 
-    function setFamilyQuotientBandDetail(FamilyQuotientBandDetail $familyQuotientBandDetail): self
+    public function setFamilyQuotientBandDetail(FamilyQuotientBandDetail $familyQuotientBandDetail): self
     {
         $this->familyQuotientBandDetail = $familyQuotientBandDetail;
+
         return $this;
     }
 
-    function getFamilyQuotientBand(): FamilyQuotientBand
+    public function getFamilyQuotientBand(): FamilyQuotientBand
     {
         return $this->familyQuotientBand;
     }
 
-    function setFamilyQuotientBand(FamilyQuotientBand $familyQuotientBand): self
+    public function setFamilyQuotientBand(FamilyQuotientBand $familyQuotientBand): self
     {
         $this->familyQuotientBand = $familyQuotientBand;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Product/IntangiblePriceAndDiscount.php

@@ -74,26 +74,27 @@ class IntangiblePriceAndDiscount
         return $this;
     }
 
-
-    function getIntangible(): Intangible
+    public function getIntangible(): Intangible
     {
         return $this->intangible;
     }
 
-    function setIntangible(Intangible $intangible): self
+    public function setIntangible(Intangible $intangible): self
     {
         $this->intangible = $intangible;
+
         return $this;
     }
 
-    function getFamilyQuotientModel(): FamilyQuotientModel
+    public function getFamilyQuotientModel(): FamilyQuotientModel
     {
         return $this->familyQuotientModel;
     }
 
-    function setFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
+    public function setFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
     {
         $this->familyQuotientModel = $familyQuotientModel;
+
         return $this;
     }
 }

+ 2 - 0
src/Entity/Public/PublicEvent.php

@@ -352,6 +352,7 @@ class PublicEvent
     public function setStructureLongitude(?float $structureLongitude): self
     {
         $this->structureLongitude = $structureLongitude;
+
         return $this;
     }
 
@@ -363,6 +364,7 @@ class PublicEvent
     public function setStructureLatitude(?float $structureLatitude): self
     {
         $this->structureLatitude = $structureLatitude;
+
         return $this;
     }
 

+ 7 - 7
src/Entity/Token/Token.php

@@ -5,9 +5,7 @@ declare(strict_types=1);
 namespace App\Entity\Token;
 
 use ApiPlatform\Metadata\ApiResource;
-use App;
 use App\Entity\Access\Access;
-use DateTimeInterface;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -21,27 +19,29 @@ class Token
 
     #[ORM\ManyToOne(targetEntity: Access::class, cascade: [], inversedBy: 'tokens')]
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
-    private App\Entity\Access\Access $access;
+    private Access $access;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getAccess(): App\Entity\Access\Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(App\Entity\Access\Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 }

+ 1 - 0
src/Service/Doctrine/SchemaValidation/DiffTypeEnum.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Service\Doctrine\SchemaValidation;

+ 10 - 7
src/Service/Doctrine/SchemaValidation/Difference.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Service\Doctrine\SchemaValidation;
@@ -8,21 +9,19 @@ class Difference
     protected DiffTypeEnum $type;
     protected ?string $message;
 
-
     protected string $entity;
     protected string $property;
 
     /**
      * @var string|array<string, string|array<string>>
      */
-    protected string | array $expectedType;
+    protected string|array $expectedType;
 
     /**
-     * @param DiffTypeEnum $type
-     * @param string|null $message
      * @param string|array<string, string|array<string>> $expectedType
      */
-    public function __construct(DiffTypeEnum $type, ?string $message, string | array $expectedType = []) {
+    public function __construct(DiffTypeEnum $type, ?string $message, string|array $expectedType = [])
+    {
         $this->type = $type;
         $this->message = $message;
         $this->expectedType = $expectedType;
@@ -36,6 +35,7 @@ class Difference
     public function setType(DiffTypeEnum $type): self
     {
         $this->type = $type;
+
         return $this;
     }
 
@@ -47,24 +47,27 @@ class Difference
     public function setMessage(?string $message): self
     {
         $this->message = $message;
+
         return $this;
     }
 
     /**
      * @return string|array<string, string|array<string>>
      */
-    public function getExpectedType(): string | array
+    public function getExpectedType(): string|array
     {
         return $this->expectedType;
     }
 
     /**
      * @param string|array<string, string|array<string>> $expectedType
+     *
      * @return $this
      */
-    public function setExpectedType(string | array $expectedType): self
+    public function setExpectedType(string|array $expectedType): self
     {
         $this->expectedType = $expectedType;
+
         return $this;
     }
 }

+ 80 - 111
src/Service/Doctrine/SchemaValidation/SchemaSnippetsMaker.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Service\Doctrine\SchemaValidation;
@@ -37,16 +38,15 @@ use Nette\PhpGenerator\PsrPrinter;
 class SchemaSnippetsMaker
 {
     public function __construct(
-        private readonly EntityUtils $entityUtils
-    )
-    {}
+        private readonly EntityUtils $entityUtils,
+    ) {
+    }
 
     /**
      * Make entities snippets from a 'diff' array,
-     * as generated by SchemaValidationService::validateSchema()
+     * as generated by SchemaValidationService::validateSchema().
      *
-     * @param array<string, Difference | array<Difference>> $diff
-     * @return void
+     * @param array<string, Difference|array<Difference>> $diff
      */
     public function makeSnippets(array $diff): void
     {
@@ -126,12 +126,12 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Make the getters / setters for the given property
+     * Make the getters / setters for the given property.
      *
-     * @param Property $prop
      * @return array<Method>
      */
-    protected function makeMethodsSnippetForProp(Property $prop): array {
+    protected function makeMethodsSnippetForProp(Property $prop): array
+    {
         $methods = [];
 
         if ($prop->getType() !== Collection::class) {
@@ -147,11 +147,9 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Génère un objet ClassType
-     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/ClassType.html
+     * Génère un objet ClassType.
      *
-     * @param string $entity
-     * @return ClassType
+     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/ClassType.html
      */
     protected function makeSnippetEntityClass(string $entity): ClassType
     {
@@ -159,15 +157,14 @@ class SchemaSnippetsMaker
 
         $class->setAttributes([
             new Attribute(ApiResource::class, ['operations' => []]),
-            new Attribute(Entity::class, [])
+            new Attribute(Entity::class, []),
         ]);
 
         return $class;
     }
 
     /**
-     * Retourne le chemin absolu vers le répertoire dans lesquels sont créés les snippets
-     * @return string
+     * Retourne le chemin absolu vers le répertoire dans lesquels sont créés les snippets.
      */
     protected function getSnippetsDir(): string
     {
@@ -175,12 +172,10 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Vide et ajuste les droits du répertoire des snippets
-     *
-     * @param string $snippetsDir
-     * @return void
+     * Vide et ajuste les droits du répertoire des snippets.
      */
-    protected function prepareSnippetsDir(string $snippetsDir): void {
+    protected function prepareSnippetsDir(string $snippetsDir): void
+    {
         if (is_dir($snippetsDir)) {
             FileUtils::rrmDir($snippetsDir);
         }
@@ -188,38 +183,31 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Retourne le chemin absolu du snippet donné
-     *
-     * @param string $snippetsDir
-     * @param string $entity
-     * @return string
+     * Retourne le chemin absolu du snippet donné.
      */
     protected function getSnippetPath(string $snippetsDir, string $entity): string
     {
         try {
             $fullName = $this->entityUtils->getFullNameFromEntityName($entity);
         } catch (\LogicException) {
-            $fullName = '_NameSpaceNotFound/' . $entity;
+            $fullName = '_NameSpaceNotFound/'.$entity;
         }
 
-        $relativePath = str_replace('\\', '/', $fullName) . '.php';
+        $relativePath = str_replace('\\', '/', $fullName).'.php';
 
         return Path::join($snippetsDir, $relativePath);
     }
 
     /**
-     * Créé le fichier du snippet sur le disque
-     *
-     * @param PhpFile $phpFile
-     * @param string $fileName
-     * @return void
+     * Créé le fichier du snippet sur le disque.
      */
-    protected function writeSnippet(PhpFile $phpFile, string $fileName): void {
+    protected function writeSnippet(PhpFile $phpFile, string $fileName): void
+    {
         if (!is_dir(dirname($fileName))) {
             mkdir(dirname($fileName), 0777, true);
         }
 
-        $printer = new PsrPrinter;
+        $printer = new PsrPrinter();
 
         $content = $printer->printFile($phpFile);
         $content = $this->postProcessFileContent($content);
@@ -237,6 +225,7 @@ class SchemaSnippetsMaker
      * les classes d'entités à importer (pour le typage de ces propriétés).
      *
      * @param array<string, Difference> $differences
+     *
      * @return array<string>
      */
     protected function getEntityToImportFromRelations(array $differences): array
@@ -245,9 +234,9 @@ class SchemaSnippetsMaker
 
         foreach ($differences as $field => $difference) {
             if (
-                !is_array($difference->getExpectedType()) ||
-                !in_array(isset($difference->getExpectedType()['type']), [ClassMetadataInfo::ONE_TO_ONE, ClassMetadataInfo::MANY_TO_ONE]) ||
-                !isset($difference->getExpectedType()['targetEntity'])
+                !is_array($difference->getExpectedType())
+                || !in_array(isset($difference->getExpectedType()['type']), [ClassMetadataInfo::ONE_TO_ONE, ClassMetadataInfo::MANY_TO_ONE])
+                || !isset($difference->getExpectedType()['targetEntity'])
             ) {
                 continue;
             }
@@ -270,15 +259,12 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Obtient le namespace pour l'entité donnée
-     *
-     * @param string $entity
-     * @return string
+     * Obtient le namespace pour l'entité donnée.
      */
     protected function getNamespaceValue(string $entity): string
     {
         try {
-            $fullQualifiedName = str_contains($entity, "\\") ?
+            $fullQualifiedName = str_contains($entity, '\\') ?
                 $entity :
                 $this->entityUtils->getFullNameFromEntityName($entity);
 
@@ -290,7 +276,6 @@ class SchemaSnippetsMaker
 
     /**
      * @param array<string, string|array<string>> $type
-     * @return string
      */
     protected function getRelationTargetEntityName(array $type): string
     {
@@ -303,14 +288,13 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Construit l'objet PhpFile
-     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/PhpFile.html
+     * Construit l'objet PhpFile.
      *
-     * @return PhpFile
+     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/PhpFile.html
      */
     protected function makeFileSnippet(): PhpFile
     {
-        $file = new PhpFile;
+        $file = new PhpFile();
         $file->addComment('This file is auto-generated.');
         $file->setStrictTypes();
 
@@ -318,11 +302,9 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Construit l'objet PhpNamespace
-     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/PhpNamespace.html
+     * Construit l'objet PhpNamespace.
      *
-     * @param string $entity
-     * @return PhpNamespace
+     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/PhpNamespace.html
      */
     protected function makeNamespaceSnippet(string $entity): PhpNamespace
     {
@@ -338,10 +320,9 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Construit l'objet Property pour le champs 'id' d'une entité
-     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/Property.html
+     * Construit l'objet Property pour le champs 'id' d'une entité.
      *
-     * @return Property
+     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/Property.html
      */
     protected function makeIdPropertySnippet(): Property
     {
@@ -351,6 +332,7 @@ class SchemaSnippetsMaker
         $prop->addAttribute('ORM\Id');
         $prop->addAttribute('ORM\Column');
         $prop->addAttribute('ORM\GeneratedValue');
+
         return $prop;
     }
 
@@ -363,16 +345,12 @@ class SchemaSnippetsMaker
             'datetime' => '?\DateTimeInterface',
             'json_array' => 'array',
         ][$doctrineType] ?? 'mixed';
-
     }
 
     /**
-     * Make a Property object for a simple field (not a relation)
-     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/Property.html
+     * Make a Property object for a simple field (not a relation).
      *
-     * @param string $name
-     * @param string $type
-     * @return Property
+     * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/Property.html
      */
     protected function makeSnippetEntitySimpleProp(string $name, string $type): Property
     {
@@ -404,12 +382,11 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Make a Property object for a relation field
+     * Make a Property object for a relation field.
+     *
      * @see https://api.nette.org/php-generator/master/Nette/PhpGenerator/Property.html
      *
-     * @param string $name
      * @param array<mixed> $type
-     * @return Property
      */
     protected function makeSnippetEntityCollectionProp(string $name, array $type): Property
     {
@@ -418,12 +395,11 @@ class SchemaSnippetsMaker
         $prop->setType('Collection');
 
         if (
-            isset($type['type']) &&
-            $type['type'] === ClassMetadataInfo::ONE_TO_ONE || $type['type'] === ClassMetadataInfo::MANY_TO_ONE
+            isset($type['type'])
+            && $type['type'] === ClassMetadataInfo::ONE_TO_ONE || $type['type'] === ClassMetadataInfo::MANY_TO_ONE
         ) {
             $targetEntityName = $this->getRelationTargetEntityName($type);
             $prop->setType($targetEntityName);
-
         } else {
             $prop->setType(Collection::class);
         }
@@ -434,7 +410,7 @@ class SchemaSnippetsMaker
         }
 
         if (isset($type['targetEntity'])) {
-            $options['targetEntity'] = $this->entityUtils->getEntityNameFromFullName($type['targetEntity']) . '::class';
+            $options['targetEntity'] = $this->entityUtils->getEntityNameFromFullName($type['targetEntity']).'::class';
         }
 
         if (isset($type['inversedBy'])) {
@@ -468,42 +444,40 @@ class SchemaSnippetsMaker
     }
 
     /**
-     * Make the '__construct' method with collections initialization
+     * Make the '__construct' method with collections initialization.
+     *
      * @param array<Property> $collections
-     * @return Method
      */
-    protected function makeSnippetConstructor(array $collections): Method {
+    protected function makeSnippetConstructor(array $collections): Method
+    {
         $constructor = new Method('__construct');
         $constructor->setPublic();
 
         foreach ($collections as $collection) {
-            $constructor->addBody('$this->' . $collection->getName() . ' = new ArrayCollection();');
+            $constructor->addBody('$this->'.$collection->getName().' = new ArrayCollection();');
         }
 
         return $constructor;
     }
 
     /**
-     * Make a 'getter' method for the given property
-     *
-     * @param Property $prop
-     * @return Method
+     * Make a 'getter' method for the given property.
      */
-    protected function makeSnippetGetterForProp(Property $prop): Method {
-        $method = new Method('get' . ucfirst($prop->getName()));
+    protected function makeSnippetGetterForProp(Property $prop): Method
+    {
+        $method = new Method('get'.ucfirst($prop->getName()));
         $method->setReturnType($prop->getType());
-        $method->setBody('return $this->' . $prop->getName() . ';');
+        $method->setBody('return $this->'.$prop->getName().';');
+
         return $method;
     }
 
     /**
-     * Make a 'setter' method for the given property
-     *
-     * @param Property $prop
-     * @return Method
+     * Make a 'setter' method for the given property.
      */
-    protected function makeSnippetSetterForProp(Property $prop): Method {
-        $method = new Method('set' . ucfirst($prop->getName()));
+    protected function makeSnippetSetterForProp(Property $prop): Method
+    {
+        $method = new Method('set'.ucfirst($prop->getName()));
 
         $parameter = new Parameter($prop->getName());
         $parameter->setType($prop->getType());
@@ -514,11 +488,12 @@ class SchemaSnippetsMaker
             implode(
                 "\n",
                 [
-                    '$this->' . $prop->getName() . ' = $' . $prop->getName() . ';',
+                    '$this->'.$prop->getName().' = $'.$prop->getName().';',
                     'return $this;',
                 ]
             )
         );
+
         return $method;
     }
 
@@ -530,8 +505,8 @@ class SchemaSnippetsMaker
 
         foreach ($prop->getAttributes() as $attribute) {
             if (
-                $attribute instanceof Attribute &&
-                ($attribute->getName() === OneToMany::class || $attribute->getName() === ManyToMany::class)
+                $attribute instanceof Attribute
+                && ($attribute->getName() === OneToMany::class || $attribute->getName() === ManyToMany::class)
             ) {
                 $targetEntityName = $attribute->getArguments()['targetEntity'];
                 if (!$targetEntityName) {
@@ -548,23 +523,22 @@ class SchemaSnippetsMaker
                         return null;
                     }
                 }
+
                 return $targetEntityName;
             }
         }
+
         return null;
     }
 
     /**
-     * Make an 'adder' method for the given property
-     *
-     * @param Property $prop
-     * @return Method
+     * Make an 'adder' method for the given property.
      */
-    protected function makeSnippetAdderForCollection(Property $prop): Method {
-
+    protected function makeSnippetAdderForCollection(Property $prop): Method
+    {
         $singularPropName = rtrim($prop->getName(), 's');
 
-        $method = new Method('add' . ucfirst($singularPropName));
+        $method = new Method('add'.ucfirst($singularPropName));
 
         $targetEntityName = $this->getTargetEntityNameFromCollectionProp($prop);
 
@@ -577,27 +551,26 @@ class SchemaSnippetsMaker
             implode(
                 "\n",
                 [
-                    'if (!$this->' . $prop->getName() . '->contains($' . $singularPropName . ')) {',
-                    '    $this->' . $prop->getName() . '[] = $' . $singularPropName . ';',
+                    'if (!$this->'.$prop->getName().'->contains($'.$singularPropName.')) {',
+                    '    $this->'.$prop->getName().'[] = $'.$singularPropName.';',
                     '}',
                     '',
                     'return $this;',
                 ]
             )
         );
+
         return $method;
     }
 
     /**
-     * Make a 'remover' method for the given property
-     *
-     * @param Property $prop
-     * @return Method
+     * Make a 'remover' method for the given property.
      */
-    protected function makeSnippetRemoverForCollection(Property $prop): Method {
+    protected function makeSnippetRemoverForCollection(Property $prop): Method
+    {
         $singularPropName = rtrim($prop->getName(), 's');
 
-        $method = new Method('remove' . ucfirst($singularPropName));
+        $method = new Method('remove'.ucfirst($singularPropName));
 
         $targetEntityName = $this->getTargetEntityNameFromCollectionProp($prop);
 
@@ -610,25 +583,21 @@ class SchemaSnippetsMaker
             implode(
                 "\n",
                 [
-                    '$this->' . $prop->getName() . '->removeElement($' . $singularPropName . ');',
+                    '$this->'.$prop->getName().'->removeElement($'.$singularPropName.');',
                     '',
                     'return $this;',
                 ]
             )
         );
+
         return $method;
     }
 
     /**
-     * Perform some post-fixes on the file content
-     *
-     * @param string $content
-     * @return string
+     * Perform some post-fixes on the file content.
      */
     protected function postProcessFileContent(string $content): string
     {
-        return preg_replace("/targetEntity: '(\w+)::class'/", "targetEntity: $1::class", $content);
+        return preg_replace("/targetEntity: '(\w+)::class'/", 'targetEntity: $1::class', $content);
     }
-
-
 }

+ 31 - 39
src/Service/Doctrine/SchemaValidation/SchemaValidationService.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Service\Doctrine\SchemaValidation;
@@ -8,25 +9,24 @@ use App\Service\Utils\EntityUtils;
 use Doctrine\ORM\EntityManagerInterface;
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
 use Doctrine\ORM\Mapping\MappingException;
-use RuntimeException;
 use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
 use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
 use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
 use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
 
 /**
- * Validation du schéma Doctrine par comparaison aux entités en production sur la V1
+ * Validation du schéma Doctrine par comparaison aux entités en production sur la V1.
  *
  * — À supprimer lorsque la migration sera achevée —
  */
 class SchemaValidationService
 {
     public function __construct(
-        private readonly EntityManagerInterface  $entityManager,
+        private readonly EntityManagerInterface $entityManager,
         private readonly ApiLegacyRequestService $apiLegacyRequestService,
-        private readonly EntityUtils $entityUtils
-    )
-    {}
+        private readonly EntityUtils $entityUtils,
+    ) {
+    }
 
     /**
      * Compare the V2 doctrine schema to the one in V1, and return a list of differences,
@@ -34,7 +34,8 @@ class SchemaValidationService
      *
      *     [<entity> → Difference | [<field> → Difference]]
      *
-     * @return array<string, Difference | array<Difference>>
+     * @return array<string, Difference|array<Difference>>
+     *
      * @throws ClientExceptionInterface
      * @throws MappingException
      * @throws RedirectionExceptionInterface
@@ -50,9 +51,10 @@ class SchemaValidationService
     }
 
     /**
-     * Retrieve the V2 schema
+     * Retrieve the V2 schema.
+     *
+     * @return array<string, array<string|array<string|int>>>
      *
-     * @return array<string, array<string | array<string|int>>>
      * @throws MappingException
      */
     protected function getV2Schema(): array
@@ -78,9 +80,10 @@ class SchemaValidationService
     }
 
     /**
-     * Retrieve the V1 schema
+     * Retrieve the V1 schema.
+     *
+     * @return array<string, array<string|array<string|int>>>
      *
-     * @return array<string, array<string | array<string|int>>>
      * @throws ClientExceptionInterface
      * @throws RedirectionExceptionInterface
      * @throws ServerExceptionInterface
@@ -94,11 +97,12 @@ class SchemaValidationService
     }
 
     /**
-     * Get a list of differences between V1 and V2 doctrine schemas
+     * Get a list of differences between V1 and V2 doctrine schemas.
+     *
+     * @param array<string, array<string|array<string|int>>> $schemaV1
+     * @param array<string, array<string|array<string|int>>> $schemaV2
      *
-     * @param array<string, array<string | array<string|int>>> $schemaV1
-     * @param array<string, array<string| array<string|int>>> $schemaV2
-     * @return array<string, Difference | array<Difference>>
+     * @return array<string, Difference|array<Difference>>
      */
     protected function getDiff(array $schemaV1, array $schemaV2, ?DiffTypeEnum $filter = null): array
     {
@@ -106,7 +110,6 @@ class SchemaValidationService
         ];
 
         foreach ($schemaV1 as $entity => $fields) {
-
             if (!$this->isEntityInSchema($schemaV2, $entity)) {
                 // L'entité n'existe pas en V2
                 if (!$filter || $filter === DiffTypeEnum::MISSING_ENTITY) {
@@ -121,13 +124,13 @@ class SchemaValidationService
 
             foreach ($fields as $field => $fieldTypeV1) {
                 if (
-                    !$this->isPropertyInSchema($schemaV2, $entity, $field) &&
-                    $this->isRelationField($schemaV1, $entity, $field) &&
-                    $this->isPropertyInSchema($schemaV2, $entity, $field .'s')
+                    !$this->isPropertyInSchema($schemaV2, $entity, $field)
+                    && $this->isRelationField($schemaV1, $entity, $field)
+                    && $this->isPropertyInSchema($schemaV2, $entity, $field.'s')
                 ) {
                     // Le champ existe en V2, mais il a été mis au pluriel, par exemple : $contactPoint devenu $contactPoints
                     // Pour éviter les faux positifs, on renomme le champ dans le schéma V1
-                    $schemaV1[$entity][$field .'s'] = $fieldTypeV1;
+                    $schemaV1[$entity][$field.'s'] = $fieldTypeV1;
                     unset($schemaV1[$entity][$field]);
                     $fields = $schemaV1[$entity];
                 }
@@ -136,13 +139,12 @@ class SchemaValidationService
             $diff[$entity] = [];
 
             foreach ($fields as $field => $fieldTypeV1) {
-
                 if (!$this->isPropertyInSchema($schemaV2, $entity, $field)) {
                     // Le champ n'existe pas en V2
                     if ($this->isRelationField($schemaV1, $entity, $field)) {
                         $diff[$entity][$field] = new Difference(
                             DiffTypeEnum::MISSING_RELATION,
-                            "Relation " . $this->getRelationTypeLabel($fieldTypeV1) . " `$field` is missing in V2",
+                            'Relation '.$this->getRelationTypeLabel($fieldTypeV1)." `$field` is missing in V2",
                             $fieldTypeV1,
                         );
                     } else {
@@ -199,11 +201,9 @@ class SchemaValidationService
     }
 
     /**
-     * Returns true if the given entity name exists in the doctrine schema
+     * Returns true if the given entity name exists in the doctrine schema.
      *
-     * @param array<string, array<string | array<string|int>>> $schema
-     * @param string $entity
-     * @return bool
+     * @param array<string, array<string|array<string|int>>> $schema
      */
     protected function isEntityInSchema(array $schema, string $entity): bool
     {
@@ -213,10 +213,7 @@ class SchemaValidationService
     /**
      * Returns true if the given property name exists in the doctrine schema under this entity.
      *
-     * @param array<string, array<string | array<string|int>>> $schema
-     * @param string $entity
-     * @param string $property
-     * @return bool
+     * @param array<string, array<string|array<string|int>>> $schema
      */
     protected function isPropertyInSchema(array $schema, string $entity, string $property): bool
     {
@@ -226,10 +223,7 @@ class SchemaValidationService
     /**
      * Is the given field a relation field.
      *
-     * @param array<string, array<string | array<string|int>>> $schema
-     * @param string $entity
-     * @param string $relation
-     * @return bool
+     * @param array<string, array<string|array<string|int>>> $schema
      */
     protected function isRelationField(array $schema, string $entity, string $relation): bool
     {
@@ -242,9 +236,8 @@ class SchemaValidationService
      *
      * @param array<string, string> $relationReference
      * @param array<string, string> $relationCompared
-     * @return Difference|null
      */
-    protected function getRelationDiff(array $relationReference, array $relationCompared): Difference|null
+    protected function getRelationDiff(array $relationReference, array $relationCompared): ?Difference
     {
         if ($relationReference['type'] !== $relationCompared['type']) {
             return new Difference(
@@ -259,7 +252,7 @@ class SchemaValidationService
         ) {
             return new Difference(
                 DiffTypeEnum::DIFFERENT_RELATION_CONFIGURATION,
-                "Relation configuration is different (targetEntity)",
+                'Relation configuration is different (targetEntity)',
                 $relationReference
             );
         }
@@ -269,7 +262,7 @@ class SchemaValidationService
         ) {
             return new Difference(
                 DiffTypeEnum::DIFFERENT_RELATION_CONFIGURATION,
-                "Relation configuration is different (mappedBy)",
+                'Relation configuration is different (mappedBy)',
                 $relationReference
             );
         }
@@ -281,7 +274,6 @@ class SchemaValidationService
      * Get the name of a relation from a ClassMetadataInfo integer constant.
      *
      * @param array<string, string|int> $relation
-     * @return string
      */
     protected function getRelationTypeLabel(array $relation): string
     {

+ 12 - 21
src/Service/Utils/EntityUtils.php

@@ -15,16 +15,16 @@ use Doctrine\ORM\EntityManagerInterface;
 class EntityUtils
 {
     /**
-     * Cache of the mapping between entity names and fully qualified names
+     * Cache of the mapping between entity names and fully qualified names.
      *
      * @var array<string, string>
      */
     protected array $entityNamesMappingCache = [];
 
     public function __construct(
-        private readonly EntityManagerInterface  $entityManager,
-    )
-    {}
+        private readonly EntityManagerInterface $entityManager,
+    ) {
+    }
 
     /**
      * @throws \ReflectionException
@@ -61,27 +61,21 @@ class EntityUtils
         }
     }
 
-
     /**
      * Extract an entity base name from a fully qualified name
-     * Ex: '\App\Entity\Core\File' => 'File'
-     *
-     * @param string $fullName
-     * @return string
+     * Ex: '\App\Entity\Core\File' => 'File'.
      */
     public function getEntityNameFromFullName(string $fullName): string
     {
         $parts = explode('\\', $fullName);
+
         return array_pop($parts);
     }
 
     /**
-     * Find the fully qualified name matching the given entity base name
+     * Find the fully qualified name matching the given entity base name.
      *
      * Ex: 'File' => '\App\Entity\Core\File'
-     *
-     * @param string $entityName
-     * @return string
      */
     public function getFullNameFromEntityName(string $entityName): string
     {
@@ -91,16 +85,15 @@ class EntityUtils
         if (!isset($this->entityNamesMappingCache[$entityName])) {
             throw new \LogicException('No entity found for name `'.$entityName.'`');
         }
-        return $this->entityNamesMappingCache[$entityName];
 
+        return $this->entityNamesMappingCache[$entityName];
     }
 
     /**
      * Populates a cache mapping entity base names to their fully qualified class names.
-     *
-     * @return void
      */
-    protected function populateEntityNamesMappingCache() : void {
+    protected function populateEntityNamesMappingCache(): void
+    {
         $this->entityNamesMappingCache = [];
         $metadata = $this->entityManager->getMetadataFactory()->getAllMetadata();
         foreach ($metadata as $entityMetadata) {
@@ -111,15 +104,13 @@ class EntityUtils
 
     /**
      * Get the namespace from a fully qualified name
-     * Ex: '\App\Entity\Core\File' => 'App\Entity\Core'
-     *
-     * @param string $entityName
-     * @return string|null
+     * Ex: '\App\Entity\Core\File' => 'App\Entity\Core'.
      */
     public function getNamespaceFromName(string $entityName): ?string
     {
         $parts = explode('\\', $entityName);
         array_pop($parts);
+
         return ltrim(implode('\\', $parts), '\\');
     }
 }

+ 1 - 4
src/Service/Utils/FileUtils.php

@@ -78,10 +78,7 @@ class FileUtils
     }
 
     /**
-     * Recursively remove a directory
-     *
-     * @param string $path
-     * @return void
+     * Recursively remove a directory.
      */
     public static function rrmDir(string $path): void
     {

+ 24 - 13
tests/Unit/Service/Utils/EntityUtilsTest.php

@@ -16,11 +16,13 @@ use PHPUnit\Framework\TestCase;
 
 class TestableEntityUtils extends EntityUtils
 {
-    public function getEntityNamesMappingCache(): array {
+    public function getEntityNamesMappingCache(): array
+    {
         return $this->entityNamesMappingCache;
     }
 
-    public function setEntityNamesMappingCache(array $entityNamesMappingCache) {
+    public function setEntityNamesMappingCache(array $entityNamesMappingCache)
+    {
         $this->entityNamesMappingCache = $entityNamesMappingCache;
     }
 
@@ -44,11 +46,12 @@ class EntityUtilsTest extends TestCase
 {
     private EntityManagerInterface $entityManager;
 
-    public function setUp(): void {
+    public function setUp(): void
+    {
         $this->entityManager = $this->getMockBuilder(EntityManagerInterface::class)->disableOriginalConstructor()->getMock();
     }
 
-    protected function getEntityUtilsMockFor(string $method): MockObject | TestableEntityUtils
+    protected function getEntityUtilsMockFor(string $method): MockObject|TestableEntityUtils
     {
         return $this->getMockBuilder(TestableEntityUtils::class)
             ->setConstructorArgs([$this->entityManager])
@@ -113,7 +116,8 @@ class EntityUtilsTest extends TestCase
         $this->assertEquals($billingSetting, $entity->getBillingSetting());
     }
 
-    public function testGetEntityNameFromFullName(): void {
+    public function testGetEntityNameFromFullName(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getEntityNameFromFullName');
 
         $this->assertEquals(
@@ -130,7 +134,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testGetFullNameFromEntityName(): void {
+    public function testGetFullNameFromEntityName(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getFullNameFromEntityName');
 
         $utils->setEntityNamesMappingCache(['File' => '\App\Entity\Core\File']);
@@ -143,7 +148,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testGetFullNameFromEntityNameEmptyCache(): void {
+    public function testGetFullNameFromEntityNameEmptyCache(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getFullNameFromEntityName');
 
         $utils->setEntityNamesMappingCache([]);
@@ -152,7 +158,8 @@ class EntityUtilsTest extends TestCase
             ->expects(self::once())
             ->method('populateEntityNamesMappingCache')
             ->willReturnCallback(function () use ($utils) {
-                $utils->setEntityNamesMappingCache(['File' => '\App\Entity\Core\File']);})
+                $utils->setEntityNamesMappingCache(['File' => '\App\Entity\Core\File']);
+            })
         ;
 
         $this->assertEquals(
@@ -161,7 +168,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testGetFullNameFromEntityNameNonExistingEntity(): void {
+    public function testGetFullNameFromEntityNameNonExistingEntity(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getFullNameFromEntityName');
 
         $utils->setEntityNamesMappingCache(['File' => '\App\Entity\Core\File']);
@@ -174,7 +182,8 @@ class EntityUtilsTest extends TestCase
         $utils->getFullNameFromEntityName('Foo');
     }
 
-    public function testPopulateEntityNamesMappingCache(): void {
+    public function testPopulateEntityNamesMappingCache(): void
+    {
         $utils = $this->getEntityUtilsMockFor('populateEntityNamesMappingCache');
 
         $metadataFactory = $this->getMockBuilder(ClassMetadataFactory::class)->getMock();
@@ -222,7 +231,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testPopulateEntityNamesMappingCacheWithExistingCache(): void {
+    public function testPopulateEntityNamesMappingCacheWithExistingCache(): void
+    {
         $utils = $this->getEntityUtilsMockFor('populateEntityNamesMappingCache');
 
         $metadataFactory = $this->getMockBuilder(ClassMetadataFactory::class)->getMock();
@@ -248,7 +258,7 @@ class EntityUtilsTest extends TestCase
         $utils->setEntityNamesMappingCache(['OtherEntity' => '/Namespace/OtherEntity']);
 
         $this->assertEquals(
-            ['OtherEntity' => '/Namespace/OtherEntity',],
+            ['OtherEntity' => '/Namespace/OtherEntity'],
             $utils->getEntityNamesMappingCache()
         );
 
@@ -260,7 +270,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testGetNamespaceFromName(): void {
+    public function testGetNamespaceFromName(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getNamespaceFromName');
 
         $this->assertEquals(