apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

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