LabelType   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 15 1
A configureOptions() 0 6 1
1
<?php
2
3
namespace Loevgaard\PakkelabelsBundle\Form;
4
5
use Loevgaard\PakkelabelsBundle\Entity\Label;
6
use Symfony\Component\Form\AbstractType;
7
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
8
use Symfony\Component\Form\FormBuilderInterface;
9
use Symfony\Component\OptionsResolver\OptionsResolver;
10
11
class LabelType extends AbstractType
12
{
13
    public function buildForm(FormBuilderInterface $builder, array $options)
14
    {
15
        // @todo fix this form
16
        /*$builder
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
17
            ->add('source', null, [
18
                'label' => 'country_mapping.label.source'
19
            ])
20
            ->add('countryCode', null, [
21
                'label' => 'country_mapping.label.country_code'
22
            ])
23
            ->add('save', SubmitType::class, [
24
                'label' => 'layout.save'
25
            ])
26
        ;*/
27
    }
28
29
    public function configureOptions(OptionsResolver $resolver)
30
    {
31
        $resolver->setDefaults([
32
            'data_class' => Label::class,
33
        ]);
34
    }
35
}
36