Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
23 / 23 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ImportFormType | |
100.00% |
23 / 23 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| buildForm | |
100.00% |
23 / 23 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Form; |
| 6 | |
| 7 | use Symfony\Component\Form\AbstractType; |
| 8 | use Symfony\Component\Form\Extension\Core\Type\CheckboxType; |
| 9 | use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
| 10 | use Symfony\Component\Form\FormBuilderInterface; |
| 11 | |
| 12 | /** |
| 13 | * @extends AbstractType<mixed> |
| 14 | */ |
| 15 | class ImportFormType extends AbstractType |
| 16 | { |
| 17 | public function buildForm( |
| 18 | FormBuilderInterface $builder, |
| 19 | array $options |
| 20 | ): void |
| 21 | { |
| 22 | $builder |
| 23 | ->add('importImages', CheckboxType::class, [ |
| 24 | 'required' => false, |
| 25 | ]) |
| 26 | ->add('forceUpdate', CheckboxType::class, [ |
| 27 | 'required' => false, |
| 28 | ]) |
| 29 | ->add( |
| 30 | 'multiexportjson', |
| 31 | TextareaType::class, |
| 32 | [ |
| 33 | 'attr' => ['cols' => '30', 'rows' => '5'], |
| 34 | 'required' => false, |
| 35 | ] |
| 36 | ) |
| 37 | ->add( |
| 38 | 'kexport', |
| 39 | TextareaType::class, |
| 40 | [ |
| 41 | 'attr' => ['cols' => '30', 'rows' => '5'], |
| 42 | 'required' => false, |
| 43 | ] |
| 44 | ); |
| 45 | } |
| 46 | } |