mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
php cs fixes after merge
This commit is contained in:
parent
d34f9450b8
commit
dddb6d66bc
@ -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');
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -84,7 +84,6 @@ class PartenaireRomeAppellation
|
||||
);
|
||||
|
||||
return Utils::jsonDecode((string) $response->getBody());
|
||||
|
||||
} catch (ClientException $e) {
|
||||
dump($e->getResponse()->getBody()->getContents());
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -32,8 +32,7 @@ final readonly class GeographicalUnitStatAggregator implements AggregatorInterfa
|
||||
private GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository,
|
||||
private TranslatableStringHelperInterface $translatableStringHelper,
|
||||
private RollingDateConverterInterface $rollingDateConverter
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function addRole(): ?string
|
||||
{
|
||||
|
@ -38,8 +38,7 @@ class GeographicalUnitStatFilter implements FilterInterface
|
||||
private readonly GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository,
|
||||
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
||||
private readonly RollingDateConverterInterface $rollingDateConverter
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function addRole(): ?string
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user