DateField   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
eloc 5
c 2
b 0
f 2
dl 0
loc 9
ccs 0
cts 2
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configureOptions() 0 5 1
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