diff --git a/composer.lock b/composer.lock index 06812ffb15dfec3551e807972447a07282255e34..67962149b68b261893991d312dcb7f2acc95fbf5 100644 --- a/composer.lock +++ b/composer.lock @@ -6154,16 +6154,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v2.15.0", + "version": "v2.16.0", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "adfab51ae979ee8b0fcbc55aa231ec2786cb1f91" + "reference": "ceaff36bee1ed3f1bbbedca36d2528c0826c336d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/adfab51ae979ee8b0fcbc55aa231ec2786cb1f91", - "reference": "adfab51ae979ee8b0fcbc55aa231ec2786cb1f91", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/ceaff36bee1ed3f1bbbedca36d2528c0826c336d", + "reference": "ceaff36bee1ed3f1bbbedca36d2528c0826c336d", "shasum": "" }, "require": { @@ -6193,9 +6193,10 @@ "php-cs-fixer/accessible-object": "^1.0", "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.1", "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.1", - "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1", + "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.1", "phpunitgoodpractices/traits": "^1.8", - "symfony/phpunit-bridge": "^4.0" + "symfony/phpunit-bridge": "^4.3", + "symfony/yaml": "^3.0 || ^4.0" }, "suggest": { "ext-mbstring": "For handling non-UTF8 characters in cache signature.", @@ -6207,11 +6208,6 @@ "php-cs-fixer" ], "type": "application", - "extra": { - "branch-alias": { - "dev-master": "2.15-dev" - } - }, "autoload": { "psr-4": { "PhpCsFixer\\": "src/" @@ -6233,17 +6229,17 @@ "MIT" ], "authors": [ - { - "name": "Dariusz Rumiński", - "email": "dariusz.ruminski@gmail.com" - }, { "name": "Fabien Potencier", "email": "fabien@symfony.com" + }, + { + "name": "Dariusz Rumiński", + "email": "dariusz.ruminski@gmail.com" } ], "description": "A tool to automatically fix PHP code style", - "time": "2019-05-06T07:13:51+00:00" + "time": "2019-11-03T13:31:09+00:00" }, { "name": "fzaninotto/faker", diff --git a/src/Application/Controller/CRUDController.php b/src/Application/Controller/CRUDController.php index a9444aaea67bee4e1429584fe82158fad66bd178..eba9038b06053ddc3f449eac69ecaeef1854013d 100644 --- a/src/Application/Controller/CRUDController.php +++ b/src/Application/Controller/CRUDController.php @@ -53,10 +53,6 @@ abstract class CRUDController extends AbstractController /** * CRUDController constructor. - * - * @param EntityManagerInterface $entityManager - * @param TranslatorInterface $translator - * @param RepositoryInterface $repository */ public function __construct( EntityManagerInterface $entityManager, @@ -71,31 +67,23 @@ abstract class CRUDController extends AbstractController /** * Get the domain of the object. * (Formatted as string word). - * - * @return string */ abstract protected function getDomain(): string; /** * Get the model of the object. * (Formatted as string word). - * - * @return string */ abstract protected function getModel(): string; /** * Get the model class name of the object. * This methods return the class name with it namespace. - * - * @return string */ abstract protected function getModelClass(): string; /** * Get the form type class name to use during create & edit action. - * - * @return string */ abstract protected function getFormType(): string; @@ -163,8 +151,6 @@ abstract class CRUDController extends AbstractController /** * The list action view * Get data & display them. - * - * @return Response */ public function listAction(): Response { @@ -186,10 +172,6 @@ abstract class CRUDController extends AbstractController /** * The creation action view * Create a new data. - * - * @param Request $request - * - * @return Response */ public function createAction(Request $request): Response { @@ -219,10 +201,7 @@ abstract class CRUDController extends AbstractController * The edition action view * Edit an existing data. * - * @param Request $request - * @param string $id The ID of the data to edit - * - * @return Response + * @param string $id The ID of the data to edit */ public function editAction(Request $request, string $id): Response { @@ -253,8 +232,6 @@ abstract class CRUDController extends AbstractController * Display the object information. * * @param string $id The ID of the data to display - * - * @return Response */ public function showAction(string $id): Response { @@ -271,10 +248,6 @@ abstract class CRUDController extends AbstractController /** * The delete action view * Display a confirmation message to confirm data deletion. - * - * @param string $id - * - * @return Response */ public function deleteAction(string $id): Response { @@ -292,11 +265,7 @@ abstract class CRUDController extends AbstractController * The deletion action * Delete the data. * - * @param string $id - * * @throws \Exception - * - * @return Response */ public function deleteConfirmationAction(string $id): Response { @@ -323,8 +292,6 @@ abstract class CRUDController extends AbstractController /** * Check if we have to produce a soft delete behaviour. - * - * @return bool */ protected function isSoftDelete(): bool { diff --git a/src/Application/DDD/Repository/CRUDRepositoryInterface.php b/src/Application/DDD/Repository/CRUDRepositoryInterface.php index d31c5248999ea400eafc5136927bb64440f40146..ffc7772308332f231e03a2b76792f8394a061898 100644 --- a/src/Application/DDD/Repository/CRUDRepositoryInterface.php +++ b/src/Application/DDD/Repository/CRUDRepositoryInterface.php @@ -57,8 +57,6 @@ interface CRUDRepositoryInterface extends RepositoryInterface /** * Get all objects. * - * @param array $order - * * @return mixed[] */ public function findAll(array $order = []): array; diff --git a/src/Application/Doctrine/Repository/CRUDRepository.php b/src/Application/Doctrine/Repository/CRUDRepository.php index 9e1f49e195493d87646adbc556919accbbad5a7e..88be72c3c9e8ee8681f76d315386d017d5ab14c5 100644 --- a/src/Application/Doctrine/Repository/CRUDRepository.php +++ b/src/Application/Doctrine/Repository/CRUDRepository.php @@ -41,8 +41,6 @@ abstract class CRUDRepository implements CRUDRepositoryInterface /** * CRUDRepository constructor. - * - * @param RegistryInterface $registry */ public function __construct(RegistryInterface $registry) { @@ -51,8 +49,6 @@ abstract class CRUDRepository implements CRUDRepositoryInterface /** * Get the model class name. - * - * @return string */ abstract protected function getModelClass(): string; @@ -61,8 +57,6 @@ abstract class CRUDRepository implements CRUDRepositoryInterface * Since we use Doctrine, we expect to get EntityManagerInterface. * * @throws \Exception - * - * @return EntityManagerInterface */ protected function getManager(): EntityManagerInterface { @@ -144,8 +138,6 @@ abstract class CRUDRepository implements CRUDRepositoryInterface /** * Get all objects. * - * @param array $order - * * @return mixed[] */ public function findAll(array $order = []): array diff --git a/src/Application/Symfony/EventSubscriber/Doctrine/HistorySubscriber.php b/src/Application/Symfony/EventSubscriber/Doctrine/HistorySubscriber.php index 672cbbda68b4d667d6489958e752937972db3e7b..0bd19448584cb076de176b3154151cefedf8982e 100644 --- a/src/Application/Symfony/EventSubscriber/Doctrine/HistorySubscriber.php +++ b/src/Application/Symfony/EventSubscriber/Doctrine/HistorySubscriber.php @@ -43,8 +43,6 @@ class HistorySubscriber implements EventSubscriber * - Add createdAt date * - Add updatedAt date. * - * @param LifecycleEventArgs $args - * * @throws \Exception */ public function prePersist(LifecycleEventArgs $args): void @@ -62,8 +60,6 @@ class HistorySubscriber implements EventSubscriber * PreUpdate * - Update updatedAt date. * - * @param LifecycleEventArgs $args - * * @throws \Exception */ public function preUpdate(LifecycleEventArgs $args): void diff --git a/src/Application/Symfony/EventSubscriber/Doctrine/LinkCollectivitySubscriber.php b/src/Application/Symfony/EventSubscriber/Doctrine/LinkCollectivitySubscriber.php index ee9deb76c2b88d29d1417deb26a1af9ac0f7aec6..7b9d49000e453d9e8d40a71b0bd43cc6c0aece4c 100644 --- a/src/Application/Symfony/EventSubscriber/Doctrine/LinkCollectivitySubscriber.php +++ b/src/Application/Symfony/EventSubscriber/Doctrine/LinkCollectivitySubscriber.php @@ -60,8 +60,6 @@ class LinkCollectivitySubscriber implements EventSubscriber * That is to say that every time you will persist an object, * the user collectivity will be added to related object. * - * @param LifecycleEventArgs $args - * * @throws \Exception */ public function prePersist(LifecycleEventArgs $args): void diff --git a/src/Application/Symfony/EventSubscriber/Doctrine/LinkCreatorSubscriber.php b/src/Application/Symfony/EventSubscriber/Doctrine/LinkCreatorSubscriber.php index c8f38242d43981ae3b811f3a08935141ced173ef..de0662656057443723af455a5e33c175ceb0657d 100644 --- a/src/Application/Symfony/EventSubscriber/Doctrine/LinkCreatorSubscriber.php +++ b/src/Application/Symfony/EventSubscriber/Doctrine/LinkCreatorSubscriber.php @@ -69,8 +69,6 @@ class LinkCreatorSubscriber implements EventSubscriber * That is to say that every time you will persist an object, * the user will be added to related object. * - * @param LifecycleEventArgs $args - * * @throws \Exception */ public function prePersist(LifecycleEventArgs $args): void diff --git a/src/Application/Symfony/EventSubscriber/Kernel/IdleSubscriber.php b/src/Application/Symfony/EventSubscriber/Kernel/IdleSubscriber.php index 3e69a5a23da6030c795e3258ecd8df31efef94e5..3b3080f0e888bae9a10cbb226af81d162fe9648c 100644 --- a/src/Application/Symfony/EventSubscriber/Kernel/IdleSubscriber.php +++ b/src/Application/Symfony/EventSubscriber/Kernel/IdleSubscriber.php @@ -65,8 +65,6 @@ class IdleSubscriber implements EventSubscriberInterface /** * OnKernelRequest check idle since last Request. * If idle is over, then invalidate session. - * - * @param GetResponseEvent $event */ public function onKernelRequest(GetResponseEvent $event): void { diff --git a/src/Application/Symfony/Security/UserProvider.php b/src/Application/Symfony/Security/UserProvider.php index abb0b64f20ee012a34609f7011b8d416f4465002..e262c43384e626c8dcefaae7cae6e15bd6e4884d 100644 --- a/src/Application/Symfony/Security/UserProvider.php +++ b/src/Application/Symfony/Security/UserProvider.php @@ -43,8 +43,6 @@ class UserProvider /** * Get token. - * - * @return TokenInterface|null */ public function getToken(): ?TokenInterface { @@ -56,8 +54,6 @@ class UserProvider * - User isn't under protected route: return null * - User is anonymous: return null * - User is connected: return UserInterface instance. - * - * @return Model\User|null */ public function getAuthenticatedUser(): ?Model\User { diff --git a/src/Application/Traits/Model/CollectivityTrait.php b/src/Application/Traits/Model/CollectivityTrait.php index 3e70f45fdb1fa88a06ff4cec84e2fc9a088701a5..c17a3f2b438f87fcdad7d92b62f741188d972fe8 100644 --- a/src/Application/Traits/Model/CollectivityTrait.php +++ b/src/Application/Traits/Model/CollectivityTrait.php @@ -33,17 +33,11 @@ trait CollectivityTrait */ private $collectivity; - /** - * @return Collectivity|null - */ public function getCollectivity(): ?Collectivity { return $this->collectivity; } - /** - * @param Collectivity $collectivity - */ public function setCollectivity(Collectivity $collectivity): void { $this->collectivity = $collectivity; diff --git a/src/Application/Traits/Model/CreatorTrait.php b/src/Application/Traits/Model/CreatorTrait.php index e73530933d8ecb5cc875c12de00589c040de4bae..ca811f60b78473c67d20e5fb11e8eb4acc74d221 100644 --- a/src/Application/Traits/Model/CreatorTrait.php +++ b/src/Application/Traits/Model/CreatorTrait.php @@ -41,9 +41,6 @@ trait CreatorTrait return $this->creator; } - /** - * @param User $creator - */ public function setCreator(User $creator): void { $this->creator = $creator; diff --git a/src/Application/Traits/Model/SoftDeletableTrait.php b/src/Application/Traits/Model/SoftDeletableTrait.php index 9a8073d9bca502780732846ca786a12a064bf56e..5578bf50a9e9c753d1ac7e3513fee103e987391a 100644 --- a/src/Application/Traits/Model/SoftDeletableTrait.php +++ b/src/Application/Traits/Model/SoftDeletableTrait.php @@ -31,17 +31,11 @@ trait SoftDeletableTrait */ private $deletedAt; - /** - * @return \DateTimeImmutable|null - */ public function getDeletedAt(): ?\DateTimeImmutable { return $this->deletedAt; } - /** - * @param \DateTimeImmutable|null $deletedAt - */ public function setDeletedAt(?\DateTimeImmutable $deletedAt): void { $this->deletedAt = $deletedAt; diff --git a/src/Domain/Admin/Cloner/AbstractCloner.php b/src/Domain/Admin/Cloner/AbstractCloner.php index 91e4c6c786beee7c2b92c7cfce6200fdb9399127..c3e430b3929695038a18fdb8fd7bb770eae63ebe 100644 --- a/src/Domain/Admin/Cloner/AbstractCloner.php +++ b/src/Domain/Admin/Cloner/AbstractCloner.php @@ -69,8 +69,7 @@ abstract class AbstractCloner implements ClonerInterface } /** - * @param object $referent - * @param UserModel\Collectivity $collectivity + * @param object $referent * * @return object */ diff --git a/src/Domain/Admin/Cloner/ClonerInterface.php b/src/Domain/Admin/Cloner/ClonerInterface.php index 8ce914316cb6fee13b9a963939a2c81d211bbbc7..8c914b5bf39f766296e364cacc2e62f82e4645e1 100644 --- a/src/Domain/Admin/Cloner/ClonerInterface.php +++ b/src/Domain/Admin/Cloner/ClonerInterface.php @@ -31,16 +31,11 @@ interface ClonerInterface { /** * Clone data thanks to information contained in Duplication model. - * - * @param Model\Duplication $duplication */ public function clone(Model\Duplication $duplication): void; /** * Clone data only for specified target collectivity. - * - * @param Model\Duplication $duplication - * @param UserModel\Collectivity $targetCollectivity */ public function cloneToSpecifiedTarget(Model\Duplication $duplication, UserModel\Collectivity $targetCollectivity): void; } diff --git a/src/Domain/Admin/Cloner/ClonerProvider.php b/src/Domain/Admin/Cloner/ClonerProvider.php index 9ebb29667583860768d3a42ae5bcf4f7cc029958..a431ab05ecf89ba734aa7633824be7d3c92520c7 100644 --- a/src/Domain/Admin/Cloner/ClonerProvider.php +++ b/src/Domain/Admin/Cloner/ClonerProvider.php @@ -55,10 +55,6 @@ class ClonerProvider /** * Get cloner object thanks to type to clone. - * - * @param string $type - * - * @return ClonerInterface */ public function getCloner(string $type): ClonerInterface { diff --git a/src/Domain/Admin/Cloner/ContractorCloner.php b/src/Domain/Admin/Cloner/ContractorCloner.php index bacec90a38d32034e9119cd156439720a473c0bb..0f3c57399592c1e0965381a8e06438af9ffa3e73 100644 --- a/src/Domain/Admin/Cloner/ContractorCloner.php +++ b/src/Domain/Admin/Cloner/ContractorCloner.php @@ -35,8 +35,6 @@ class ContractorCloner extends AbstractCloner * @param RegistryModel\Contractor $referent * * @throws \Exception - * - * @return RegistryModel\Contractor */ protected function cloneReferentForCollectivity($referent, UserModel\Collectivity $collectivity): RegistryModel\Contractor { diff --git a/src/Domain/Admin/Cloner/MesurementCloner.php b/src/Domain/Admin/Cloner/MesurementCloner.php index 4d7fbf57515428798e436a1ad2146445a472c860..7e565ca97d650da280a9627a23b1932518e1717e 100644 --- a/src/Domain/Admin/Cloner/MesurementCloner.php +++ b/src/Domain/Admin/Cloner/MesurementCloner.php @@ -35,8 +35,6 @@ class MesurementCloner extends AbstractCloner * @param RegistryModel\Mesurement $referent * * @throws \Exception - * - * @return RegistryModel\Mesurement */ protected function cloneReferentForCollectivity($referent, UserModel\Collectivity $collectivity): RegistryModel\Mesurement { diff --git a/src/Domain/Admin/Cloner/TreatmentCloner.php b/src/Domain/Admin/Cloner/TreatmentCloner.php index bc4d132fe7b260bb1f5ea67610b305314b8f8f52..a8593a55d8523f866e0f5cbff53aba87bc838884 100644 --- a/src/Domain/Admin/Cloner/TreatmentCloner.php +++ b/src/Domain/Admin/Cloner/TreatmentCloner.php @@ -35,8 +35,6 @@ class TreatmentCloner extends AbstractCloner * @param RegistryModel\Treatment $referent * * @throws \Exception - * - * @return RegistryModel\Treatment */ protected function cloneReferentForCollectivity($referent, UserModel\Collectivity $collectivity): RegistryModel\Treatment { diff --git a/src/Domain/Admin/Controller/DuplicationController.php b/src/Domain/Admin/Controller/DuplicationController.php index 354037d2452467d89e3920a2eac5aed44c12671e..446ce7f87549483501ad73934b565e6f4e364624 100644 --- a/src/Domain/Admin/Controller/DuplicationController.php +++ b/src/Domain/Admin/Controller/DuplicationController.php @@ -90,8 +90,6 @@ class DuplicationController extends AbstractController * Show new duplication page form. * * @throws \Exception - * - * @return Response */ public function newAction(): Response { @@ -126,10 +124,6 @@ class DuplicationController extends AbstractController /** * Show duplication processing page. - * - * @param string $duplicationId - * - * @return Response */ public function processingAction(string $duplicationId): Response { @@ -148,11 +142,6 @@ class DuplicationController extends AbstractController /** * Action called with AJAX call * Make duplication thanks to specified in duplication model. - * - * @param string $duplicationId - * @param string $targetCollectivityId - * - * @return JsonResponse */ public function duplicateAction(string $duplicationId, string $targetCollectivityId): JsonResponse { diff --git a/src/Domain/Admin/DTO/DuplicationFormDTO.php b/src/Domain/Admin/DTO/DuplicationFormDTO.php index d0a542fcbb977f758027eacb452d5f1ee2842b39..4b7cdb5b795e75bae37b9612950fb35bbd9786d2 100644 --- a/src/Domain/Admin/DTO/DuplicationFormDTO.php +++ b/src/Domain/Admin/DTO/DuplicationFormDTO.php @@ -81,81 +81,51 @@ class DuplicationFormDTO $this->targetCollectivities = []; } - /** - * @return string|null - */ public function getType(): ?string { return $this->type; } - /** - * @param string|null $type - */ public function setType(?string $type): void { $this->type = $type; } - /** - * @return Collectivity|null - */ public function getSourceCollectivity(): ?Collectivity { return $this->sourceCollectivity; } - /** - * @param Collectivity|null $sourceCollectivity - */ public function setSourceCollectivity(?Collectivity $sourceCollectivity): void { $this->sourceCollectivity = $sourceCollectivity; } - /** - * @return array - */ public function getData(): array { return $this->data; } - /** - * @param array $data - */ public function setData(array $data): void { $this->data = $data; } - /** - * @return string|null - */ public function getTargetOption(): ?string { return $this->targetOption; } - /** - * @param string|null $targetOption - */ public function setTargetOption(?string $targetOption): void { $this->targetOption = $targetOption; } - /** - * @return array - */ public function getTargetCollectivityTypes(): array { return $this->targetCollectivityTypes; } - /** - * @param array $targetCollectivityTypes - */ public function setTargetCollectivityTypes(array $targetCollectivityTypes): void { $this->targetCollectivityTypes = $targetCollectivityTypes; diff --git a/src/Domain/Admin/Form/Type/DuplicationType.php b/src/Domain/Admin/Form/Type/DuplicationType.php index 5c87ecaef4e24a1a314b01a5400a58745aaec7f1..110f564cbf66b135adbe5069f66c586db495700f 100644 --- a/src/Domain/Admin/Form/Type/DuplicationType.php +++ b/src/Domain/Admin/Form/Type/DuplicationType.php @@ -39,9 +39,6 @@ class DuplicationType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -115,8 +112,6 @@ class DuplicationType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Admin/Hydrator/DuplicationHydrator.php b/src/Domain/Admin/Hydrator/DuplicationHydrator.php index bb47f3f6d158e109b3db50118a6aa19b33183d99..d8896e48346b05191e5fd77ed58b9bdc0d18536a 100644 --- a/src/Domain/Admin/Hydrator/DuplicationHydrator.php +++ b/src/Domain/Admin/Hydrator/DuplicationHydrator.php @@ -28,10 +28,6 @@ class DuplicationHydrator /** * DuplicationDTOTransformer constructor. - * - * @param RegistryRepository\Treatment $treatmentRepository - * @param RegistryRepository\Contractor $contractorRepository - * @param RegistryRepository\Mesurement $mesurementRepository */ public function __construct( RegistryRepository\Treatment $treatmentRepository, @@ -59,8 +55,6 @@ class DuplicationHydrator /** * Add every data ids (converted as object) from DuplicationFormDTO to Duplication. - * - * @param Duplication $model */ protected function hydrateDataField(Duplication $model): void { diff --git a/src/Domain/Admin/Model/Duplication.php b/src/Domain/Admin/Model/Duplication.php index 969334d51bc64f2ce7bf30fcd052730d44861b98..8edf81bde9f6fedb868c5f602f35c56791178b69 100644 --- a/src/Domain/Admin/Model/Duplication.php +++ b/src/Domain/Admin/Model/Duplication.php @@ -47,8 +47,6 @@ class Duplication /** * DuplicationDTO constructor. * - * @param string $type - * @param Collectivity $sourceCollectivity * @param Collectivity[] $targetCollectivities * * @throws \Exception @@ -66,41 +64,26 @@ class Duplication $this->targetCollectivities = $targetCollectivities; } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string - */ public function getType(): string { return $this->type; } - /** - * @param string $type - */ public function setType(string $type): void { $this->type = $type; } - /** - * @return Collectivity - */ public function getSourceCollectivity(): Collectivity { return $this->sourceCollectivity; } - /** - * @param Collectivity $sourceCollectivity - */ public function setSourceCollectivity(Collectivity $sourceCollectivity): void { $this->sourceCollectivity = $sourceCollectivity; @@ -114,17 +97,11 @@ class Duplication return $this->dataIds; } - /** - * @param string $dataId - */ public function addDataId(string $dataId): void { $this->dataIds[] = $dataId; } - /** - * @param string $dataId - */ public function removeDataId(string $dataId): void { $key = \array_search($dataId, $this->dataIds, true); @@ -136,9 +113,6 @@ class Duplication unset($this->dataIds[$key]); } - /** - * @return array - */ public function getData(): array { return $this->data; @@ -174,17 +148,11 @@ class Duplication return $this->targetCollectivities; } - /** - * @param Collectivity $collectivity - */ public function addTargetCollectivity(Collectivity $collectivity): void { $this->targetCollectivities[] = $collectivity; } - /** - * @param Collectivity $collectivity - */ public function removeTargetCollectivity(Collectivity $collectivity): void { $key = \array_search($collectivity, $this->targetCollectivities, true); diff --git a/src/Domain/Admin/Transformer/DuplicationFormDTOTransformer.php b/src/Domain/Admin/Transformer/DuplicationFormDTOTransformer.php index 4686a259ff1bbbc450e1f91aaf74aee63baabce5..22293b546ba371be27d6843db666352785a9af41 100644 --- a/src/Domain/Admin/Transformer/DuplicationFormDTOTransformer.php +++ b/src/Domain/Admin/Transformer/DuplicationFormDTOTransformer.php @@ -24,9 +24,6 @@ class DuplicationFormDTOTransformer /** * DuplicationDTOTransformer constructor. - * - * @param UserRepository\Collectivity $collectivityRepository - * @param DuplicationHydrator $hydrator */ public function __construct( UserRepository\Collectivity $collectivityRepository, @@ -39,11 +36,7 @@ class DuplicationFormDTOTransformer /** * Transform a DuplicationFormDTO to a Duplication object model. * - * @param DuplicationFormDTO $formDTO - * * @throws \Exception - * - * @return Duplication */ public function toModelObject(DuplicationFormDTO $formDTO): Duplication { @@ -75,9 +68,6 @@ class DuplicationFormDTOTransformer /** * Add target collectivities formatted from "PER COLLECTIVITY" target options. - * - * @param DuplicationFormDTO $formDTO - * @param Duplication $model */ protected function addTargetCollectivitiesPerCollectivity(DuplicationFormDTO $formDTO, Duplication $model): void { @@ -88,9 +78,6 @@ class DuplicationFormDTOTransformer /** * Add target collectivities formatted from "PER TYPE" target options. - * - * @param DuplicationFormDTO $formDTO - * @param Duplication $model */ protected function addTargetCollectivitiesPerType(DuplicationFormDTO $formDTO, Duplication $model): void { diff --git a/src/Domain/Maturity/Calculator/Maturity.php b/src/Domain/Maturity/Calculator/Maturity.php index eefe7bc7001d8d6924bcd36de5e7f78f001cbde4..9ec7dc6ab86dae8c8bec57b2321922da198bbbf6 100644 --- a/src/Domain/Maturity/Calculator/Maturity.php +++ b/src/Domain/Maturity/Calculator/Maturity.php @@ -86,8 +86,6 @@ class Maturity * Make an average of maturity indice of each Maturity. * * @param Model\Maturity[] $maturityList - * - * @return int */ public function getGlobalScore(array $maturityList = []): int { diff --git a/src/Domain/Maturity/Calculator/MaturityHandler.php b/src/Domain/Maturity/Calculator/MaturityHandler.php index 60ed43eee5a8ed7666d2db545632c7b2fc5b37b2..bcb95f3b14d45044c7f4b6b967836602c22ae41a 100644 --- a/src/Domain/Maturity/Calculator/MaturityHandler.php +++ b/src/Domain/Maturity/Calculator/MaturityHandler.php @@ -41,8 +41,6 @@ class MaturityHandler /** * Handle calculator & generate score by maturity. - * - * @param Model\Survey $survey */ public function handle(Model\Survey $survey): void { diff --git a/src/Domain/Maturity/Controller/SurveyController.php b/src/Domain/Maturity/Controller/SurveyController.php index 2a288f413c9aa33ef618277c71a61262274eb26a..8ae698f7d46c6bc2acd3a012f6d9337d75c31cec 100644 --- a/src/Domain/Maturity/Controller/SurveyController.php +++ b/src/Domain/Maturity/Controller/SurveyController.php @@ -191,8 +191,6 @@ class SurveyController extends CRUDController * Get current survey and previous one. * * @throws \PhpOffice\PhpWord\Exception\Exception - * - * @return Response */ public function reportAction(string $id): Response { diff --git a/src/Domain/Maturity/Form/Type/AnswerType.php b/src/Domain/Maturity/Form/Type/AnswerType.php index 2f85733805c043c979db511323887d26a2d52b08..73f5bfed4c85aad57b7f71a53e817cf19aa814ec 100644 --- a/src/Domain/Maturity/Form/Type/AnswerType.php +++ b/src/Domain/Maturity/Form/Type/AnswerType.php @@ -34,9 +34,6 @@ class AnswerType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -55,8 +52,6 @@ class AnswerType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Maturity/Form/Type/SurveyType.php b/src/Domain/Maturity/Form/Type/SurveyType.php index 3c5829f25a9650b094598dc33d707e606070aa71..4270c5bdaaca780395a2552f7c6f954d68f0380a 100644 --- a/src/Domain/Maturity/Form/Type/SurveyType.php +++ b/src/Domain/Maturity/Form/Type/SurveyType.php @@ -34,9 +34,6 @@ class SurveyType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -52,8 +49,6 @@ class SurveyType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Maturity/Model/Answer.php b/src/Domain/Maturity/Model/Answer.php index 24646a71e732bab329d782fb7c6ab93e2016b915..a8cf6888d56a890a9839b0cdf1e7514a8135c486 100644 --- a/src/Domain/Maturity/Model/Answer.php +++ b/src/Domain/Maturity/Model/Answer.php @@ -59,57 +59,36 @@ class Answer $this->id = Uuid::uuid4(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return int|null - */ public function getResponse(): ?int { return $this->response; } - /** - * @param int|null $response - */ public function setResponse(?int $response): void { $this->response = $response; } - /** - * @return Question|null - */ public function getQuestion(): ?Question { return $this->question; } - /** - * @param Question|null $question - */ public function setQuestion(?Question $question): void { $this->question = $question; } - /** - * @return Survey|null - */ public function getSurvey(): ?Survey { return $this->survey; } - /** - * @param Survey|null $survey - */ public function setSurvey(?Survey $survey): void { $this->survey = $survey; diff --git a/src/Domain/Maturity/Model/Domain.php b/src/Domain/Maturity/Model/Domain.php index d64b9ebf561dede136d76785ac8cd072c74d2659..068ef6a36ad2a7067e72ce4449ac453da9cc0967 100644 --- a/src/Domain/Maturity/Model/Domain.php +++ b/src/Domain/Maturity/Model/Domain.php @@ -71,74 +71,47 @@ class Domain $this->maturity = []; } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string|null - */ public function getName(): ?string { return $this->name; } - /** - * @param string|null $name - */ public function setName(?string $name): void { $this->name = $name; } - /** - * @return string|null - */ public function getColor(): ?string { return $this->color; } - /** - * @param string|null $color - */ public function setColor(?string $color): void { $this->color = $color; } - /** - * @return int|null - */ public function getPosition(): ?int { return $this->position; } - /** - * @param int|null $position - */ public function setPosition(?int $position): void { $this->position = $position; } - /** - * @param Question $question - */ public function addQuestion(Question $question): void { $this->questions[] = $question; $question->setDomain($this); } - /** - * @param Question $question - */ public function removeQuestion(Question $question): void { $key = \array_search($question, $this->questions, true); @@ -150,26 +123,17 @@ class Domain unset($this->questions[$key]); } - /** - * @return iterable - */ public function getQuestions(): iterable { return $this->questions; } - /** - * @param Maturity $maturity - */ public function addMaturity(Maturity $maturity): void { $this->maturity[] = $maturity; $maturity->setDomain($this); } - /** - * @param Maturity $maturity - */ public function removeMaturity(Maturity $maturity): void { $key = \array_search($maturity, $this->maturity, true); @@ -181,9 +145,6 @@ class Domain unset($this->maturity[$key]); } - /** - * @return iterable - */ public function getMaturity(): iterable { return $this->maturity; diff --git a/src/Domain/Maturity/Model/Maturity.php b/src/Domain/Maturity/Model/Maturity.php index 13fa5b2c0bc181cbcf07d056fab9e2588747c16e..f6cffa73de9a603ccd10c3b2e6150b9c4d4587a6 100644 --- a/src/Domain/Maturity/Model/Maturity.php +++ b/src/Domain/Maturity/Model/Maturity.php @@ -59,57 +59,36 @@ class Maturity $this->id = Uuid::uuid4(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return Domain|null - */ public function getDomain(): ?Domain { return $this->domain; } - /** - * @param Domain|null $domain - */ public function setDomain(?Domain $domain): void { $this->domain = $domain; } - /** - * @return int|null - */ public function getScore(): ?int { return $this->score; } - /** - * @param int|null $score - */ public function setScore(?int $score): void { $this->score = $score; } - /** - * @return Survey|null - */ public function getSurvey(): ?Survey { return $this->survey; } - /** - * @param Survey|null $survey - */ public function setSurvey(?Survey $survey): void { $this->survey = $survey; diff --git a/src/Domain/Maturity/Model/Question.php b/src/Domain/Maturity/Model/Question.php index aa79c073f2bae4f318c6100499055021667f67fd..7d5d90125c3d66bc8c7c512f807111a912fadd72 100644 --- a/src/Domain/Maturity/Model/Question.php +++ b/src/Domain/Maturity/Model/Question.php @@ -61,49 +61,31 @@ class Question $this->answers = new ArrayCollection(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string|null - */ public function getName(): ?string { return $this->name; } - /** - * @param string|null $name - */ public function setName(?string $name): void { $this->name = $name; } - /** - * @return Domain|null - */ public function getDomain(): ?Domain { return $this->domain; } - /** - * @param Domain|null $domain - */ public function setDomain(?Domain $domain): void { $this->domain = $domain; } - /** - * @return iterable - */ public function getAnswers(): iterable { return $this->answers; diff --git a/src/Domain/Maturity/Model/Survey.php b/src/Domain/Maturity/Model/Survey.php index cfda515f685ee3a6d834cab5e427def3c3f27c96..1353a63f5aa855aed096203c480865281bfa549b 100644 --- a/src/Domain/Maturity/Model/Survey.php +++ b/src/Domain/Maturity/Model/Survey.php @@ -74,26 +74,17 @@ class Survey return "Indice du {$this->createdAt->format('d/m/Y')}"; } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @param Answer $answer - */ public function addAnswer(Answer $answer): void { $this->answers[] = $answer; $answer->setSurvey($this); } - /** - * @param Answer $answer - */ public function removeAnswer(Answer $answer): void { $key = \array_search($answer, $this->answers, true); @@ -105,26 +96,17 @@ class Survey unset($this->answers[$key]); } - /** - * @return iterable - */ public function getAnswers(): iterable { return $this->answers; } - /** - * @param Maturity $maturity - */ public function addMaturity(Maturity $maturity): void { $this->maturity[] = $maturity; $maturity->setSurvey($this); } - /** - * @param Maturity $maturity - */ public function removeMaturity(Maturity $maturity): void { $key = \array_search($maturity, $this->maturity, true); @@ -136,17 +118,11 @@ class Survey unset($this->maturity[$key]); } - /** - * @return iterable - */ public function getMaturity(): iterable { return $this->maturity; } - /** - * @param array $maturityList - */ public function setMaturity(array $maturityList): void { foreach ($maturityList as $maturity) { @@ -155,17 +131,11 @@ class Survey } } - /** - * @return int - */ public function getScore(): int { return $this->score; } - /** - * @param int $score - */ public function setScore(int $score): void { $this->score = $score; diff --git a/src/Domain/Maturity/Repository/Survey.php b/src/Domain/Maturity/Repository/Survey.php index 3072bc82f97c707597f665d59e6560a71279fb41..7c80a1799e31d26fab6bf885553a6245ebd17ead 100644 --- a/src/Domain/Maturity/Repository/Survey.php +++ b/src/Domain/Maturity/Repository/Survey.php @@ -42,11 +42,6 @@ interface Survey extends CRUDRepositoryInterface /** * Find previous survey by created_at date. - * - * @param string $id - * @param int $limit - * - * @return iterable */ public function findPreviousById(string $id, int $limit = 1): iterable; } diff --git a/src/Domain/Maturity/Symfony/EventSubscriber/Doctrine/GenerateMaturitySubscriber.php b/src/Domain/Maturity/Symfony/EventSubscriber/Doctrine/GenerateMaturitySubscriber.php index ce3202fd2bc492d86c64ab5fba3ec08d52d4b40b..ed61c62361fa3d34b36958d2ff935018f592f1fd 100644 --- a/src/Domain/Maturity/Symfony/EventSubscriber/Doctrine/GenerateMaturitySubscriber.php +++ b/src/Domain/Maturity/Symfony/EventSubscriber/Doctrine/GenerateMaturitySubscriber.php @@ -42,9 +42,6 @@ class GenerateMaturitySubscriber implements EventSubscriber $this->maturityHandler = $maturityHandler; } - /** - * @return array - */ public function getSubscribedEvents(): array { return [ @@ -53,17 +50,11 @@ class GenerateMaturitySubscriber implements EventSubscriber ]; } - /** - * @param LifecycleEventArgs $args - */ public function prePersist(LifecycleEventArgs $args): void { $this->process($args); } - /** - * @param LifecycleEventArgs $args - */ public function preUpdate(LifecycleEventArgs $args): void { $this->process($args); @@ -71,8 +62,6 @@ class GenerateMaturitySubscriber implements EventSubscriber /** * Handle maturity for each persisted or updated survey. - * - * @param LifecycleEventArgs $args */ private function process(LifecycleEventArgs $args): void { diff --git a/src/Domain/Maturity/Twig/Extension/SurveyExtension.php b/src/Domain/Maturity/Twig/Extension/SurveyExtension.php index 4ff9c09ef95f0be77ed713c3948413f5e7b4f28a..1a32c225cd7fea31e54ba4e5e822e5c517b1ee68 100644 --- a/src/Domain/Maturity/Twig/Extension/SurveyExtension.php +++ b/src/Domain/Maturity/Twig/Extension/SurveyExtension.php @@ -45,10 +45,6 @@ class SurveyExtension extends AbstractExtension /** * Order formView answers by domain. * Then, every domains must be ordered by position. - * - * @param FormView $formView - * - * @return array */ public function orderByDomain(FormView $formView): array { @@ -71,8 +67,6 @@ class SurveyExtension extends AbstractExtension * Order answers by question name asc. * * @param FormView[] $formViews - * - * @return array */ public function orderAnswersByQuestionNameAsc(array $formViews): array { diff --git a/src/Domain/Registry/Calculator/Completion/AbstractCompletion.php b/src/Domain/Registry/Calculator/Completion/AbstractCompletion.php index b0a67b29e1b61b9c7426519f76d15757a3ae0ca0..fd1c8bee084bb9331dba5d4ef8f3628eeba4b9d3 100644 --- a/src/Domain/Registry/Calculator/Completion/AbstractCompletion.php +++ b/src/Domain/Registry/Calculator/Completion/AbstractCompletion.php @@ -30,15 +30,11 @@ abstract class AbstractCompletion * Get the completion points computed for provided object. * * @param mixed $object - * - * @return int */ abstract protected function getPoints($object): int; /** * Get max number point possible. - * - * @return int */ abstract protected function getMaxPoints(): int; @@ -47,8 +43,6 @@ abstract class AbstractCompletion * Rounded to up by getting the following int number. * * @param mixed $object The object on which to calculate completion - * - * @return int */ public function calculate($object): int { diff --git a/src/Domain/Registry/Calculator/Completion/TreatmentCompletion.php b/src/Domain/Registry/Calculator/Completion/TreatmentCompletion.php index eaf7a6616a6a07db57d4a15611ae54407e1887c4..8f9506448516589640f789a92c26bff818c0fc88 100644 --- a/src/Domain/Registry/Calculator/Completion/TreatmentCompletion.php +++ b/src/Domain/Registry/Calculator/Completion/TreatmentCompletion.php @@ -33,8 +33,6 @@ class TreatmentCompletion extends AbstractCompletion * Get completion points for Treatment. * * @param Model\Treatment $object - * - * @return int */ protected function getPoints($object): int { @@ -93,8 +91,6 @@ class TreatmentCompletion extends AbstractCompletion /** * {@inheritdoc} - * - * @return int */ protected function getMaxPoints(): int { diff --git a/src/Domain/Registry/Controller/ContractorController.php b/src/Domain/Registry/Controller/ContractorController.php index e72898f0c19d28ffd61123249acb273189f10f41..5cc26a9c89666f7dba270ac98b673b8113a86179 100644 --- a/src/Domain/Registry/Controller/ContractorController.php +++ b/src/Domain/Registry/Controller/ContractorController.php @@ -129,8 +129,6 @@ class ContractorController extends CRUDController * Generate a word report of contractors. * * @throws \PhpOffice\PhpWord\Exception\Exception - * - * @return Response */ public function reportAction(): Response { @@ -144,10 +142,6 @@ class ContractorController extends CRUDController /** * Get all active treatments of a collectivity and return their id/name as JSON. - * - * @param string $collectivityId - * - * @return Response */ public function apiGetContractorsByCollectivity(string $collectivityId): Response { diff --git a/src/Domain/Registry/Controller/MesurementController.php b/src/Domain/Registry/Controller/MesurementController.php index 7289f1910bfe7153cc1562834fc0e041208e0299..f8e57c048bf61f3939e85b033db4a76bcf12cc81 100644 --- a/src/Domain/Registry/Controller/MesurementController.php +++ b/src/Domain/Registry/Controller/MesurementController.php @@ -132,8 +132,6 @@ class MesurementController extends CRUDController * Generate a word report of contractors. * * @throws \PhpOffice\PhpWord\Exception\Exception - * - * @return Response */ public function reportAction(): Response { @@ -169,10 +167,6 @@ class MesurementController extends CRUDController /** * Get all active treatments of a collectivity and return their id/name as JSON. - * - * @param string $collectivityId - * - * @return Response */ public function apiGetMesurementsByCollectivity(string $collectivityId): Response { diff --git a/src/Domain/Registry/Controller/ProofController.php b/src/Domain/Registry/Controller/ProofController.php index a2dc884118cdb623600364e6792424b07be7192d..500b97c931e06486f46fd6244be1541e84b34274 100644 --- a/src/Domain/Registry/Controller/ProofController.php +++ b/src/Domain/Registry/Controller/ProofController.php @@ -168,10 +168,6 @@ class ProofController extends CRUDController /** * The archive action view * Display a confirmation message to confirm data archivage. - * - * @param string $id - * - * @return Response */ public function archiveAction(string $id): Response { @@ -189,11 +185,7 @@ class ProofController extends CRUDController * The archive action * Archive the data. * - * @param string $id - * * @throws \Exception - * - * @return Response */ public function archiveConfirmationAction(string $id): Response { @@ -248,11 +240,7 @@ class ProofController extends CRUDController /** * Download uploaded document which belongs to provided object id. * - * @param string $id - * * @throws \Exception - * - * @return Response */ public function downloadAction(string $id): Response { diff --git a/src/Domain/Registry/Controller/RequestController.php b/src/Domain/Registry/Controller/RequestController.php index de72e0f1f3f12d9c6c381e7d7e30159f7b5e81b7..5551e08311674947ba328ba9e0d8d3f6df634136 100644 --- a/src/Domain/Registry/Controller/RequestController.php +++ b/src/Domain/Registry/Controller/RequestController.php @@ -139,8 +139,6 @@ class RequestController extends CRUDController * Generate a word report of contractors. * * @throws \PhpOffice\PhpWord\Exception\Exception - * - * @return Response */ public function reportAction(): Response { diff --git a/src/Domain/Registry/Controller/TreatmentController.php b/src/Domain/Registry/Controller/TreatmentController.php index 7180892c1c49b76ab547d337d87af3729ce636bb..f04d8f2cb37b97a1a7b72341e919eaf144cd179a 100644 --- a/src/Domain/Registry/Controller/TreatmentController.php +++ b/src/Domain/Registry/Controller/TreatmentController.php @@ -145,8 +145,6 @@ class TreatmentController extends CRUDController * Generate a word report of contractors. * * @throws \PhpOffice\PhpWord\Exception\Exception - * - * @return Response */ public function reportAction(): Response { @@ -161,10 +159,6 @@ class TreatmentController extends CRUDController /** * Get all active treatments of a collectivity and return their id/name as JSON. - * - * @param string $collectivityId - * - * @return Response */ public function apiGetTreatmentsByCollectivity(string $collectivityId): Response { diff --git a/src/Domain/Registry/Controller/ViolationController.php b/src/Domain/Registry/Controller/ViolationController.php index 9aeebbeff84ffe27d9765c339678e47f78292eeb..59e4c547d96cdfe701fc5cf1c3a580423120371d 100644 --- a/src/Domain/Registry/Controller/ViolationController.php +++ b/src/Domain/Registry/Controller/ViolationController.php @@ -139,8 +139,6 @@ class ViolationController extends CRUDController * Generate a word report of contractors. * * @throws \PhpOffice\PhpWord\Exception\Exception - * - * @return Response */ public function reportAction(): Response { diff --git a/src/Domain/Registry/Form/Type/ContractorType.php b/src/Domain/Registry/Form/Type/ContractorType.php index d92a2d8d60d358f17db872694053e6b2f357fe09..add400cabdbc7aa2e7c381bdb2d10ecec5390c9f 100644 --- a/src/Domain/Registry/Form/Type/ContractorType.php +++ b/src/Domain/Registry/Form/Type/ContractorType.php @@ -37,9 +37,6 @@ class ContractorType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -77,8 +74,6 @@ class ContractorType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/Embeddable/AddressType.php b/src/Domain/Registry/Form/Type/Embeddable/AddressType.php index b938d20783dede7461d87229c116f5fdfbec3e00..ce85794860535d9e8747b6d00488d18c56fc6226 100644 --- a/src/Domain/Registry/Form/Type/Embeddable/AddressType.php +++ b/src/Domain/Registry/Form/Type/Embeddable/AddressType.php @@ -35,9 +35,6 @@ class AddressType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -72,8 +69,6 @@ class AddressType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/Embeddable/ComplexChoiceType.php b/src/Domain/Registry/Form/Type/Embeddable/ComplexChoiceType.php index 50483f76d64477b3d885bbaf12f62f0a883d105e..2efa19652e8129d76cd8ff246e201c6b6a392234 100644 --- a/src/Domain/Registry/Form/Type/Embeddable/ComplexChoiceType.php +++ b/src/Domain/Registry/Form/Type/Embeddable/ComplexChoiceType.php @@ -35,9 +35,6 @@ class ComplexChoiceType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -61,8 +58,6 @@ class ComplexChoiceType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/Embeddable/DelayType.php b/src/Domain/Registry/Form/Type/Embeddable/DelayType.php index 0be9b22f4fd0a5954c982ebbbfdc22e6eb10d04e..46e8ad9a6c393960be035e8d7d09f5090002c4e9 100644 --- a/src/Domain/Registry/Form/Type/Embeddable/DelayType.php +++ b/src/Domain/Registry/Form/Type/Embeddable/DelayType.php @@ -37,9 +37,6 @@ class DelayType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -69,8 +66,6 @@ class DelayType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/Embeddable/RequestAnswerType.php b/src/Domain/Registry/Form/Type/Embeddable/RequestAnswerType.php index 239763738308a78823ff25e1e06517b9db602359..9f0e90bc69435defa1dfb9c25c5f4002434ade6e 100644 --- a/src/Domain/Registry/Form/Type/Embeddable/RequestAnswerType.php +++ b/src/Domain/Registry/Form/Type/Embeddable/RequestAnswerType.php @@ -36,9 +36,6 @@ class RequestAnswerType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -70,8 +67,6 @@ class RequestAnswerType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/Embeddable/RequestApplicantType.php b/src/Domain/Registry/Form/Type/Embeddable/RequestApplicantType.php index 514df0a783d00bfb2a1dc831e6206e410f2cbcdd..8a79827fc0cf7b87c36fd7052dc4ee35009460fb 100644 --- a/src/Domain/Registry/Form/Type/Embeddable/RequestApplicantType.php +++ b/src/Domain/Registry/Form/Type/Embeddable/RequestApplicantType.php @@ -37,9 +37,6 @@ class RequestApplicantType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -78,8 +75,6 @@ class RequestApplicantType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/Embeddable/RequestConcernedPeopleType.php b/src/Domain/Registry/Form/Type/Embeddable/RequestConcernedPeopleType.php index 1d7bf8a7b5e32c40f52d316b1ad26d3c764d06c0..1ac8f131bab2c75d7220fdb16a9a03352347f8d9 100644 --- a/src/Domain/Registry/Form/Type/Embeddable/RequestConcernedPeopleType.php +++ b/src/Domain/Registry/Form/Type/Embeddable/RequestConcernedPeopleType.php @@ -36,9 +36,6 @@ class RequestConcernedPeopleType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -77,8 +74,6 @@ class RequestConcernedPeopleType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/MesurementType.php b/src/Domain/Registry/Form/Type/MesurementType.php index 638f2078f5f8e6a216fa07eb04fdf9a4a618d212..a63725fad5a2d9d0c969696b794e9a22b7120432 100644 --- a/src/Domain/Registry/Form/Type/MesurementType.php +++ b/src/Domain/Registry/Form/Type/MesurementType.php @@ -37,9 +37,6 @@ class MesurementType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -98,8 +95,6 @@ class MesurementType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/ProofType.php b/src/Domain/Registry/Form/Type/ProofType.php index 4a86967c18e8647f6b1bbb50b6c19ae8898db431..984356ff78965007bb8b6df3cf486ee5bc64cc9f 100644 --- a/src/Domain/Registry/Form/Type/ProofType.php +++ b/src/Domain/Registry/Form/Type/ProofType.php @@ -52,9 +52,6 @@ class ProofType extends AbstractType /** * Build type form. * - * @param FormBuilderInterface $builder - * @param array $options - * * @throws \Exception */ public function buildForm(FormBuilderInterface $builder, array $options) @@ -203,8 +200,6 @@ class ProofType extends AbstractType * Prefix every inactive object with "Inactif". * * @param mixed $object - * - * @return string */ protected function formatInactiveObjectLabel($object): string { @@ -223,8 +218,6 @@ class ProofType extends AbstractType * Prefix every archived object with "Archivé". * * @param mixed $object - * - * @return string */ protected function formatArchivedObjectLabel($object): string { @@ -241,8 +234,6 @@ class ProofType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/RequestType.php b/src/Domain/Registry/Form/Type/RequestType.php index 64b1f89a827cadf6a58504580be3dad3a28f2ec9..bc871b30308eeb3ce402d01990aa405bc6eaf1db 100644 --- a/src/Domain/Registry/Form/Type/RequestType.php +++ b/src/Domain/Registry/Form/Type/RequestType.php @@ -40,9 +40,6 @@ class RequestType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -100,8 +97,6 @@ class RequestType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/TreatmentType.php b/src/Domain/Registry/Form/Type/TreatmentType.php index ff6c19e7f3d5dfbc0c854aeeab147f5957066620..32d016448cddce0036cf8a0826118530af5e5143 100644 --- a/src/Domain/Registry/Form/Type/TreatmentType.php +++ b/src/Domain/Registry/Form/Type/TreatmentType.php @@ -56,9 +56,6 @@ class TreatmentType extends AbstractType /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -225,8 +222,6 @@ class TreatmentType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Form/Type/ViolationType.php b/src/Domain/Registry/Form/Type/ViolationType.php index aad9d1e3fd04fe660ca7eb4a86e0b2c19874bf6b..f7fc34c6fc1103e6066ece9030cc9d1d9a56c5af 100644 --- a/src/Domain/Registry/Form/Type/ViolationType.php +++ b/src/Domain/Registry/Form/Type/ViolationType.php @@ -39,9 +39,6 @@ class ViolationType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -157,8 +154,6 @@ class ViolationType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/Registry/Model/Contractor.php b/src/Domain/Registry/Model/Contractor.php index 27d2b7c0c7eb83e11940eed51d0f4ac8d5a9e000..35e9ea1aa8622a0ff688f214412ce3af9f904f4c 100644 --- a/src/Domain/Registry/Model/Contractor.php +++ b/src/Domain/Registry/Model/Contractor.php @@ -101,9 +101,6 @@ class Contractor $this->proofs = []; } - /** - * @return string - */ public function __toString(): string { if (\is_null($this->getName())) { @@ -117,121 +114,76 @@ class Contractor return $this->getName(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string|null - */ public function getName(): ?string { return $this->name; } - /** - * @param string|null $name - */ public function setName(?string $name): void { $this->name = $name; } - /** - * @return string|null - */ public function getReferent(): ?string { return $this->referent; } - /** - * @param string|null $referent - */ public function setReferent(?string $referent): void { $this->referent = $referent; } - /** - * @return bool - */ public function isContractualClausesVerified(): bool { return $this->contractualClausesVerified; } - /** - * @param bool $contractualClausesVerified - */ public function setContractualClausesVerified(bool $contractualClausesVerified): void { $this->contractualClausesVerified = $contractualClausesVerified; } - /** - * @return bool - */ public function isConform(): bool { return $this->conform; } - /** - * @param bool $conform - */ public function setConform(bool $conform): void { $this->conform = $conform; } - /** - * @return string|null - */ public function getOtherInformations(): ?string { return $this->otherInformations; } - /** - * @param string|null $otherInformations - */ public function setOtherInformations(?string $otherInformations): void { $this->otherInformations = $otherInformations; } - /** - * @return Address|null - */ public function getAddress(): ?Address { return $this->address; } - /** - * @param Address $address - */ public function setAddress(Address $address): void { $this->address = $address; } - /** - * @param Treatment $treatment - */ public function addTreatment(Treatment $treatment): void { $this->treatments[] = $treatment; } - /** - * @param Treatment $treatment - */ public function removeTreatment(Treatment $treatment): void { $key = \array_search($treatment, $this->treatments, true); @@ -243,33 +195,21 @@ class Contractor unset($this->treatments[$key]); } - /** - * @return iterable - */ public function getTreatments(): iterable { return $this->treatments; } - /** - * @return iterable - */ public function getProofs(): iterable { return $this->proofs; } - /** - * @return Contractor|null - */ public function getClonedFrom(): ?Contractor { return $this->clonedFrom; } - /** - * @param Contractor|null $clonedFrom - */ public function setClonedFrom(?Contractor $clonedFrom): void { $this->clonedFrom = $clonedFrom; diff --git a/src/Domain/Registry/Model/Embeddable/Address.php b/src/Domain/Registry/Model/Embeddable/Address.php index bd42b1ee800916bdafd049752976ed370f3410fe..0ea7c6f1c02abb798b41851fc1193027b59a9463 100644 --- a/src/Domain/Registry/Model/Embeddable/Address.php +++ b/src/Domain/Registry/Model/Embeddable/Address.php @@ -56,97 +56,61 @@ class Address */ private $phoneNumber; - /** - * @return string|null - */ public function getLineOne(): ?string { return $this->lineOne; } - /** - * @param string|null $lineOne - */ public function setLineOne(?string $lineOne): void { $this->lineOne = $lineOne; } - /** - * @return string|null - */ public function getLineTwo(): ?string { return $this->lineTwo; } - /** - * @param string|null $lineTwo - */ public function setLineTwo(?string $lineTwo): void { $this->lineTwo = $lineTwo; } - /** - * @return string|null - */ public function getCity(): ?string { return $this->city; } - /** - * @param string|null $city - */ public function setCity(?string $city): void { $this->city = $city; } - /** - * @return string|null - */ public function getZipCode(): ?string { return $this->zipCode; } - /** - * @param string|null $zipCode - */ public function setZipCode(?string $zipCode): void { $this->zipCode = $zipCode; } - /** - * @return string|null - */ public function getMail(): ?string { return $this->mail; } - /** - * @param string|null $mail - */ public function setMail(?string $mail): void { $this->mail = $mail; } - /** - * @return string|null - */ public function getPhoneNumber(): ?string { return $this->phoneNumber; } - /** - * @param string|null $phoneNumber - */ public function setPhoneNumber(?string $phoneNumber): void { $this->phoneNumber = $phoneNumber; diff --git a/src/Domain/Registry/Model/Embeddable/ComplexChoice.php b/src/Domain/Registry/Model/Embeddable/ComplexChoice.php index 5a83e2dc7d6c2521802ef2faf4ae4b52bf30f0e8..5d6ddee5112cf74df7abf23d9f6d2894ba06d022 100644 --- a/src/Domain/Registry/Model/Embeddable/ComplexChoice.php +++ b/src/Domain/Registry/Model/Embeddable/ComplexChoice.php @@ -41,33 +41,21 @@ class ComplexChoice $this->check = false; } - /** - * @return bool - */ public function isCheck(): bool { return $this->check; } - /** - * @param bool $check - */ public function setCheck(bool $check): void { $this->check = $check; } - /** - * @return string|null - */ public function getComment(): ?string { return $this->comment; } - /** - * @param string|null $comment - */ public function setComment(?string $comment): void { $this->comment = $comment; diff --git a/src/Domain/Registry/Model/Embeddable/Delay.php b/src/Domain/Registry/Model/Embeddable/Delay.php index 4ab233229479d2035e17b787c161eff93fece98c..7dd6499576670c254734eb6b73f46aa2a775562b 100644 --- a/src/Domain/Registry/Model/Embeddable/Delay.php +++ b/src/Domain/Registry/Model/Embeddable/Delay.php @@ -51,65 +51,41 @@ class Delay $this->otherDelay = false; } - /** - * @return int|null - */ public function getNumber(): ?int { return $this->number; } - /** - * @param int|null $number - */ public function setNumber(?int $number): void { $this->number = $number; } - /** - * @return string|null - */ public function getPeriod(): ?string { return $this->period; } - /** - * @param string|null $period - */ public function setPeriod(?string $period): void { $this->period = $period; } - /** - * @return bool - */ public function isOtherDelay(): bool { return $this->otherDelay; } - /** - * @param bool $otherDelay - */ public function setOtherDelay(bool $otherDelay): void { $this->otherDelay = $otherDelay; } - /** - * @return string|null - */ public function getComment(): ?string { return $this->comment; } - /** - * @param string|null $comment - */ public function setComment(?string $comment): void { $this->comment = $comment; diff --git a/src/Domain/Registry/Model/Embeddable/RequestAnswer.php b/src/Domain/Registry/Model/Embeddable/RequestAnswer.php index 68948ab1abd7e34403024d61eb271b722209605b..eeed1dd77af8e05742aac78f5cf94cc9139eb54e 100644 --- a/src/Domain/Registry/Model/Embeddable/RequestAnswer.php +++ b/src/Domain/Registry/Model/Embeddable/RequestAnswer.php @@ -41,49 +41,31 @@ class RequestAnswer */ private $type; - /** - * @return string|null - */ public function getResponse(): ?string { return $this->response; } - /** - * @param string|null $response - */ public function setResponse(?string $response): void { $this->response = $response; } - /** - * @return \DateTime|null - */ public function getDate(): ?\DateTime { return $this->date; } - /** - * @param \DateTime|null $date - */ public function setDate(?\DateTime $date): void { $this->date = $date; } - /** - * @return string|null - */ public function getType(): ?string { return $this->type; } - /** - * @param string|null $type - */ public function setType(?string $type): void { $this->type = $type; diff --git a/src/Domain/Registry/Model/Embeddable/RequestApplicant.php b/src/Domain/Registry/Model/Embeddable/RequestApplicant.php index f9747428dd98651447859ffeacd32a22a307278f..4169f35ac42c33ecedc2061d99b583a30eab04e1 100644 --- a/src/Domain/Registry/Model/Embeddable/RequestApplicant.php +++ b/src/Domain/Registry/Model/Embeddable/RequestApplicant.php @@ -61,121 +61,76 @@ class RequestApplicant */ private $concernedPeople = true; - /** - * @return string|null - */ public function getCivility(): ?string { return $this->civility; } - /** - * @param string|null $civility - */ public function setCivility(?string $civility): void { $this->civility = $civility; } - /** - * @return string|null - */ public function getFirstName(): ?string { return $this->firstName; } - /** - * @param string|null $firstName - */ public function setFirstName(?string $firstName): void { $this->firstName = $firstName; } - /** - * @return string|null - */ public function getLastName(): ?string { return $this->lastName; } - /** - * @param string|null $lastName - */ public function setLastName(?string $lastName): void { $this->lastName = $lastName; } - /** - * @return string - */ public function getFullName(): string { return "{$this->firstName} {$this->lastName}"; } - /** - * @return string|null - */ public function getAddress(): ?string { return $this->address; } - /** - * @param string|null $address - */ public function setAddress(?string $address): void { $this->address = $address; } - /** - * @return string|null - */ public function getMail(): ?string { return $this->mail; } - /** - * @param string|null $mail - */ public function setMail(?string $mail): void { $this->mail = $mail; } - /** - * @return string|null - */ public function getPhoneNumber(): ?string { return $this->phoneNumber; } - /** - * @param string|null $phoneNumber - */ public function setPhoneNumber(?string $phoneNumber): void { $this->phoneNumber = $phoneNumber; } - /** - * @return bool - */ public function isConcernedPeople(): bool { return $this->concernedPeople; } - /** - * @param bool $concernedPeople - */ public function setConcernedPeople(bool $concernedPeople): void { $this->concernedPeople = $concernedPeople; diff --git a/src/Domain/Registry/Model/Embeddable/RequestConcernedPeople.php b/src/Domain/Registry/Model/Embeddable/RequestConcernedPeople.php index 4d0c1bf0bb7f119feda5b2da136ae1e3c50fd85d..5a768d332ad8845580dbc089b87255428f085368 100644 --- a/src/Domain/Registry/Model/Embeddable/RequestConcernedPeople.php +++ b/src/Domain/Registry/Model/Embeddable/RequestConcernedPeople.php @@ -61,121 +61,76 @@ class RequestConcernedPeople */ private $linkWithApplicant; - /** - * @return string|null - */ public function getCivility(): ?string { return $this->civility; } - /** - * @param string|null $civility - */ public function setCivility(?string $civility): void { $this->civility = $civility; } - /** - * @return string|null - */ public function getFirstName(): ?string { return $this->firstName; } - /** - * @param string|null $firstName - */ public function setFirstName(?string $firstName): void { $this->firstName = $firstName; } - /** - * @return string|null - */ public function getLastName(): ?string { return $this->lastName; } - /** - * @param string|null $lastName - */ public function setLastName(?string $lastName): void { $this->lastName = $lastName; } - /** - * @return string - */ public function getFullName(): string { return "{$this->firstName} {$this->lastName}"; } - /** - * @return string|null - */ public function getAddress(): ?string { return $this->address; } - /** - * @param string|null $address - */ public function setAddress(?string $address): void { $this->address = $address; } - /** - * @return string|null - */ public function getMail(): ?string { return $this->mail; } - /** - * @param string|null $mail - */ public function setMail(?string $mail): void { $this->mail = $mail; } - /** - * @return string|null - */ public function getPhoneNumber(): ?string { return $this->phoneNumber; } - /** - * @param string|null $phoneNumber - */ public function setPhoneNumber(?string $phoneNumber): void { $this->phoneNumber = $phoneNumber; } - /** - * @return string|null - */ public function getLinkWithApplicant(): ?string { return $this->linkWithApplicant; } - /** - * @param string|null $linkWithApplicant - */ public function setLinkWithApplicant(?string $linkWithApplicant): void { $this->linkWithApplicant = $linkWithApplicant; diff --git a/src/Domain/Registry/Model/Mesurement.php b/src/Domain/Registry/Model/Mesurement.php index 424d670a3afc01097d8bad8edc92ae05ce6d5197..609b7c9607a0cfe6dc009587498f68ba0787d7ab 100644 --- a/src/Domain/Registry/Model/Mesurement.php +++ b/src/Domain/Registry/Model/Mesurement.php @@ -116,9 +116,6 @@ class Mesurement $this->proofs = []; } - /** - * @return string - */ public function __toString(): string { if (\is_null($this->getName())) { @@ -132,161 +129,101 @@ class Mesurement return $this->getName(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string|null - */ public function getName(): ?string { return $this->name; } - /** - * @param string|null $name - */ public function setName(?string $name): void { $this->name = $name; } - /** - * @return string|null - */ public function getType(): ?string { return $this->type; } - /** - * @param string|null $type - */ public function setType(?string $type): void { $this->type = $type; } - /** - * @return string|null - */ public function getDescription(): ?string { return $this->description; } - /** - * @param string|null $description - */ public function setDescription(?string $description): void { $this->description = $description; } - /** - * @return string|null - */ public function getCost(): ?string { return $this->cost; } - /** - * @param string|null $cost - */ public function setCost(?string $cost): void { $this->cost = $cost; } - /** - * @return string|null - */ public function getCharge(): ?string { return $this->charge; } - /** - * @param string|null $charge - */ public function setCharge(?string $charge): void { $this->charge = $charge; } - /** - * @return string|null - */ public function getStatus(): ?string { return $this->status; } - /** - * @param string|null $status - */ public function setStatus(?string $status): void { $this->status = $status; } - /** - * @return \DateTime|null - */ public function getPlanificationDate(): ?\DateTime { return $this->planificationDate; } - /** - * @param \DateTime|null $planificationDate - */ public function setPlanificationDate(?\DateTime $planificationDate): void { $this->planificationDate = $planificationDate; } - /** - * @return string|null - */ public function getComment(): ?string { return $this->comment; } - /** - * @param string|null $comment - */ public function setComment(?string $comment): void { $this->comment = $comment; } - /** - * @return iterable - */ public function getProofs(): iterable { return $this->proofs; } - /** - * @return Mesurement|null - */ public function getClonedFrom(): ?Mesurement { return $this->clonedFrom; } - /** - * @param Mesurement|null $clonedFrom - */ public function setClonedFrom(?Mesurement $clonedFrom): void { $this->clonedFrom = $clonedFrom; diff --git a/src/Domain/Registry/Model/Proof.php b/src/Domain/Registry/Model/Proof.php index f961cd2f0e9393e61e4376c0388567fb709cd4c4..5aa28ec6bb9c0079cda320f863559d9d5d4d4f77 100644 --- a/src/Domain/Registry/Model/Proof.php +++ b/src/Domain/Registry/Model/Proof.php @@ -109,9 +109,6 @@ class Proof $this->violations = []; } - /** - * @return string - */ public function __toString(): string { if (\is_null($this->getName())) { @@ -125,113 +122,71 @@ class Proof return $this->getName(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string|null - */ public function getName(): ?string { return $this->name; } - /** - * @param string|null $name - */ public function setName(?string $name): void { $this->name = $name; } - /** - * @return string|null - */ public function getType(): ?string { return $this->type; } - /** - * @param string|null $type - */ public function setType(?string $type): void { $this->type = $type; } - /** - * @return string|null - */ public function getDocument(): ?string { return $this->document; } - /** - * @param string|null $document - */ public function setDocument(?string $document): void { $this->document = $document; } - /** - * @return UploadedFile|null - */ public function getDocumentFile(): ?UploadedFile { return $this->documentFile; } - /** - * @param UploadedFile|null $documentFile - */ public function setDocumentFile(?UploadedFile $documentFile): void { $this->documentFile = $documentFile; } - /** - * @return string|null - */ public function getComment(): ?string { return $this->comment; } - /** - * @param string|null $comment - */ public function setComment(?string $comment): void { $this->comment = $comment; } - /** - * @return iterable - */ public function getTreatments(): iterable { return $this->treatments; } - /** - * @param Treatment $treatment - */ public function addTreatment(Treatment $treatment): void { $this->treatments[] = $treatment; } - /** - * @param Treatment $treatment - */ public function removeTreatment(Treatment $treatment): void { $key = \array_search($treatment, $this->treatments, true); @@ -243,25 +198,16 @@ class Proof unset($this->treatments[$key]); } - /** - * @return iterable - */ public function getContractors(): iterable { return $this->contractors; } - /** - * @param Contractor $contractor - */ public function addContractor(Contractor $contractor): void { $this->contractors[] = $contractor; } - /** - * @param Contractor $contractor - */ public function removeContractor(Contractor $contractor): void { $key = \array_search($contractor, $this->contractors, true); @@ -273,25 +219,16 @@ class Proof unset($this->contractors[$key]); } - /** - * @return iterable - */ public function getMesurements(): iterable { return $this->mesurements; } - /** - * @param Mesurement $mesurement - */ public function addMesurement(Mesurement $mesurement): void { $this->mesurements[] = $mesurement; } - /** - * @param Mesurement $mesurement - */ public function removeMesurement(Mesurement $mesurement): void { $key = \array_search($mesurement, $this->mesurements, true); @@ -303,25 +240,16 @@ class Proof unset($this->mesurements[$key]); } - /** - * @return iterable - */ public function getRequests(): iterable { return $this->requests; } - /** - * @param Request $request - */ public function addRequest(Request $request): void { $this->requests[] = $request; } - /** - * @param Request $request - */ public function removeRequest(Request $request): void { $key = \array_search($request, $this->requests, true); @@ -333,25 +261,16 @@ class Proof unset($this->requests[$key]); } - /** - * @return iterable - */ public function getViolations(): iterable { return $this->violations; } - /** - * @param Violation $violation - */ public function addViolation(Violation $violation): void { $this->violations[] = $violation; } - /** - * @param Violation $violation - */ public function removeViolation(Violation $violation): void { $key = \array_search($violation, $this->violations, true); diff --git a/src/Domain/Registry/Model/Request.php b/src/Domain/Registry/Model/Request.php index e6ffe8753be8f88b002029810d80baa2a1e52dc9..4d7c77e133e71f6fe4f83d4845f7ac0da656ba32 100644 --- a/src/Domain/Registry/Model/Request.php +++ b/src/Domain/Registry/Model/Request.php @@ -119,9 +119,6 @@ class Request $this->proofs = []; } - /** - * @return string - */ public function __toString(): string { if (\is_null($this->getApplicant()->getFirstName())) { @@ -135,177 +132,111 @@ class Request return $this->getApplicant()->getFullName(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string|null - */ public function getObject(): ?string { return $this->object; } - /** - * @param string|null $object - */ public function setObject(?string $object): void { $this->object = $object; } - /** - * @return string|null - */ public function getOtherObject(): ?string { return $this->otherObject; } - /** - * @param string|null $otherObject - */ public function setOtherObject(?string $otherObject): void { $this->otherObject = $otherObject; } - /** - * @return \DateTime|null - */ public function getDate(): ?\DateTime { return $this->date; } - /** - * @param \DateTime|null $date - */ public function setDate(?\DateTime $date): void { $this->date = $date; } - /** - * @return string|null - */ public function getReason(): ?string { return $this->reason; } - /** - * @param string|null $reason - */ public function setReason(?string $reason): void { $this->reason = $reason; } - /** - * @return RequestApplicant|null - */ public function getApplicant(): ?RequestApplicant { return $this->applicant; } - /** - * @param RequestApplicant|null $applicant - */ public function setApplicant(?RequestApplicant $applicant): void { $this->applicant = $applicant; } - /** - * @return RequestConcernedPeople|null - */ public function getConcernedPeople(): ?RequestConcernedPeople { return $this->concernedPeople; } - /** - * @param RequestConcernedPeople|null $concernedPeople - */ public function setConcernedPeople(?RequestConcernedPeople $concernedPeople): void { $this->concernedPeople = $concernedPeople; } - /** - * @return bool - */ public function isComplete(): bool { return $this->complete; } - /** - * @param bool $complete - */ public function setComplete(bool $complete): void { $this->complete = $complete; } - /** - * @return bool - */ public function isLegitimateApplicant(): bool { return $this->legitimateApplicant; } - /** - * @param bool $legitimateApplicant - */ public function setLegitimateApplicant(bool $legitimateApplicant): void { $this->legitimateApplicant = $legitimateApplicant; } - /** - * @return bool - */ public function isLegitimateRequest(): bool { return $this->legitimateRequest; } - /** - * @param bool $legitimateRequest - */ public function setLegitimateRequest(bool $legitimateRequest): void { $this->legitimateRequest = $legitimateRequest; } - /** - * @return RequestAnswer|null - */ public function getAnswer(): ?RequestAnswer { return $this->answer; } - /** - * @param RequestAnswer|null $answer - */ public function setAnswer(?RequestAnswer $answer): void { $this->answer = $answer; } - /** - * @return iterable - */ public function getProofs(): iterable { return $this->proofs; diff --git a/src/Domain/Registry/Model/Treatment.php b/src/Domain/Registry/Model/Treatment.php index 7a10c2872e2272d1dc394e393814d9fc87c3d8b0..f426da362c1738a5d6f042beca00051ac1b92e88 100644 --- a/src/Domain/Registry/Model/Treatment.php +++ b/src/Domain/Registry/Model/Treatment.php @@ -272,9 +272,6 @@ class Treatment $this->proofs = []; } - /** - * @return string - */ public function __toString(): string { if (\is_null($this->getName())) { @@ -288,234 +285,147 @@ class Treatment return $this->getName(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string|null - */ public function getName(): ?string { return $this->name; } - /** - * @param string|null $name - */ public function setName(?string $name): void { $this->name = $name; } - /** - * @return string|null - */ public function getGoal(): ?string { return $this->goal; } - /** - * @param string|null $goal - */ public function setGoal(?string $goal): void { $this->goal = $goal; } - /** - * @return string|null - */ public function getManager(): ?string { return $this->manager; } - /** - * @param string|null $manager - */ public function setManager(?string $manager): void { $this->manager = $manager; } - /** - * @return string|null - */ public function getSoftware(): ?string { return $this->software; } - /** - * @param string|null $software - */ public function setSoftware(?string $software): void { $this->software = $software; } - /** - * @return bool - */ public function isPaperProcessing(): bool { return $this->paperProcessing; } - /** - * @param bool $paperProcessing - */ public function setPaperProcessing(bool $paperProcessing): void { $this->paperProcessing = $paperProcessing; } - /** - * @return string|null - */ public function getLegalBasis(): ?string { return $this->legalBasis; } - /** - * @param string|null $legalBasis - */ public function setLegalBasis(?string $legalBasis): void { $this->legalBasis = $legalBasis; } - /** - * @return string|null - */ public function getLegalBasisJustification(): ?string { return $this->legalBasisJustification; } - /** - * @param string|null $legalBasisJustification - */ public function setLegalBasisJustification(?string $legalBasisJustification): void { $this->legalBasisJustification = $legalBasisJustification; } - /** - * @return string|null - */ public function getObservation(): ?string { return $this->observation; } - /** - * @param string|null $observation - */ public function setObservation(?string $observation): void { $this->observation = $observation; } - /** - * @return array - */ public function getConcernedPeople(): array { return $this->concernedPeople; } - /** - * @param array $concernedPeople - */ public function setConcernedPeople(array $concernedPeople): void { $this->concernedPeople = $concernedPeople; } - /** - * @return iterable - */ public function getDataCategories(): iterable { return $this->dataCategories; } - /** - * @param iterable $dataCategories - */ public function setDataCategories(iterable $dataCategories): void { $this->dataCategories = $dataCategories; } - /** - * @return string|null - */ public function getDataCategoryOther(): ?string { return $this->dataCategoryOther; } - /** - * @param string|null $dataCategoryOther - */ public function setDataCategoryOther(?string $dataCategoryOther): void { $this->dataCategoryOther = $dataCategoryOther; } - /** - * @return string|null - */ public function getDataOrigin(): ?string { return $this->dataOrigin; } - /** - * @param string|null $dataOrigin - */ public function setDataOrigin(?string $dataOrigin): void { $this->dataOrigin = $dataOrigin; } - /** - * @return string|null - */ public function getRecipientCategory(): ?string { return $this->recipientCategory; } - /** - * @param string|null $recipientCategory - */ public function setRecipientCategory(?string $recipientCategory): void { $this->recipientCategory = $recipientCategory; } - /** - * @param Contractor $contractor - */ public function addContractor(Contractor $contractor): void { $contractor->addTreatment($this); $this->contractors[] = $contractor; } - /** - * @param Contractor $contractor - */ public function removeContractor(Contractor $contractor): void { $contractor->removeTreatment($this); @@ -529,273 +439,171 @@ class Treatment unset($this->contractors[$key]); } - /** - * @return iterable - */ public function getContractors(): iterable { return $this->contractors; } - /** - * @return Delay - */ public function getDelay(): Delay { return $this->delay; } - /** - * @param Delay $delay - */ public function setDelay(Delay $delay): void { $this->delay = $delay; } - /** - * @return ComplexChoice - */ public function getSecurityAccessControl(): ComplexChoice { return $this->securityAccessControl; } - /** - * @param ComplexChoice $securityAccessControl - */ public function setSecurityAccessControl(ComplexChoice $securityAccessControl): void { $this->securityAccessControl = $securityAccessControl; } - /** - * @return ComplexChoice - */ public function getSecurityTracability(): ComplexChoice { return $this->securityTracability; } - /** - * @param ComplexChoice $securityTracability - */ public function setSecurityTracability(ComplexChoice $securityTracability): void { $this->securityTracability = $securityTracability; } - /** - * @return ComplexChoice - */ public function getSecuritySaving(): ComplexChoice { return $this->securitySaving; } - /** - * @param ComplexChoice $securitySaving - */ public function setSecuritySaving(ComplexChoice $securitySaving): void { $this->securitySaving = $securitySaving; } - /** - * @return ComplexChoice - */ public function getSecurityUpdate(): ComplexChoice { return $this->securityUpdate; } - /** - * @param ComplexChoice $securityUpdate - */ public function setSecurityUpdate(ComplexChoice $securityUpdate): void { $this->securityUpdate = $securityUpdate; } - /** - * @return ComplexChoice - */ public function getSecurityOther(): ComplexChoice { return $this->securityOther; } - /** - * @param ComplexChoice $securityOther - */ public function setSecurityOther(ComplexChoice $securityOther): void { $this->securityOther = $securityOther; } - /** - * @return bool - */ public function isSystematicMonitoring(): bool { return $this->systematicMonitoring; } - /** - * @param bool $systematicMonitoring - */ public function setSystematicMonitoring(bool $systematicMonitoring): void { $this->systematicMonitoring = $systematicMonitoring; } - /** - * @return bool - */ public function isLargeScaleCollection(): bool { return $this->largeScaleCollection; } - /** - * @param bool $largeScaleCollection - */ public function setLargeScaleCollection(bool $largeScaleCollection): void { $this->largeScaleCollection = $largeScaleCollection; } - /** - * @return bool - */ public function isVulnerablePeople(): bool { return $this->vulnerablePeople; } - /** - * @param bool $vulnerablePeople - */ public function setVulnerablePeople(bool $vulnerablePeople): void { $this->vulnerablePeople = $vulnerablePeople; } - /** - * @return bool - */ public function isDataCrossing(): bool { return $this->dataCrossing; } - /** - * @param bool $dataCrossing - */ public function setDataCrossing(bool $dataCrossing): void { $this->dataCrossing = $dataCrossing; } - /** - * @return string|null - */ public function getAuthorizedPeople(): ?string { return $this->authorizedPeople; } - /** - * @param string|null $authorizedPeople - */ public function setAuthorizedPeople(?string $authorizedPeople): void { $this->authorizedPeople = $authorizedPeople; } - /** - * @return bool - */ public function isActive(): bool { return $this->active; } - /** - * @param bool $active - */ public function setActive(bool $active): void { $this->active = $active; } - /** - * @return int - */ public function getCompletion(): int { return $this->completion; } - /** - * @param int $completion - */ public function setCompletion(int $completion): void { $this->completion = $completion; } - /** - * @return bool - */ public function isTemplate(): bool { return $this->template; } - /** - * @param bool $template - */ public function setTemplate(bool $template): void { $this->template = $template; } - /** - * @return int|null - */ public function getTemplateIdentifier(): ?int { return $this->templateIdentifier; } - /** - * @param int|null $templateIdentifier - */ public function setTemplateIdentifier(?int $templateIdentifier): void { $this->templateIdentifier = $templateIdentifier; } - /** - * @return iterable - */ public function getProofs(): iterable { return $this->proofs; } - /** - * @return Treatment|null - */ public function getClonedFrom(): ?Treatment { return $this->clonedFrom; } - /** - * @param Treatment|null $clonedFrom - */ public function setClonedFrom(?Treatment $clonedFrom): void { $this->clonedFrom = $clonedFrom; diff --git a/src/Domain/Registry/Model/TreatmentDataCategory.php b/src/Domain/Registry/Model/TreatmentDataCategory.php index 13b3577dcde61483e7a2d4b2181fff447e0b07fa..48da214a98025b92ce41239c2bde949a93413783 100644 --- a/src/Domain/Registry/Model/TreatmentDataCategory.php +++ b/src/Domain/Registry/Model/TreatmentDataCategory.php @@ -48,11 +48,6 @@ class TreatmentDataCategory /** * TreatmentDataCategory constructor. - * - * @param string $code - * @param string $name - * @param int $position - * @param bool $sensible */ public function __construct(string $code, string $name, int $position, bool $sensible = false) { @@ -62,41 +57,26 @@ class TreatmentDataCategory $this->sensible = $sensible; } - /** - * @return string - */ public function __toString(): string { return $this->name; } - /** - * @return string - */ public function getCode(): string { return $this->code; } - /** - * @return string - */ public function getName(): string { return $this->name; } - /** - * @return int - */ public function getPosition(): int { return $this->position; } - /** - * @return bool - */ public function isSensible(): bool { return $this->sensible; diff --git a/src/Domain/Registry/Model/Violation.php b/src/Domain/Registry/Model/Violation.php index 0cab3b26175cffbcd9e9f10a969ddb282e22d312..a869093c9b1ecbfe2cbd2618216cd9fa24c3f631 100644 --- a/src/Domain/Registry/Model/Violation.php +++ b/src/Domain/Registry/Model/Violation.php @@ -150,9 +150,6 @@ class Violation $this->proofs = []; } - /** - * @return string - */ public function __toString(): string { if (\is_null($this->getDate())) { @@ -162,289 +159,181 @@ class Violation return "Violation du {$this->getDate()->format('d/m/Y')}"; } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return \DateTime|null - */ public function getDate(): ?\DateTime { return $this->date; } - /** - * @param \DateTime|null $date - */ public function setDate(?\DateTime $date): void { $this->date = $date; } - /** - * @return bool - */ public function isInProgress(): bool { return $this->inProgress; } - /** - * @param bool $inProgress - */ public function setInProgress(bool $inProgress): void { $this->inProgress = $inProgress; } - /** - * @return string|null - */ public function getViolationNature(): ?string { return $this->violationNature; } - /** - * @param string|null $violationNature - */ public function setViolationNature(?string $violationNature): void { $this->violationNature = $violationNature; } - /** - * @return iterable - */ public function getOrigins(): iterable { return $this->origins; } - /** - * @param iterable $origins - */ public function setOrigins(iterable $origins): void { $this->origins = $origins; } - /** - * @return string|null - */ public function getCause(): ?string { return $this->cause; } - /** - * @param string|null $cause - */ public function setCause(?string $cause): void { $this->cause = $cause; } - /** - * @return iterable - */ public function getConcernedDataNature(): iterable { return $this->concernedDataNature; } - /** - * @param iterable $concernedDataNature - */ public function setConcernedDataNature(iterable $concernedDataNature): void { $this->concernedDataNature = $concernedDataNature; } - /** - * @return iterable - */ public function getConcernedPeopleCategories(): iterable { return $this->concernedPeopleCategories; } - /** - * @param iterable $concernedPeopleCategories - */ public function setConcernedPeopleCategories(iterable $concernedPeopleCategories): void { $this->concernedPeopleCategories = $concernedPeopleCategories; } - /** - * @return int|null - */ public function getNbAffectedRows(): ?int { return $this->nbAffectedRows; } - /** - * @param int|null $nbAffectedRows - */ public function setNbAffectedRows(?int $nbAffectedRows): void { $this->nbAffectedRows = $nbAffectedRows; } - /** - * @return int|null - */ public function getNbAffectedPersons(): ?int { return $this->nbAffectedPersons; } - /** - * @param int|null $nbAffectedPersons - */ public function setNbAffectedPersons(?int $nbAffectedPersons): void { $this->nbAffectedPersons = $nbAffectedPersons; } - /** - * @return iterable - */ public function getPotentialImpactsNature(): iterable { return $this->potentialImpactsNature; } - /** - * @param iterable $potentialImpactsNature - */ public function setPotentialImpactsNature(iterable $potentialImpactsNature): void { $this->potentialImpactsNature = $potentialImpactsNature; } - /** - * @return string|null - */ public function getGravity(): ?string { return $this->gravity; } - /** - * @param string|null $gravity - */ public function setGravity(?string $gravity): void { $this->gravity = $gravity; } - /** - * @return string|null - */ public function getCommunication(): ?string { return $this->communication; } - /** - * @param string|null $communication - */ public function setCommunication(?string $communication): void { $this->communication = $communication; } - /** - * @return string|null - */ public function getCommunicationPrecision(): ?string { return $this->communicationPrecision; } - /** - * @param string|null $communicationPrecision - */ public function setCommunicationPrecision(?string $communicationPrecision): void { $this->communicationPrecision = $communicationPrecision; } - /** - * @return string|null - */ public function getAppliedMeasuresAfterViolation(): ?string { return $this->appliedMeasuresAfterViolation; } - /** - * @param string|null $appliedMeasuresAfterViolation - */ public function setAppliedMeasuresAfterViolation(?string $appliedMeasuresAfterViolation): void { $this->appliedMeasuresAfterViolation = $appliedMeasuresAfterViolation; } - /** - * @return string|null - */ public function getNotification(): ?string { return $this->notification; } - /** - * @param string|null $notification - */ public function setNotification(?string $notification): void { $this->notification = $notification; } - /** - * @return string|null - */ public function getNotificationDetails(): ?string { return $this->notificationDetails; } - /** - * @param string|null $notificationDetails - */ public function setNotificationDetails(?string $notificationDetails): void { $this->notificationDetails = $notificationDetails; } - /** - * @return string|null - */ public function getComment(): ?string { return $this->comment; } - /** - * @param string|null $comment - */ public function setComment(?string $comment): void { $this->comment = $comment; } - /** - * @return iterable - */ public function getProofs(): iterable { return $this->proofs; diff --git a/src/Domain/Registry/Repository/Proof.php b/src/Domain/Registry/Repository/Proof.php index 9d2078a2aa1b9e95d732967b2e959f6b7cf4f46b..e7257860bf0957f23f39e62d448c9f1d5c964c1f 100644 --- a/src/Domain/Registry/Repository/Proof.php +++ b/src/Domain/Registry/Repository/Proof.php @@ -60,8 +60,6 @@ interface Proof extends RepositoryInterface /** * Get all objects. * - * @param bool $deleted - * * @return mixed[] */ public function findAll(bool $deleted = false): array; diff --git a/src/Domain/Registry/Repository/Request.php b/src/Domain/Registry/Repository/Request.php index b20ca565185ad496416b87a3d0967486ced37a57..06f1b3ea516c047d3aff37ba0a2a70a78f734add 100644 --- a/src/Domain/Registry/Repository/Request.php +++ b/src/Domain/Registry/Repository/Request.php @@ -60,8 +60,6 @@ interface Request extends RepositoryInterface /** * Get all objects. * - * @param bool $deleted - * * @return mixed[] */ public function findAll(bool $deleted = false): array; diff --git a/src/Domain/Registry/Repository/Violation.php b/src/Domain/Registry/Repository/Violation.php index 19e681fb28e7db3b4d43cc3e986ee945e52f6cf4..5dbdede04def4b6d5bf086598649e5912b0abad1 100644 --- a/src/Domain/Registry/Repository/Violation.php +++ b/src/Domain/Registry/Repository/Violation.php @@ -60,8 +60,6 @@ interface Violation extends RepositoryInterface /** * Get all objects. * - * @param bool $deleted - * * @return mixed[] */ public function findAll(bool $deleted = false): array; diff --git a/src/Domain/Registry/Symfony/EventSubscriber/Doctrine/TreatmentCompletionSubscriber.php b/src/Domain/Registry/Symfony/EventSubscriber/Doctrine/TreatmentCompletionSubscriber.php index f85da4f29b97ed3f8c84003ae2773b9e3471e9f3..af3e555e082580549db3947867cf4b48006cf3ca 100644 --- a/src/Domain/Registry/Symfony/EventSubscriber/Doctrine/TreatmentCompletionSubscriber.php +++ b/src/Domain/Registry/Symfony/EventSubscriber/Doctrine/TreatmentCompletionSubscriber.php @@ -61,8 +61,6 @@ class TreatmentCompletionSubscriber implements EventSubscriber /** * Compute treatment completion. - * - * @param LifecycleEventArgs $args */ private function process(LifecycleEventArgs $args): void { diff --git a/src/Domain/Reporting/Controller/ReviewController.php b/src/Domain/Reporting/Controller/ReviewController.php index 5eb1512da28a3004983c4543b275f488046289b9..d2940ec908b43f18b147143f589660b5388c67e6 100644 --- a/src/Domain/Reporting/Controller/ReviewController.php +++ b/src/Domain/Reporting/Controller/ReviewController.php @@ -105,12 +105,8 @@ class ReviewController extends AbstractController /** * Download an entire review. * - * @param string $id - * * @throws \PhpOffice\PhpWord\Exception\Exception * @throws \Exception - * - * @return BinaryFileResponse */ public function indexAction(string $id): BinaryFileResponse { diff --git a/src/Domain/Reporting/Generator/Word/AbstractGenerator.php b/src/Domain/Reporting/Generator/Word/AbstractGenerator.php index 63a2fe8cb87a7908d3afc5365bc26ece3fc42720..d754ff13120878ec675dcfc9227acbc39d9d467f 100644 --- a/src/Domain/Reporting/Generator/Word/AbstractGenerator.php +++ b/src/Domain/Reporting/Generator/Word/AbstractGenerator.php @@ -66,9 +66,6 @@ abstract class AbstractGenerator implements GeneratorInterface /** * AbstractGenerator constructor. - * - * @param UserProvider $userProvider - * @param ParameterBagInterface $parameterBag */ public function __construct( UserProvider $userProvider, @@ -97,8 +94,6 @@ abstract class AbstractGenerator implements GeneratorInterface /** * Initialize PHPWord document variables & default values. - * - * @param PhpWord $document */ public function initializeDocument(PhpWord $document): void { @@ -169,9 +164,6 @@ abstract class AbstractGenerator implements GeneratorInterface /** * Add PhpWord homepage. * - * @param PhpWord $document - * @param string $title - * * @throws \Exception */ public function addHomepage(PhpWord $document, string $title): void diff --git a/src/Domain/Reporting/Generator/Word/ContractorGenerator.php b/src/Domain/Reporting/Generator/Word/ContractorGenerator.php index 9e0495602330c0f0d00c6e056f159652eb2fb3d8..ba46e31525e0ca62ce7f08c57d4fc7d82ffa81b9 100644 --- a/src/Domain/Reporting/Generator/Word/ContractorGenerator.php +++ b/src/Domain/Reporting/Generator/Word/ContractorGenerator.php @@ -32,7 +32,6 @@ class ContractorGenerator extends AbstractGenerator implements ImpressionGenerat /** * Global overview : data to display for contractors in overview report. * - * @param Section $section * @param Contractor[] $data */ public function addGlobalOverview(Section $section, array $data): void diff --git a/src/Domain/Reporting/Generator/Word/GeneratorInterface.php b/src/Domain/Reporting/Generator/Word/GeneratorInterface.php index 311d901e0c80b7c2d46ee44b078fec55c66f2b1b..064ca1369814dd65e555e2571a4ce9ef218e42a1 100644 --- a/src/Domain/Reporting/Generator/Word/GeneratorInterface.php +++ b/src/Domain/Reporting/Generator/Word/GeneratorInterface.php @@ -40,8 +40,6 @@ interface GeneratorInterface * Initialize the Document * - Configuration * - Default tyle. - * - * @param PhpWord $document */ public function initializeDocument(PhpWord $document): void; diff --git a/src/Domain/Reporting/Generator/Word/ImpressionGeneratorInterface.php b/src/Domain/Reporting/Generator/Word/ImpressionGeneratorInterface.php index 5b686320cda4b97fe0d3450f9b1eb15822b26ba9..bf06d77d7c5f0cf4542324858581b8cbf51140f5 100644 --- a/src/Domain/Reporting/Generator/Word/ImpressionGeneratorInterface.php +++ b/src/Domain/Reporting/Generator/Word/ImpressionGeneratorInterface.php @@ -30,17 +30,11 @@ interface ImpressionGeneratorInterface { /** * Add synthetic information to display in PHPWord document. - * - * @param Section $section - * @param array $data */ public function addSyntheticView(Section $section, array $data): void; /** * Add detailed information to display in PHPWord document for each data. - * - * @param Section $section - * @param array $data */ public function addDetailedView(Section $section, array $data): void; } diff --git a/src/Domain/Reporting/Generator/Word/MaturityGenerator.php b/src/Domain/Reporting/Generator/Word/MaturityGenerator.php index 4732fb628940ef77ac65b700024517e9d4b9594d..61f17891800557258953457fdb655175874b3103 100644 --- a/src/Domain/Reporting/Generator/Word/MaturityGenerator.php +++ b/src/Domain/Reporting/Generator/Word/MaturityGenerator.php @@ -36,9 +36,6 @@ class MaturityGenerator extends AbstractGenerator implements ImpressionGenerator /** * Global overview : Information to display for maturity in overview report. - * - * @param Section $section - * @param array $data */ public function addGlobalOverview(Section $section, array $data): void { diff --git a/src/Domain/Reporting/Generator/Word/MesurementGenerator.php b/src/Domain/Reporting/Generator/Word/MesurementGenerator.php index 22174b2e6316bdf0d85b668f46715429ef9177aa..f0d8b47592f6721eae4fefba7aa1d75b3702f50c 100644 --- a/src/Domain/Reporting/Generator/Word/MesurementGenerator.php +++ b/src/Domain/Reporting/Generator/Word/MesurementGenerator.php @@ -31,9 +31,6 @@ class MesurementGenerator extends AbstractGenerator implements ImpressionGenerat { /** * Global overview : Information to display for mesurement in overview report. - * - * @param Section $section - * @param array $data */ public function addGlobalOverview(Section $section, array $data): void { diff --git a/src/Domain/Reporting/Generator/Word/RequestGenerator.php b/src/Domain/Reporting/Generator/Word/RequestGenerator.php index 1720eb8299fb36818b34141b87413dae8f47a4f1..7a17e93ed720911a390f202d5c7e12a757205b32 100644 --- a/src/Domain/Reporting/Generator/Word/RequestGenerator.php +++ b/src/Domain/Reporting/Generator/Word/RequestGenerator.php @@ -34,9 +34,6 @@ class RequestGenerator extends AbstractGenerator implements ImpressionGeneratorI /** * Global overview : Information to display for request in overview report. * - * @param Section $section - * @param array $data - * * @throws \Exception */ public function addGlobalOverview(Section $section, array $data): void diff --git a/src/Domain/Reporting/Generator/Word/TreatmentGenerator.php b/src/Domain/Reporting/Generator/Word/TreatmentGenerator.php index d0bcf2f1727bb41b0a4d5523287c4e4cf530cd73..f7825c6e1240f379f73c69c2d4272812dbb84c92 100644 --- a/src/Domain/Reporting/Generator/Word/TreatmentGenerator.php +++ b/src/Domain/Reporting/Generator/Word/TreatmentGenerator.php @@ -34,9 +34,6 @@ class TreatmentGenerator extends AbstractGenerator implements ImpressionGenerato { /** * Global overview : Information to display for treatment in overview report. - * - * @param Section $section - * @param array $data */ public function addGlobalOverview(Section $section, array $data): void { diff --git a/src/Domain/Reporting/Generator/Word/ViolationGenerator.php b/src/Domain/Reporting/Generator/Word/ViolationGenerator.php index 37886d11b4907a77bc010876589643684cd6ac0b..f239897aa6d0c5ade08aa88545dcdda4fdedb3e0 100644 --- a/src/Domain/Reporting/Generator/Word/ViolationGenerator.php +++ b/src/Domain/Reporting/Generator/Word/ViolationGenerator.php @@ -40,9 +40,6 @@ class ViolationGenerator extends AbstractGenerator implements ImpressionGenerato /** * Global overview : Information to display for violation in overview report. * - * @param Section $section - * @param array $data - * * @throws \Exception */ public function addGlobalOverview(Section $section, array $data): void diff --git a/src/Domain/User/Component/Mailer.php b/src/Domain/User/Component/Mailer.php index 0e1a497e2719fdb252664952fe130ecb1725c03c..cfacc5c1478c4315b28d85e203974d1565fca56c 100644 --- a/src/Domain/User/Component/Mailer.php +++ b/src/Domain/User/Component/Mailer.php @@ -75,8 +75,6 @@ class Mailer * @param string $to The receiver of the email * @param string $subject The subject of the email * @param string $body The content of the email - * - * @return int */ private function send(string $to, string $subject, string $body): int { diff --git a/src/Domain/User/Controller/ProfileController.php b/src/Domain/User/Controller/ProfileController.php index 3acf7073087740806684eaecdc778c7f1c677178..90c160d5896ed848069dd495e97b6bd189ebf53d 100644 --- a/src/Domain/User/Controller/ProfileController.php +++ b/src/Domain/User/Controller/ProfileController.php @@ -79,8 +79,6 @@ class ProfileController * @throws \Twig\Error\LoaderError * @throws \Twig\Error\RuntimeError * @throws \Twig\Error\SyntaxError - * - * @return Response */ public function collectivityShowAction(): Response { @@ -97,8 +95,6 @@ class ProfileController * @throws \Twig\Error\LoaderError * @throws \Twig\Error\RuntimeError * @throws \Twig\Error\SyntaxError - * - * @return Response */ public function collectivityEditAction(): Response { @@ -137,8 +133,6 @@ class ProfileController * @throws \Twig\Error\LoaderError * @throws \Twig\Error\RuntimeError * @throws \Twig\Error\SyntaxError - * - * @return Response */ public function userEditAction(): Response { diff --git a/src/Domain/User/Controller/SecurityController.php b/src/Domain/User/Controller/SecurityController.php index 66a1d8c675ee242b5796df316acc22710f837e8b..097cc608e66c20cc34deb5b0a5265a9554f9a029 100644 --- a/src/Domain/User/Controller/SecurityController.php +++ b/src/Domain/User/Controller/SecurityController.php @@ -81,8 +81,6 @@ class SecurityController extends AbstractController * @throws \Twig\Error\LoaderError * @throws \Twig\Error\RuntimeError * @throws \Twig\Error\SyntaxError - * - * @return Response */ public function loginAction(): Response { @@ -101,8 +99,6 @@ class SecurityController extends AbstractController * @throws \Twig\Error\LoaderError * @throws \Twig\Error\RuntimeError * @throws \Twig\Error\SyntaxError - * - * @return Response */ public function forgetPasswordAction(): Response { @@ -116,8 +112,6 @@ class SecurityController extends AbstractController * - Send forget password email * - Display forget password confirmation page. * - * @param Request $request - * * @throws \Twig\Error\LoaderError * @throws \Twig\Error\RuntimeError * @throws \Twig\Error\SyntaxError @@ -162,8 +156,6 @@ class SecurityController extends AbstractController * @throws \Twig\Error\LoaderError * @throws \Twig\Error\RuntimeError * @throws \Twig\Error\SyntaxError - * - * @return Response */ public function resetPasswordAction(Request $request, string $token): Response { diff --git a/src/Domain/User/Controller/UserController.php b/src/Domain/User/Controller/UserController.php index 9158f7a4021962521e637428f6bcdc7407d03160..ac52f1753401d5c99224cc7e373799b74da92b8a 100644 --- a/src/Domain/User/Controller/UserController.php +++ b/src/Domain/User/Controller/UserController.php @@ -114,10 +114,6 @@ class UserController extends CRUDController /** * The unarchive action view * Display a confirmation message to confirm data un-archivage. - * - * @param string $id - * - * @return Response */ public function unarchiveAction(string $id): Response { @@ -135,11 +131,7 @@ class UserController extends CRUDController * The unarchive action * Unarchive the data. * - * @param string $id - * * @throws \Exception - * - * @return Response */ public function unarchiveConfirmationAction(string $id): Response { diff --git a/src/Domain/User/Form/Type/AddressType.php b/src/Domain/User/Form/Type/AddressType.php index 139a76393fc682130c63eb5181b2ee47c86ffcd9..47b5ab9a0a460629f2af302f9039803a2d8acb66 100644 --- a/src/Domain/User/Form/Type/AddressType.php +++ b/src/Domain/User/Form/Type/AddressType.php @@ -34,9 +34,6 @@ class AddressType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -69,8 +66,6 @@ class AddressType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/User/Form/Type/CollectivityType.php b/src/Domain/User/Form/Type/CollectivityType.php index 5a54e11ffdec7bb54c87304d3e0ebb3dbdc9949b..07101fa39967a53d4956f08deba6bec49e58db63 100644 --- a/src/Domain/User/Form/Type/CollectivityType.php +++ b/src/Domain/User/Form/Type/CollectivityType.php @@ -44,8 +44,6 @@ class CollectivityType extends AbstractType /** * CollectivityType constructor. - * - * @param AuthorizationCheckerInterface $authorizationChecker */ public function __construct(AuthorizationCheckerInterface $authorizationChecker) { @@ -54,9 +52,6 @@ class CollectivityType extends AbstractType /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -139,8 +134,6 @@ class CollectivityType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/User/Form/Type/ContactType.php b/src/Domain/User/Form/Type/ContactType.php index 779a8b5be44b5439d0ecae0b72666aac84d12002..170d7c65fcce10f7515244f17af025d94b2b0a75 100644 --- a/src/Domain/User/Form/Type/ContactType.php +++ b/src/Domain/User/Form/Type/ContactType.php @@ -36,9 +36,6 @@ class ContactType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -82,8 +79,6 @@ class ContactType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/User/Form/Type/ResetPasswordType.php b/src/Domain/User/Form/Type/ResetPasswordType.php index 2f62d5da061bd193f32f0b87ecd7f4c4441be611..6f787d58851c2c0c1e3e904230c48365e7b9c3fc 100644 --- a/src/Domain/User/Form/Type/ResetPasswordType.php +++ b/src/Domain/User/Form/Type/ResetPasswordType.php @@ -34,9 +34,6 @@ class ResetPasswordType extends AbstractType { /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -62,8 +59,6 @@ class ResetPasswordType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/User/Form/Type/UserType.php b/src/Domain/User/Form/Type/UserType.php index cf5f08baf412d00e38ff199ef527cef487def76c..a19c45453849a692462e501350d926bf01d44821 100644 --- a/src/Domain/User/Form/Type/UserType.php +++ b/src/Domain/User/Form/Type/UserType.php @@ -57,9 +57,6 @@ class UserType extends AbstractType /** * UserType constructor. - * - * @param AuthorizationCheckerInterface $authorizationChecker - * @param EncoderFactoryInterface $encoderFactory */ public function __construct( AuthorizationCheckerInterface $authorizationChecker, @@ -71,9 +68,6 @@ class UserType extends AbstractType /** * Build type form. - * - * @param FormBuilderInterface $builder - * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -150,8 +144,6 @@ class UserType extends AbstractType /** * Provide type options. - * - * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Domain/User/Model/Collectivity.php b/src/Domain/User/Model/Collectivity.php index 2fc2a1d52d4071e94d8e71ff713d95af4f9d927e..095f8c7f47bd2488f8d7f0b350fe8a01f7dec81d 100644 --- a/src/Domain/User/Model/Collectivity.php +++ b/src/Domain/User/Model/Collectivity.php @@ -124,9 +124,6 @@ class Collectivity $this->differentItManager = false; } - /** - * @return string - */ public function __toString(): string { if (\is_null($this->getName())) { @@ -140,233 +137,146 @@ class Collectivity return $this->getName(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string|null - */ public function getName(): ?string { return $this->name; } - /** - * @param string|null $name - */ public function setName(?string $name): void { $this->name = $name; } - /** - * @return string|null - */ public function getShortName(): ?string { return $this->shortName; } - /** - * @param string|null $shortName - */ public function setShortName(?string $shortName): void { $this->shortName = $shortName; } - /** - * @return string|null - */ public function getType(): ?string { return $this->type; } - /** - * @param string|null $type - */ public function setType(?string $type): void { $this->type = $type; } - /** - * @return int|null - */ public function getSiren(): ?int { return $this->siren; } - /** - * @param int|null $siren - */ public function setSiren(?int $siren): void { $this->siren = $siren; } - /** - * @return bool - */ public function isActive(): bool { return $this->active; } - /** - * @param bool $active - */ public function setActive(bool $active): void { $this->active = $active; } - /** - * @return string|null - */ public function getWebsite(): ?string { return $this->website; } - /** - * @param string|null $website - */ public function setWebsite(?string $website): void { $this->website = $website; } - /** - * @return Address|null - */ public function getAddress(): ?Address { return $this->address; } - /** - * @param Address|null $address - */ public function setAddress(?Address $address): void { $this->address = $address; } - /** - * @return Contact|null - */ public function getLegalManager(): ?Contact { return $this->legalManager; } - /** - * @param Contact|null $legalManager - */ public function setLegalManager(?Contact $legalManager): void { $this->legalManager = $legalManager; } - /** - * @return Contact|null - */ public function getReferent(): ?Contact { return $this->referent; } - /** - * @param Contact|null $referent - */ public function setReferent(?Contact $referent): void { $this->referent = $referent; } - /** - * @return bool - */ public function isDifferentDpo(): bool { return $this->differentDpo; } - /** - * @param bool $differentDpo - */ public function setDifferentDpo(bool $differentDpo): void { $this->differentDpo = $differentDpo; } - /** - * @return Contact|null - */ public function getDpo(): ?Contact { return $this->dpo; } - /** - * @param Contact|null $dpo - */ public function setDpo(?Contact $dpo): void { $this->dpo = $dpo; } - /** - * @return bool - */ public function isDifferentItManager(): bool { return $this->differentItManager; } - /** - * @param bool $differentItManager - */ public function setDifferentItManager(bool $differentItManager): void { $this->differentItManager = $differentItManager; } - /** - * @return Contact|null - */ public function getItManager(): ?Contact { return $this->itManager; } - /** - * @param Contact|null $itManager - */ public function setItManager(?Contact $itManager): void { $this->itManager = $itManager; } - /** - * @return Collection - */ public function getUsers(): Collection { return $this->users; } - /** - * @param Collection $users - */ public function setUsers(Collection $users): void { $this->users = $users; diff --git a/src/Domain/User/Model/Embeddable/Address.php b/src/Domain/User/Model/Embeddable/Address.php index 8ac6e1483d353e23c8839ae43d2d6afefec3b8ed..4a58fa43efa7695466874f3a9bc724e60db05ae7 100644 --- a/src/Domain/User/Model/Embeddable/Address.php +++ b/src/Domain/User/Model/Embeddable/Address.php @@ -51,81 +51,51 @@ class Address */ private $insee; - /** - * @return string|null - */ public function getLineOne(): ?string { return $this->lineOne; } - /** - * @param string|null $lineOne - */ public function setLineOne(?string $lineOne): void { $this->lineOne = $lineOne; } - /** - * @return string|null - */ public function getLineTwo(): ?string { return $this->lineTwo; } - /** - * @param string|null $lineTwo - */ public function setLineTwo(?string $lineTwo): void { $this->lineTwo = $lineTwo; } - /** - * @return string|null - */ public function getCity(): ?string { return $this->city; } - /** - * @param string|null $city - */ public function setCity(?string $city): void { $this->city = $city; } - /** - * @return string|null - */ public function getZipCode(): ?string { return $this->zipCode; } - /** - * @param string|null $zipCode - */ public function setZipCode(?string $zipCode): void { $this->zipCode = $zipCode; } - /** - * @return string|null - */ public function getInsee(): ?string { return $this->insee; } - /** - * @param string|null $insee - */ public function setInsee(?string $insee): void { $this->insee = $insee; diff --git a/src/Domain/User/Model/Embeddable/Contact.php b/src/Domain/User/Model/Embeddable/Contact.php index 732cbf2a0592143dc6d18430c7c90f197712154e..841df6e2eb03aa60d4e7c36cf2433f87f2f7c94c 100644 --- a/src/Domain/User/Model/Embeddable/Contact.php +++ b/src/Domain/User/Model/Embeddable/Contact.php @@ -56,105 +56,66 @@ class Contact */ private $phoneNumber; - /** - * @return string|null - */ public function getCivility(): ?string { return $this->civility; } - /** - * @param string|null $civility - */ public function setCivility(?string $civility): void { $this->civility = $civility; } - /** - * @return string|null - */ public function getFirstName(): ?string { return $this->firstName; } - /** - * @param string|null $firstName - */ public function setFirstName(?string $firstName): void { $this->firstName = $firstName; } - /** - * @return string|null - */ public function getLastName(): ?string { return $this->lastName; } - /** - * @param string|null $lastName - */ public function setLastName(?string $lastName): void { $this->lastName = $lastName; } - /** - * @return string - */ public function getFullName(): string { return "{$this->firstName} {$this->lastName}"; } - /** - * @return string|null - */ public function getJob(): ?string { return $this->job; } - /** - * @param string|null $job - */ public function setJob(?string $job): void { $this->job = $job; } - /** - * @return string|null - */ public function getMail(): ?string { return $this->mail; } - /** - * @param string|null $mail - */ public function setMail(?string $mail): void { $this->mail = $mail; } - /** - * @return string|null - */ public function getPhoneNumber(): ?string { return $this->phoneNumber; } - /** - * @param string|null $phoneNumber - */ public function setPhoneNumber(?string $phoneNumber): void { $this->phoneNumber = $phoneNumber; diff --git a/src/Domain/User/Model/User.php b/src/Domain/User/Model/User.php index 71bc52f2a19fc570305de7113665bda065cfa240..867ca2a9b9a9b3d326e65a6be162d91de94f6d16 100644 --- a/src/Domain/User/Model/User.php +++ b/src/Domain/User/Model/User.php @@ -95,9 +95,6 @@ class User implements UserInterface $this->enabled = true; } - /** - * @return string - */ public function __toString(): string { if (\is_null($this->getFullName())) { @@ -111,105 +108,66 @@ class User implements UserInterface return $this->getFullName(); } - /** - * @return UuidInterface - */ public function getId(): UuidInterface { return $this->id; } - /** - * @return string|null - */ public function getFirstName(): ?string { return $this->firstName; } - /** - * @param string|null $firstName - */ public function setFirstName(?string $firstName): void { $this->firstName = $firstName; } - /** - * @return string|null - */ public function getLastName(): ?string { return $this->lastName; } - /** - * @param string|null $lastName - */ public function setLastName(?string $lastName): void { $this->lastName = $lastName; } - /** - * @return string - */ public function getFullName(): string { return "{$this->firstName} {$this->lastName}"; } - /** - * @return string|null - */ public function getEmail(): ?string { return $this->email; } - /** - * @param string|null $email - */ public function setEmail(?string $email): void { $this->email = $email; } - /** - * @return string|null - */ public function getUsername(): ?string { return $this->email; } - /** - * @return string|null - */ public function getPassword(): ?string { return $this->password; } - /** - * @param string|null $password - */ public function setPassword(?string $password): void { $this->password = $password; } - /** - * @return string|null - */ public function getPlainPassword(): ?string { return $this->plainPassword; } - /** - * @param string|null $plainPassword - */ public function setPlainPassword(?string $plainPassword): void { $this->plainPassword = $plainPassword; @@ -220,17 +178,11 @@ class User implements UserInterface $this->plainPassword = null; } - /** - * @return string - */ public function getForgetPasswordToken(): string { return $this->forgetPasswordToken; } - /** - * @param string|null $forgetPasswordToken - */ public function setForgetPasswordToken(?string $forgetPasswordToken): void { $this->forgetPasswordToken = $forgetPasswordToken; @@ -241,49 +193,31 @@ class User implements UserInterface return null; } - /** - * @return array - */ public function getRoles(): array { return $this->roles; } - /** - * @param array $roles - */ public function setRoles(array $roles): void { $this->roles = $roles; } - /** - * @return bool - */ public function isEnabled(): bool { return $this->enabled; } - /** - * @param bool $enabled - */ public function setEnabled(bool $enabled): void { $this->enabled = $enabled; } - /** - * @return Collectivity|null - */ public function getCollectivity(): ?Collectivity { return $this->collectivity; } - /** - * @param Collectivity $collectivity - */ public function setCollectivity(Collectivity $collectivity): void { $this->collectivity = $collectivity; diff --git a/src/Domain/User/Repository/Collectivity.php b/src/Domain/User/Repository/Collectivity.php index 38cbfbf01b5dd04724ff3f7d349dffde6734a9a6..4c61ae068fb454467b1f35063ed9c6a2aa231891 100644 --- a/src/Domain/User/Repository/Collectivity.php +++ b/src/Domain/User/Repository/Collectivity.php @@ -48,9 +48,6 @@ interface Collectivity extends CRUDRepositoryInterface /** * Find every collectivities which belong to one of the provided types. * - * @param array $types - * @param Model\Collectivity|null $excludedCollectivity - * * @return Model\Collectivity[] */ public function findByTypes(array $types, ?Model\Collectivity $excludedCollectivity = null): array; diff --git a/src/Domain/User/Repository/User.php b/src/Domain/User/Repository/User.php index afaaf8d20e8827d1b6cfbb73338552f97c70e63f..20f3b9d907cb6d75aab18b93b1cc90355c4973c0 100644 --- a/src/Domain/User/Repository/User.php +++ b/src/Domain/User/Repository/User.php @@ -31,11 +31,6 @@ interface User extends CRUDRepositoryInterface { /** * Get all users which are / are not soft deleted. - * - * @param bool $archived - * @param array $order - * - * @return iterable */ public function findAllArchived(bool $archived, array $order = []): iterable; diff --git a/src/Domain/User/Symfony/EventSubscriber/Doctrine/DefinePasswordSubscriber.php b/src/Domain/User/Symfony/EventSubscriber/Doctrine/DefinePasswordSubscriber.php index fd82221c4c9437ec0ed8bcbd2a9d9166f5c70b16..08d7959792f56537a7c876d4ad5f30cbe233b928 100644 --- a/src/Domain/User/Symfony/EventSubscriber/Doctrine/DefinePasswordSubscriber.php +++ b/src/Domain/User/Symfony/EventSubscriber/Doctrine/DefinePasswordSubscriber.php @@ -53,8 +53,6 @@ class DefinePasswordSubscriber implements EventSubscriber * PrePersist * - User : If no plainPassword, randomize it. * - * @param LifecycleEventArgs $args - * * @throws \Exception */ public function prePersist(LifecycleEventArgs $args): void diff --git a/src/Domain/User/Symfony/EventSubscriber/Doctrine/EncodePasswordSubscriber.php b/src/Domain/User/Symfony/EventSubscriber/Doctrine/EncodePasswordSubscriber.php index 478deffbe4bdd6c4355ffe09597bb72b8b3f3f64..8a17d57205af6e27527f20d9086882dc258c68f0 100644 --- a/src/Domain/User/Symfony/EventSubscriber/Doctrine/EncodePasswordSubscriber.php +++ b/src/Domain/User/Symfony/EventSubscriber/Doctrine/EncodePasswordSubscriber.php @@ -53,8 +53,6 @@ class EncodePasswordSubscriber implements EventSubscriber * PrePersist * - User : If plainPassword is set, hash it and set password. * - * @param LifecycleEventArgs $args - * * @throws \Exception */ public function prePersist(LifecycleEventArgs $args): void @@ -70,8 +68,6 @@ class EncodePasswordSubscriber implements EventSubscriber * PreUpdate * - User : If plainPassword is set, hash it and set password. * - * @param LifecycleEventArgs $args - * * @throws \Exception */ public function preUpdate(LifecycleEventArgs $args): void @@ -85,8 +81,6 @@ class EncodePasswordSubscriber implements EventSubscriber /** * Encode plainPassword in password field. - * - * @param LifecycleEventArgs $args */ public function encodePassword(LifecycleEventArgs $args): void { diff --git a/src/Domain/User/Symfony/Security/Authorization/UserAuthorization.php b/src/Domain/User/Symfony/Security/Authorization/UserAuthorization.php index 0c29da6bc5b384461d066045894e54d6ac4cf078..509c242690bce0a0300202792bfcd63e88621ab2 100644 --- a/src/Domain/User/Symfony/Security/Authorization/UserAuthorization.php +++ b/src/Domain/User/Symfony/Security/Authorization/UserAuthorization.php @@ -30,10 +30,6 @@ class UserAuthorization { /** * Check if the provided user can connect to the app. - * - * @param Model\User $user - * - * @return bool */ public function canConnect(Model\User $user): bool { diff --git a/src/Domain/User/Symfony/Security/Checker/UserChecker.php b/src/Domain/User/Symfony/Security/Checker/UserChecker.php index 01ea3d693cc782dc223b05cbbe589dc1a2483486..ceadb51b0d51d38bfacc7920a851c08a2f5b5e9d 100644 --- a/src/Domain/User/Symfony/Security/Checker/UserChecker.php +++ b/src/Domain/User/Symfony/Security/Checker/UserChecker.php @@ -39,8 +39,6 @@ class UserChecker implements UserCheckerInterface /** * UserChecker constructor. - * - * @param UserAuthorization $userAuthorization */ public function __construct(UserAuthorization $userAuthorization) { @@ -50,8 +48,6 @@ class UserChecker implements UserCheckerInterface /** * Checks the user account before authentication. * - * @param UserInterface $user - * * @throws DisabledException */ public function checkPreAuth(UserInterface $user): void @@ -70,8 +66,6 @@ class UserChecker implements UserCheckerInterface /** * Checks the user account after authentication. - * - * @param UserInterface $user */ public function checkPostAuth(UserInterface $user): void { diff --git a/src/Domain/User/Symfony/Security/Voter/UserCanConnectVoter.php b/src/Domain/User/Symfony/Security/Voter/UserCanConnectVoter.php index 66fc2d20fd6d24b2a634c0b3189aa8b1d01d6008..fffc35628317faa369cc3b38737d4f3108e2d6a5 100644 --- a/src/Domain/User/Symfony/Security/Voter/UserCanConnectVoter.php +++ b/src/Domain/User/Symfony/Security/Voter/UserCanConnectVoter.php @@ -40,8 +40,6 @@ class UserCanConnectVoter extends Voter /** * UserCanConnectVoter constructor. - * - * @param UserAuthorization $userAuthorization */ public function __construct(UserAuthorization $userAuthorization) { @@ -68,11 +66,8 @@ class UserCanConnectVoter extends Voter } /** - * @param string $attribute - * @param User $subject - * @param TokenInterface $token - * - * @return bool + * @param string $attribute + * @param User $subject */ protected function voteOnAttribute($attribute, $subject, TokenInterface $token): bool { diff --git a/src/Infrastructure/ORM/Registry/Repository/Mesurement.php b/src/Infrastructure/ORM/Registry/Repository/Mesurement.php index 36b17783f6d99f525e2a20312f3f069e0adde94c..94d742d9a0a89d6e27478e2b48bc03f030c90a85 100644 --- a/src/Infrastructure/ORM/Registry/Repository/Mesurement.php +++ b/src/Infrastructure/ORM/Registry/Repository/Mesurement.php @@ -43,11 +43,7 @@ class Mesurement extends CRUDRepository implements Repository\Mesurement /** * Add a where clause to query. * - * @param QueryBuilder $qb - * @param string $key - * @param mixed $value - * - * @return QueryBuilder + * @param mixed $value */ protected function addWhereClause(QueryBuilder $qb, string $key, $value): QueryBuilder { @@ -59,11 +55,6 @@ class Mesurement extends CRUDRepository implements Repository\Mesurement /** * Add a collectivity appartenance clause. - * - * @param QueryBuilder $qb - * @param Collectivity $collectivity - * - * @return QueryBuilder */ protected function addCollectivityClause(QueryBuilder $qb, Collectivity $collectivity): QueryBuilder { @@ -75,11 +66,6 @@ class Mesurement extends CRUDRepository implements Repository\Mesurement /** * Add an order to query. - * - * @param QueryBuilder $qb - * @param array $order - * - * @return QueryBuilder */ protected function addOrder(QueryBuilder $qb, array $order = []): QueryBuilder { diff --git a/src/Infrastructure/ORM/Registry/Repository/Proof.php b/src/Infrastructure/ORM/Registry/Repository/Proof.php index d7945bc92938377ad552356c098d6724f86431ce..8036cdfad86f699fd2d3be2a383224a14ab6d9ac 100644 --- a/src/Infrastructure/ORM/Registry/Repository/Proof.php +++ b/src/Infrastructure/ORM/Registry/Repository/Proof.php @@ -40,8 +40,6 @@ class Proof implements Repository\Proof /** * Proof constructor. - * - * @param RegistryInterface $registry */ public function __construct(RegistryInterface $registry) { @@ -53,8 +51,6 @@ class Proof implements Repository\Proof * Since we use Doctrine, we expect to get EntityManagerInterface. * * @throws \Exception - * - * @return EntityManagerInterface */ protected function getManager(): EntityManagerInterface { @@ -136,11 +132,7 @@ class Proof implements Repository\Proof /** * Find all data. * - * @param bool $deleted - * * @throws \Exception - * - * @return array */ public function findAll(bool $deleted = false): array { @@ -176,8 +168,6 @@ class Proof implements Repository\Proof /** * Get the model class name. - * - * @return string */ protected function getModelClass(): string { @@ -187,11 +177,7 @@ class Proof implements Repository\Proof /** * Add a where clause to query. * - * @param QueryBuilder $qb - * @param string $key - * @param mixed $value - * - * @return QueryBuilder + * @param mixed $value */ protected function addWhereClause(QueryBuilder $qb, string $key, $value): QueryBuilder { @@ -203,11 +189,6 @@ class Proof implements Repository\Proof /** * Add archive clause to query. - * - * @param QueryBuilder $qb - * @param bool $archived - * - * @return QueryBuilder */ protected function addArchivedClause(QueryBuilder $qb, bool $archived = false): QueryBuilder { @@ -222,11 +203,6 @@ class Proof implements Repository\Proof /** * Add collectivity clause to query. - * - * @param QueryBuilder $qb - * @param Collectivity $collectivity - * - * @return QueryBuilder */ protected function addCollectivityClause(QueryBuilder $qb, Collectivity $collectivity): QueryBuilder { @@ -238,11 +214,6 @@ class Proof implements Repository\Proof /** * Add order clause to query. - * - * @param QueryBuilder $qb - * @param array $order - * - * @return QueryBuilder */ protected function addOrder(QueryBuilder $qb, array $order = []): QueryBuilder { diff --git a/src/Infrastructure/ORM/Registry/Repository/Request.php b/src/Infrastructure/ORM/Registry/Repository/Request.php index 1567fc0162486f0666642d07a3976a7d7f474f3e..d67d9843a8dd140608ad34839e9436fd3310173c 100644 --- a/src/Infrastructure/ORM/Registry/Repository/Request.php +++ b/src/Infrastructure/ORM/Registry/Repository/Request.php @@ -40,8 +40,6 @@ class Request implements Repository\Request /** * Request constructor. - * - * @param RegistryInterface $registry */ public function __construct(RegistryInterface $registry) { @@ -53,8 +51,6 @@ class Request implements Repository\Request * Since we use Doctrine, we expect to get EntityManagerInterface. * * @throws \Exception - * - * @return EntityManagerInterface */ protected function getManager(): EntityManagerInterface { @@ -172,11 +168,7 @@ class Request implements Repository\Request /** * Add where clause query. * - * @param QueryBuilder $qb - * @param string $key - * @param mixed $value - * - * @return QueryBuilder + * @param mixed $value */ protected function addWhereClause(QueryBuilder $qb, string $key, $value): QueryBuilder { @@ -188,11 +180,6 @@ class Request implements Repository\Request /** * Add archived clause in query. - * - * @param QueryBuilder $qb - * @param bool $archived - * - * @return QueryBuilder */ protected function addArchivedClause(QueryBuilder $qb, bool $archived = false): QueryBuilder { @@ -207,11 +194,6 @@ class Request implements Repository\Request /** * Add collectivity clause to query. - * - * @param QueryBuilder $qb - * @param Collectivity $collectivity - * - * @return QueryBuilder */ protected function addCollectivityClause(QueryBuilder $qb, Collectivity $collectivity): QueryBuilder { @@ -223,11 +205,6 @@ class Request implements Repository\Request /** * Add order to query. - * - * @param QueryBuilder $qb - * @param array $order - * - * @return QueryBuilder */ protected function addOrder(QueryBuilder $qb, array $order = []): QueryBuilder { diff --git a/src/Infrastructure/ORM/Registry/Repository/Treatment.php b/src/Infrastructure/ORM/Registry/Repository/Treatment.php index 94a3273673ec9a0a6dd6561d276a5869c776f0d6..20b02a076443eb0700714cea60f490ad9e0691c8 100644 --- a/src/Infrastructure/ORM/Registry/Repository/Treatment.php +++ b/src/Infrastructure/ORM/Registry/Repository/Treatment.php @@ -42,11 +42,6 @@ class Treatment extends CRUDRepository implements Repository\Treatment /** * Add collectivity clause to query. - * - * @param QueryBuilder $qb - * @param Collectivity $collectivity - * - * @return QueryBuilder */ protected function addCollectivityClause(QueryBuilder $qb, Collectivity $collectivity): QueryBuilder { @@ -58,11 +53,6 @@ class Treatment extends CRUDRepository implements Repository\Treatment /** * Add active clause to query. - * - * @param QueryBuilder $qb - * @param bool $active - * - * @return QueryBuilder */ protected function addActiveClause(QueryBuilder $qb, bool $active = true): QueryBuilder { @@ -74,11 +64,6 @@ class Treatment extends CRUDRepository implements Repository\Treatment /** * Add order to query. - * - * @param QueryBuilder $qb - * @param array $order - * - * @return QueryBuilder */ protected function addOrder(QueryBuilder $qb, array $order = []): QueryBuilder { diff --git a/src/Infrastructure/ORM/Registry/Repository/Violation.php b/src/Infrastructure/ORM/Registry/Repository/Violation.php index a5f68fe6669050b2ee08ad1e155c6d0051f97d21..38e15682b055ee272bf14fde468277c312e790c5 100644 --- a/src/Infrastructure/ORM/Registry/Repository/Violation.php +++ b/src/Infrastructure/ORM/Registry/Repository/Violation.php @@ -40,8 +40,6 @@ class Violation implements Repository\Violation /** * Violation constructor. - * - * @param RegistryInterface $registry */ public function __construct(RegistryInterface $registry) { @@ -53,8 +51,6 @@ class Violation implements Repository\Violation * Since we use Doctrine, we expect to get EntityManagerInterface. * * @throws \Exception - * - * @return EntityManagerInterface */ protected function getManager(): EntityManagerInterface { @@ -71,8 +67,6 @@ class Violation implements Repository\Violation * Create the base of QueryBuilder to use for repository calls. * * @throws \Exception - * - * @return \Doctrine\ORM\QueryBuilder */ protected function createQueryBuilder(): QueryBuilder { @@ -181,11 +175,7 @@ class Violation implements Repository\Violation /** * Add a where clause. * - * @param QueryBuilder $qb - * @param string $key - * @param mixed $value - * - * @return QueryBuilder + * @param mixed $value */ protected function addWhereClause(QueryBuilder $qb, string $key, $value): QueryBuilder { @@ -197,11 +187,6 @@ class Violation implements Repository\Violation /** * Add archive clause to query. - * - * @param QueryBuilder $qb - * @param bool $archived - * - * @return QueryBuilder */ protected function addArchivedClause(QueryBuilder $qb, bool $archived = false): QueryBuilder { @@ -216,11 +201,6 @@ class Violation implements Repository\Violation /** * Add collectivity clause to query. - * - * @param QueryBuilder $qb - * @param Collectivity $collectivity - * - * @return QueryBuilder */ protected function addCollectivityClause(QueryBuilder $qb, Collectivity $collectivity): QueryBuilder { @@ -232,11 +212,6 @@ class Violation implements Repository\Violation /** * Add order to query. - * - * @param QueryBuilder $qb - * @param array $order - * - * @return QueryBuilder */ protected function addOrder(QueryBuilder $qb, array $order = []): QueryBuilder { diff --git a/src/Infrastructure/ORM/User/Repository/User.php b/src/Infrastructure/ORM/User/Repository/User.php index f211b1a7ad6f7860a159b58e4302894a1465a538..4666e6877345a9debb92425a0d793b86373c63c9 100644 --- a/src/Infrastructure/ORM/User/Repository/User.php +++ b/src/Infrastructure/ORM/User/Repository/User.php @@ -41,11 +41,6 @@ class User extends CRUDRepository implements Repository\User /** * Add archive clause to query. - * - * @param QueryBuilder $qb - * @param bool $archived - * - * @return QueryBuilder */ protected function addArchivedClause(QueryBuilder $qb, bool $archived = false): QueryBuilder { @@ -60,11 +55,6 @@ class User extends CRUDRepository implements Repository\User /** * Add order to query. - * - * @param QueryBuilder $qb - * @param array $order - * - * @return QueryBuilder */ protected function addOrder(QueryBuilder $qb, array $order = []): QueryBuilder { diff --git a/tests/Application/Symfony/Validator/Constraints/NotBlankDependingOnOtherFieldValueValidatorTest.php b/tests/Application/Symfony/Validator/Constraints/NotBlankDependingOnOtherFieldValueValidatorTest.php index 23dd9b87133dd7a7bd12f2d1f5ba7c886b682358..5cb325e33aed8bd59b61e6cde83d012b6397ce8e 100644 --- a/tests/Application/Symfony/Validator/Constraints/NotBlankDependingOnOtherFieldValueValidatorTest.php +++ b/tests/Application/Symfony/Validator/Constraints/NotBlankDependingOnOtherFieldValueValidatorTest.php @@ -116,8 +116,6 @@ class NotBlankDependingOnOtherFieldValueValidatorTest extends ConstraintValidato * With every valid values (check data provider information). * * @dataProvider dataProviderValidObject - * - * @param ObjectToValidateNotBlankDependingOnOtherValue $data */ public function testValidValues(ObjectToValidateNotBlankDependingOnOtherValue $data): void { @@ -175,8 +173,6 @@ class NotBlankDependingOnOtherFieldValueValidatorTest extends ConstraintValidato * With every invalid values (check data provider information). * * @dataProvider dataProviderInvalidValue - * - * @param ObjectToValidateNotBlankDependingOnOtherValue $data */ public function testInvalidValues(ObjectToValidateNotBlankDependingOnOtherValue $data): void { @@ -208,33 +204,21 @@ class ObjectToValidateNotBlankDependingOnOtherValue /** @var mixed|null */ private $fieldToValidate; - /** - * @return string|null - */ public function getOtherField(): ?string { return $this->otherField; } - /** - * @param string|null $otherField - */ public function setOtherField(?string $otherField): void { $this->otherField = $otherField; } - /** - * @return string|null - */ public function getUnusedField(): ?string { return $this->unusedField; } - /** - * @param string|null $unusedField - */ public function setUnusedField(?string $unusedField): void { $this->unusedField = $unusedField; diff --git a/tests/Domain/Admin/Cloner/AbstractClonerTest.php b/tests/Domain/Admin/Cloner/AbstractClonerTest.php index 0047cb99ae9e8d8ab852fa6e95407ef8754018bf..65248d9eaf1be18f9255640094a15f4debb22e33 100644 --- a/tests/Domain/Admin/Cloner/AbstractClonerTest.php +++ b/tests/Domain/Admin/Cloner/AbstractClonerTest.php @@ -73,8 +73,6 @@ class AbstractClonerTest extends TestCase * Construct Duplication Model objects. * * @throws \Exception - * - * @return array */ public function dataProviderDuplicationModel(): array { @@ -144,8 +142,7 @@ class AbstractClonerTest extends TestCase class DummyAbstractClonerTest extends AbstractCloner { /** - * @param object $referent - * @param UserModel\Collectivity $collectivity + * @param object $referent * * @throws \Exception * diff --git a/tests/Domain/Admin/Dictionary/DuplicationTargetOptionDictionaryTest.php b/tests/Domain/Admin/Dictionary/DuplicationTargetOptionDictionaryTest.php index 1d7946bc3600fa9d650688d8bf88e1ec4010cdc8..0d29d8f0807a143f09682bf4d179cbeb2b998f64 100644 --- a/tests/Domain/Admin/Dictionary/DuplicationTargetOptionDictionaryTest.php +++ b/tests/Domain/Admin/Dictionary/DuplicationTargetOptionDictionaryTest.php @@ -49,8 +49,6 @@ class DuplicationTargetOptionDictionaryTest extends TestCase /** * !! Data Provider * Provide every expected data from dictionary. - * - * @return array */ public function dataProviderData(): array { @@ -69,8 +67,6 @@ class DuplicationTargetOptionDictionaryTest extends TestCase * Check the dictionary data. * * @dataProvider dataProviderData - * - * @param array $data */ public function testGetData(array $data): void { @@ -85,8 +81,6 @@ class DuplicationTargetOptionDictionaryTest extends TestCase * Check the dictionary key data. * * @dataProvider dataProviderData - * - * @param array $data */ public function testGetDataKeys(array $data): void { diff --git a/tests/Domain/Admin/Dictionary/DuplicationTypeDictionaryTest.php b/tests/Domain/Admin/Dictionary/DuplicationTypeDictionaryTest.php index eb153bce30dfb668d1539e2e3fe7cc1aaa397026..af3d4af5d42ee1f51a8a2aa6856f366afd87b946 100644 --- a/tests/Domain/Admin/Dictionary/DuplicationTypeDictionaryTest.php +++ b/tests/Domain/Admin/Dictionary/DuplicationTypeDictionaryTest.php @@ -49,8 +49,6 @@ class DuplicationTypeDictionaryTest extends TestCase /** * !! Data Provider * Provide every expected data from dictionary. - * - * @return array */ public function dataProviderData(): array { @@ -70,8 +68,6 @@ class DuplicationTypeDictionaryTest extends TestCase * Check the dictionary data. * * @dataProvider dataProviderData - * - * @param array $data */ public function testGetData(array $data): void { @@ -86,8 +82,6 @@ class DuplicationTypeDictionaryTest extends TestCase * Check the dictionary key data. * * @dataProvider dataProviderData - * - * @param array $data */ public function testGetDataKeys(array $data): void { diff --git a/tests/Domain/Admin/Hydrator/DuplicationHydratorTest.php b/tests/Domain/Admin/Hydrator/DuplicationHydratorTest.php index 2f4210491e398d7b93c5ea4c795e5a97fc4e5b07..6f0b0c3fdc479c2e26bd87c97a242e6b682ec5a3 100644 --- a/tests/Domain/Admin/Hydrator/DuplicationHydratorTest.php +++ b/tests/Domain/Admin/Hydrator/DuplicationHydratorTest.php @@ -55,8 +55,6 @@ class DuplicationHydratorTest extends TestCase * Create duplication objects. * * @throws \Exception - * - * @return array */ public function dataProviderDuplication(): array { @@ -94,8 +92,6 @@ class DuplicationHydratorTest extends TestCase * * @dataProvider dataProviderDuplication * - * @param Duplication $duplication - * * @throws \Exception */ public function testHydrateAvailableTypes(Duplication $duplication): void diff --git a/tests/Domain/Admin/Transformer/DuplicationFormDTOTransformerTest.php b/tests/Domain/Admin/Transformer/DuplicationFormDTOTransformerTest.php index d7ba6ab5e07ff0be68098f53a25b8453966d9f0a..91200b323ce5f363a53b6c6caaf7bb180d6959c8 100644 --- a/tests/Domain/Admin/Transformer/DuplicationFormDTOTransformerTest.php +++ b/tests/Domain/Admin/Transformer/DuplicationFormDTOTransformerTest.php @@ -52,8 +52,6 @@ class DuplicationFormDTOTransformerTest extends TestCase * Object is fullfilled to ensure every cases. * * @throws \Exception - * - * @return array */ public function dataProviderDTO(): array { @@ -93,8 +91,6 @@ class DuplicationFormDTOTransformerTest extends TestCase * * @dataProvider dataProviderDTO * - * @param DuplicationFormDTO $dto - * * @throws \Exception */ public function testToModelObjectPerCollectivity(DuplicationFormDTO $dto): void @@ -121,8 +117,6 @@ class DuplicationFormDTOTransformerTest extends TestCase * * @dataProvider dataProviderDTO * - * @param DuplicationFormDTO $dto - * * @throws \Exception */ public function testToModelObjectPerType(DuplicationFormDTO $dto): void diff --git a/tests/Domain/User/Symfony/Security/Voter/UserCanConnectVoterTest.php b/tests/Domain/User/Symfony/Security/Voter/UserCanConnectVoterTest.php index 97079c7e93e02e8e98c3261d21cb39c47f8c857b..3fbb1cc50cb58f434274b8b2c5cd7f0f6943c772 100644 --- a/tests/Domain/User/Symfony/Security/Voter/UserCanConnectVoterTest.php +++ b/tests/Domain/User/Symfony/Security/Voter/UserCanConnectVoterTest.php @@ -111,9 +111,7 @@ class UserCanConnectVoterTest extends TestCase * * @dataProvider dataProviderNotSupporting * - * @param TokenInterface $token * @param $subject - * @param array $attributes */ public function testVoteNotSupporting(TokenInterface $token, $subject, array $attributes): void { diff --git a/tests/Utils/FormTypeHelper.php b/tests/Utils/FormTypeHelper.php index 90eb8a018fdf2fbd91138ec6c72db8ee41f3a1e3..3cea30bfbcce08d1d1500469136243174d6292be 100644 --- a/tests/Utils/FormTypeHelper.php +++ b/tests/Utils/FormTypeHelper.php @@ -34,8 +34,7 @@ class FormTypeHelper extends TestCase /** * Create a FormBuilder thanks to provided data. * - * @param array $data The array of field to add. Key is field name, value field type. - * @param bool $reveal + * @param array $data The array of field to add. Key is field name, value field type. * * @return FormBuilderInterface|ObjectProphecy The prophesized FormBuilderInterface, revealled or not */