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