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.
*
* @param \Chill\CustomFieldsBundle\CustomField\CustomField $customField
*
* @return string an html representation of the value
*/
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.
*
*
* @return \Symfony\Component\Form\Form The form
*/
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.
*
*
* @return \Symfony\Component\Form\Form The form
*/
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.
*
*
* @return \Symfony\Component\Form\Form The form
*/
private function createDeleteForm(mixed $id)

View File

@ -84,7 +84,6 @@ class PartenaireRomeAppellation
);
return Utils::jsonDecode((string) $response->getBody());
} catch (ClientException $e) {
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
{
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) {

View File

@ -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)

View File

@ -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

View File

@ -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

View File

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

View File

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