mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -25,9 +25,9 @@ class CustomFieldsHelper
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param EntityManagerInterface $em The entity manager
|
||||
* @param CustomFieldProvider $provider The customfield provider that
|
||||
* contains all the declared custom fields
|
||||
* @param EntityManagerInterface $em The entity manager
|
||||
* @param CustomFieldProvider $provider The customfield provider that
|
||||
* contains all the declared custom fields
|
||||
*/
|
||||
public function __construct(private readonly EntityManagerInterface $em, private readonly CustomFieldProvider $provider) {}
|
||||
|
||||
@@ -45,13 +45,13 @@ class CustomFieldsHelper
|
||||
/**
|
||||
* Render the value of a custom field.
|
||||
*
|
||||
* @param array $fields the **raw** array, as stored in the db
|
||||
* @param CustomField $customField the customField entity
|
||||
* @param string $documentType The type of document in which the rendered value is displayed ('html' or 'csv').
|
||||
* @param array $fields the **raw** array, as stored in the db
|
||||
* @param CustomField $customField the customField entity
|
||||
* @param string $documentType the type of document in which the rendered value is displayed ('html' or 'csv')
|
||||
*
|
||||
* @return The representation of the value the customField
|
||||
*
|
||||
* @throws CustomFieldsHelperException if slug is missing
|
||||
*
|
||||
* @return The representation of the value the customField.
|
||||
*/
|
||||
public function renderCustomField(array $fields, CustomField $customField, $documentType = 'html')
|
||||
{
|
||||
|
Reference in New Issue
Block a user