mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-02-04 07:27:18 +00:00
apply rector rules
This commit is contained in:
@@ -52,7 +52,6 @@ class CustomFieldRenderingTwig extends AbstractExtension
|
||||
],
|
||||
'needs_environment' => true,
|
||||
]),
|
||||
new TwigFunction('chill_custom_field_is_empty', $this->isEmptyValue(...)),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -64,6 +63,7 @@ class CustomFieldRenderingTwig extends AbstractExtension
|
||||
return 'chill_custom_fields_rendering';
|
||||
}
|
||||
|
||||
#[\Twig\Attribute\AsTwigFunction('chill_custom_field_is_empty')]
|
||||
public function isEmptyValue($fields, CustomField $customField)
|
||||
{
|
||||
return $this->customFieldsHelper
|
||||
|
||||
Reference in New Issue
Block a user