php cs fixes after merge

This commit is contained in:
Julie Lenaerts 2024-05-22 16:44:02 +02:00
parent d34f9450b8
commit dddb6d66bc
11 changed files with 7 additions and 12 deletions

View File

@ -56,6 +56,7 @@ interface CustomFieldInterface
* Return a repsentation of the value of the CustomField. * Return a repsentation of the value of the CustomField.
* *
* @param \Chill\CustomFieldsBundle\CustomField\CustomField $customField * @param \Chill\CustomFieldsBundle\CustomField\CustomField $customField
*
* @return string an html representation of the value * @return string an html representation of the value
*/ */
public function render(mixed $value, CustomField $customField, $documentType = 'html'); public function render(mixed $value, CustomField $customField, $documentType = 'html');

View File

@ -201,7 +201,6 @@ class EventTypeController extends AbstractController
/** /**
* Creates a form to delete a EventType entity by id. * Creates a form to delete a EventType entity by id.
* *
*
* @return \Symfony\Component\Form\Form The form * @return \Symfony\Component\Form\Form The form
*/ */
private function createDeleteForm(mixed $id) private function createDeleteForm(mixed $id)

View File

@ -201,7 +201,6 @@ class RoleController extends AbstractController
/** /**
* Creates a form to delete a Role entity by id. * Creates a form to delete a Role entity by id.
* *
*
* @return \Symfony\Component\Form\Form The form * @return \Symfony\Component\Form\Form The form
*/ */
private function createDeleteForm(mixed $id) private function createDeleteForm(mixed $id)

View File

@ -201,7 +201,6 @@ class StatusController extends AbstractController
/** /**
* Creates a form to delete a Status entity by id. * Creates a form to delete a Status entity by id.
* *
*
* @return \Symfony\Component\Form\Form The form * @return \Symfony\Component\Form\Form The form
*/ */
private function createDeleteForm(mixed $id) private function createDeleteForm(mixed $id)

View File

@ -84,7 +84,6 @@ class PartenaireRomeAppellation
); );
return Utils::jsonDecode((string) $response->getBody()); return Utils::jsonDecode((string) $response->getBody());
} catch (ClientException $e) { } catch (ClientException $e) {
dump($e->getResponse()->getBody()->getContents()); dump($e->getResponse()->getBody()->getContents());
} }

View File

@ -113,8 +113,7 @@ class AddCSPersonToPersonListHelper implements CustomizeListPersonHelperInterfac
public function getLabels(string $key, array $values, array $data): ?callable 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 { return function (string|bool|null $value) use ($key): string {
if ('_header' === $value) { if ('_header' === $value) {
[$domain, $v] = explode('__', $key); [$domain, $v] = explode('__', $key);
@ -129,6 +128,7 @@ class AddCSPersonToPersonListHelper implements CustomizeListPersonHelperInterfac
return ''; return '';
}; };
} }
return match ($key) { return match ($key) {
'nEETEligibilite' => function (string|bool|null $value): string { 'nEETEligibilite' => function (string|bool|null $value): string {
if ('_header' === $value) { if ('_header' === $value) {

View File

@ -727,6 +727,7 @@ class CRUDController extends AbstractController
* @param string $action * @param string $action
* *
* @return string the path to the template * @return string the path to the template
*
* @throws \LogicException if no template are available * @throws \LogicException if no template are available
*/ */
protected function getTemplateFor($action, mixed $entity, Request $request) protected function getTemplateFor($action, mixed $entity, Request $request)

View File

@ -553,6 +553,7 @@ class ExportManager
* This function check the acl. * This function check the acl.
* *
* @param \Chill\MainBundle\Entity\Center[] $centers the picked centers * @param \Chill\MainBundle\Entity\Center[] $centers the picked centers
*
* @throw UnauthorizedHttpException if the user is not authorized * @throw UnauthorizedHttpException if the user is not authorized
*/ */
private function handleFilters( private function handleFilters(
@ -629,7 +630,6 @@ class ExportManager
/** /**
* Retrieve the filter used in this export. * Retrieve the filter used in this export.
* *
*
* @return array an array with types * @return array an array with types
*/ */
private function retrieveUsedFiltersType(mixed $data): iterable private function retrieveUsedFiltersType(mixed $data): iterable

View File

@ -198,7 +198,6 @@ class AuthorizationHelper implements AuthorizationHelperInterface
* if the entity implements Chill\MainBundle\Entity\HasScopeInterface, * if the entity implements Chill\MainBundle\Entity\HasScopeInterface,
* the scope is taken into account. * the scope is taken into account.
* *
*
* @return bool true if the user has access * @return bool true if the user has access
*/ */
public function userHasAccess(UserInterface $user, mixed $entity, string $attribute): bool public function userHasAccess(UserInterface $user, mixed $entity, string $attribute): bool

View File

@ -32,8 +32,7 @@ final readonly class GeographicalUnitStatAggregator implements AggregatorInterfa
private GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository, private GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository,
private TranslatableStringHelperInterface $translatableStringHelper, private TranslatableStringHelperInterface $translatableStringHelper,
private RollingDateConverterInterface $rollingDateConverter private RollingDateConverterInterface $rollingDateConverter
) { ) {}
}
public function addRole(): ?string public function addRole(): ?string
{ {

View File

@ -38,8 +38,7 @@ class GeographicalUnitStatFilter implements FilterInterface
private readonly GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository, private readonly GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository,
private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly TranslatableStringHelperInterface $translatableStringHelper,
private readonly RollingDateConverterInterface $rollingDateConverter private readonly RollingDateConverterInterface $rollingDateConverter
) { ) {}
}
public function addRole(): ?string public function addRole(): ?string
{ {