MessageUploadType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 7 1
1
<?php
2
3
namespace App\Form;
4
5
use Symfony\Component\Form\AbstractType;
6
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
7
use Symfony\Component\Form\FormBuilderInterface;
8
9
class MessageUploadType extends AbstractType {
10
11
    public function buildForm(FormBuilderInterface $builder, array $options) {
12
        $builder
13
            ->add('uploads', CollectionType::class, [
14
                'entry_type' => MessageFileUploadType::class,
15
                'allow_add' => false,
16
                'allow_delete' => false,
17
                'prototype' => false
18
            ]);
19
    }
20
}