DateField::configureOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LAG\AdminBundle\Field;
6
7
use Symfony\Component\OptionsResolver\OptionsResolver;
8
9
class DateField extends AbstractField implements ApplicationAwareInterface
0 ignored issues
show
Deprecated Code introduced by
The interface LAG\AdminBundle\Field\ApplicationAwareInterface has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

9
class DateField extends AbstractField implements /** @scrutinizer ignore-deprecated */ ApplicationAwareInterface

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
10
{
11
    use ApplicationAware;
12
13
    public function configureOptions(OptionsResolver $resolver): void
14
    {
15
        $resolver->setDefaults([
16
            'format' => '$this->applicationConfiguration->getDateFormat()',
17
            'template' => '@LAGAdmin/fields/date.html.twig',
18
        ]);
19
    }
20
}
21