mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -21,6 +21,7 @@ use Doctrine\ORM\EntityManager;
|
||||
use LogicException;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
use UnexpectedValueException;
|
||||
|
||||
use function array_fill;
|
||||
use function array_key_exists;
|
||||
use function array_merge;
|
||||
@@ -121,28 +122,34 @@ class TimelineReportProvider implements TimelineProviderInterface
|
||||
$subtitle = null;
|
||||
|
||||
foreach ($entity->getCFGroup()->getCustomFields() as $customField) {
|
||||
if (in_array(
|
||||
$customField->getSlug(),
|
||||
$entity->getCFGroup()->getOptions()['summary_fields'],
|
||||
true
|
||||
)) {
|
||||
if (
|
||||
in_array(
|
||||
$customField->getSlug(),
|
||||
$entity->getCFGroup()->getOptions()['summary_fields'],
|
||||
true
|
||||
)
|
||||
) {
|
||||
// if we do not want to show empty values
|
||||
if (false === $this->showEmptyValues) {
|
||||
if ($customField->getType() === 'title') {
|
||||
$options = $customField->getOptions();
|
||||
|
||||
switch ($options['type']) {
|
||||
case 'title': $title = $customField;
|
||||
case 'title':
|
||||
$title = $customField;
|
||||
|
||||
break;
|
||||
break;
|
||||
|
||||
case 'subtitle': $subtitle = $customField;
|
||||
case 'subtitle':
|
||||
$subtitle = $customField;
|
||||
|
||||
break;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if ($this->customFieldsHelper->isEmptyValue($entity->getCFData(), $customField)
|
||||
=== false) {
|
||||
if (
|
||||
$this->customFieldsHelper->isEmptyValue($entity->getCFData(), $customField)
|
||||
=== false
|
||||
) {
|
||||
if (null !== $title) {
|
||||
$gatheredFields[] = $title;
|
||||
$title = null;
|
||||
|
Reference in New Issue
Block a user