CustomizeMethodImageType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 4
dl 0
loc 7
rs 10
c 1
b 1
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 5 1
1
<?php
2
3
/*
4
 * This file has been created by developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * You can find more information about us on https://bitbag.io and write us
7
 * an email on [email protected].
8
 */
9
10
declare(strict_types=1);
11
12
namespace BitBag\SyliusMolliePlugin\Form\Type;
13
14
use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
15
use Symfony\Component\Form\Extension\Core\Type\FileType;
16
use Symfony\Component\Form\FormBuilderInterface;
17
18
final class CustomizeMethodImageType extends AbstractResourceType
19
{
20
    public function buildForm(FormBuilderInterface $builder, array $options): void
21
    {
22
        $builder->add('file', FileType::class, [
23
            'label' => 'bitbag_sylius_mollie_plugin.ui.customize_image',
24
            'required' => false,
25
        ]);
26
    }
27
}
28