misc: reindent EntryFilterType

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf 2020-03-21 00:43:01 +01:00
parent ba820b12b6
commit 7fc38f667b

View file

@ -73,23 +73,22 @@ class EntryFilterType extends AbstractType
'label' => 'entry.filters.reading_time.label', 'label' => 'entry.filters.reading_time.label',
]) ])
->add('createdAt', DateRangeFilterType::class, [ ->add('createdAt', DateRangeFilterType::class, [
'left_date_options' => [ 'left_date_options' => [
'attr' => [ 'attr' => [
'placeholder' => 'dd/mm/yyyy', 'placeholder' => 'dd/mm/yyyy',
],
'format' => 'dd/MM/yyyy',
'widget' => 'single_text',
], ],
'right_date_options' => [ 'format' => 'dd/MM/yyyy',
'attr' => [ 'widget' => 'single_text',
'placeholder' => 'dd/mm/yyyy', ],
], 'right_date_options' => [
'format' => 'dd/MM/yyyy', 'attr' => [
'widget' => 'single_text', 'placeholder' => 'dd/mm/yyyy',
], ],
'label' => 'entry.filters.created_at.label', 'format' => 'dd/MM/yyyy',
] 'widget' => 'single_text',
) ],
'label' => 'entry.filters.created_at.label',
])
->add('domainName', TextFilterType::class, [ ->add('domainName', TextFilterType::class, [
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
$value = $values['value']; $value = $values['value'];