Completed
Push — master ( 265a2d...f9e310 )
by jerome
05:38 queued 02:58
created

src/DP/Core/CoreBundle/Form/SettingsType.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace DP\Core\CoreBundle\Form;
4
5
use Symfony\Component\Form\AbstractType;
6
use Symfony\Component\Form\FormBuilderInterface;
7
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
8
9
class SettingsType extends AbstractType
10
{
11
    public function buildForm(FormBuilderInterface $builder, array $options)
12
    {
13
        $builder
14
            ->add('debug', 'dictionary', array(
15
                'name' => 'yes_no',
16
            ))
17
        ;
18
    }
19
20
    public function setDefaultOptions(OptionsResolverInterface $resolver)
21
    {
22
        $resolver
0 ignored issues
show
The method setDefault() does not exist on Symfony\Component\Option...ptionsResolverInterface. Did you maybe mean setDefaults()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
23
            ->setDefault('data_class', 'DP\Core\CoreBundle\Settings\Settings')
24
        ;
25
    }
26
27
    public function getName()
28
    {
29
        return 'core_settings';
30
    }
31
}
32