diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldInterface.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldInterface.php index 2f4cfd1e4..eb2d3b011 100644 --- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldInterface.php +++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldInterface.php @@ -56,6 +56,7 @@ interface CustomFieldInterface * Return a repsentation of the value of the CustomField. * * @param \Chill\CustomFieldsBundle\CustomField\CustomField $customField + * * @return string an html representation of the value */ public function render(mixed $value, CustomField $customField, $documentType = 'html'); diff --git a/src/Bundle/ChillEventBundle/Controller/EventTypeController.php b/src/Bundle/ChillEventBundle/Controller/EventTypeController.php index d5ea7901b..5706dbe19 100644 --- a/src/Bundle/ChillEventBundle/Controller/EventTypeController.php +++ b/src/Bundle/ChillEventBundle/Controller/EventTypeController.php @@ -201,7 +201,6 @@ class EventTypeController extends AbstractController /** * Creates a form to delete a EventType entity by id. * - * * @return \Symfony\Component\Form\Form The form */ private function createDeleteForm(mixed $id) diff --git a/src/Bundle/ChillEventBundle/Controller/RoleController.php b/src/Bundle/ChillEventBundle/Controller/RoleController.php index fe6c60a85..24e4f2121 100644 --- a/src/Bundle/ChillEventBundle/Controller/RoleController.php +++ b/src/Bundle/ChillEventBundle/Controller/RoleController.php @@ -201,7 +201,6 @@ class RoleController extends AbstractController /** * Creates a form to delete a Role entity by id. * - * * @return \Symfony\Component\Form\Form The form */ private function createDeleteForm(mixed $id) diff --git a/src/Bundle/ChillEventBundle/Controller/StatusController.php b/src/Bundle/ChillEventBundle/Controller/StatusController.php index 446fb476e..286408b0b 100644 --- a/src/Bundle/ChillEventBundle/Controller/StatusController.php +++ b/src/Bundle/ChillEventBundle/Controller/StatusController.php @@ -201,7 +201,6 @@ class StatusController extends AbstractController /** * Creates a form to delete a Status entity by id. * - * * @return \Symfony\Component\Form\Form The form */ private function createDeleteForm(mixed $id) diff --git a/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/PartenaireRomeAppellation.php b/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/PartenaireRomeAppellation.php index 5c32033ad..cb40311b6 100644 --- a/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/PartenaireRomeAppellation.php +++ b/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/PartenaireRomeAppellation.php @@ -84,7 +84,6 @@ class PartenaireRomeAppellation ); return Utils::jsonDecode((string) $response->getBody()); - } catch (ClientException $e) { dump($e->getResponse()->getBody()->getContents()); } diff --git a/src/Bundle/ChillJobBundle/src/Export/AddCSPersonToPersonListHelper.php b/src/Bundle/ChillJobBundle/src/Export/AddCSPersonToPersonListHelper.php index 4d53722c0..0c27bdb32 100644 --- a/src/Bundle/ChillJobBundle/src/Export/AddCSPersonToPersonListHelper.php +++ b/src/Bundle/ChillJobBundle/src/Export/AddCSPersonToPersonListHelper.php @@ -113,8 +113,7 @@ class AddCSPersonToPersonListHelper implements CustomizeListPersonHelperInterfac public function getLabels(string $key, array $values, array $data): ?callable { - if (str_contains($key, '__')) - { + if (str_contains($key, '__')) { return function (string|bool|null $value) use ($key): string { if ('_header' === $value) { [$domain, $v] = explode('__', $key); @@ -129,6 +128,7 @@ class AddCSPersonToPersonListHelper implements CustomizeListPersonHelperInterfac return ''; }; } + return match ($key) { 'nEETEligibilite' => function (string|bool|null $value): string { if ('_header' === $value) { diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php index ada07eb7b..2384e32b4 100644 --- a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php +++ b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php @@ -727,6 +727,7 @@ class CRUDController extends AbstractController * @param string $action * * @return string the path to the template + * * @throws \LogicException if no template are available */ protected function getTemplateFor($action, mixed $entity, Request $request) diff --git a/src/Bundle/ChillMainBundle/Export/ExportManager.php b/src/Bundle/ChillMainBundle/Export/ExportManager.php index eb59c4ae2..9cb2a54ba 100644 --- a/src/Bundle/ChillMainBundle/Export/ExportManager.php +++ b/src/Bundle/ChillMainBundle/Export/ExportManager.php @@ -553,6 +553,7 @@ class ExportManager * This function check the acl. * * @param \Chill\MainBundle\Entity\Center[] $centers the picked centers + * * @throw UnauthorizedHttpException if the user is not authorized */ private function handleFilters( @@ -629,7 +630,6 @@ class ExportManager /** * Retrieve the filter used in this export. * - * * @return array an array with types */ private function retrieveUsedFiltersType(mixed $data): iterable diff --git a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php index 04d9f30f0..098b741e6 100644 --- a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php +++ b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php @@ -198,7 +198,6 @@ class AuthorizationHelper implements AuthorizationHelperInterface * if the entity implements Chill\MainBundle\Entity\HasScopeInterface, * the scope is taken into account. * - * * @return bool true if the user has access */ public function userHasAccess(UserInterface $user, mixed $entity, string $attribute): bool diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/GeographicalUnitStatAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/GeographicalUnitStatAggregator.php index 0a861d64c..ffa5501dd 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/GeographicalUnitStatAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/GeographicalUnitStatAggregator.php @@ -32,8 +32,7 @@ final readonly class GeographicalUnitStatAggregator implements AggregatorInterfa private GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository, private TranslatableStringHelperInterface $translatableStringHelper, private RollingDateConverterInterface $rollingDateConverter - ) { - } + ) {} public function addRole(): ?string { diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilter.php index d84745403..7adf03d13 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilter.php @@ -38,8 +38,7 @@ class GeographicalUnitStatFilter implements FilterInterface private readonly GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository, private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly RollingDateConverterInterface $rollingDateConverter - ) { - } + ) {} public function addRole(): ?string {