Completed
Push — Recipes ( 164379...98dbcc )
by Laurent
02:39
created
src/AppBundle/Form/Type/Settings/SupplierType.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -40,47 +40,47 @@  discard block
 block discarded – undo
40 40
     public function buildForm(FormBuilderInterface $builder, array $options)
41 41
     {
42 42
         $builder
43
-            ->add('name', TextType::class, ['label' => 'gestock.name', 'attr'  => ['class' => 'form-control',],])
43
+            ->add('name', TextType::class, ['label' => 'gestock.name', 'attr'  => ['class' => 'form-control', ], ])
44 44
             ->add('address', TextType::class, ['label' => 'gestock.address',
45
-                'attr'  => ['placeholder' => 'gestock.address', 'class' => 'form-control',],])
45
+                'attr'  => ['placeholder' => 'gestock.address', 'class' => 'form-control', ], ])
46 46
             ->add('zipcode', TextType::class, ['attr' => ['placeholder' => 'gestock.zipcode',
47
-                'class' => 'form-control half',],])
47
+                'class' => 'form-control half', ], ])
48 48
             ->add('town', TextType::class, ['attr'  => ['placeholder' => 'gestock.town',
49
-                'class' => 'form-control half',],])
49
+                'class' => 'form-control half', ], ])
50 50
             ->add('phone', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
51
-                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',],
52
-                    'preferred_country_choices' => ['FR',], 'label' => 'gestock.phone',])
51
+                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
52
+                    'preferred_country_choices' => ['FR', ], 'label' => 'gestock.phone', ])
53 53
             ->add('fax', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
54
-                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',],
55
-                    'preferred_country_choices' => ['FR',], 'label' => 'gestock.fax',])
56
-            ->add('mail', EmailType::class, ['label' => 'gestock.mail', 'attr'  => ['class' => 'form-control',]])
57
-            ->add('contact', TextType::class, ['label' => 'gestock.contact', 'attr'  => ['class' => 'form-control',],])
54
+                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
55
+                    'preferred_country_choices' => ['FR', ], 'label' => 'gestock.fax', ])
56
+            ->add('mail', EmailType::class, ['label' => 'gestock.mail', 'attr'  => ['class' => 'form-control', ]])
57
+            ->add('contact', TextType::class, ['label' => 'gestock.contact', 'attr'  => ['class' => 'form-control', ], ])
58 58
             ->add('gsm', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
59
-                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',],
60
-                    'preferred_country_choices' => ['FR',], 'label' => 'gestock.gsm',])
59
+                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
60
+                    'preferred_country_choices' => ['FR', ], 'label' => 'gestock.gsm', ])
61 61
             /**
62 62
              * Délai de livraison A = jour de Cmde,
63 63
              * (B, C, D, E) = jour de livraison
64 64
              */
65 65
             ->add('delaydeliv', ChoiceType::class, ['choices' => ['form.atob' => 1, 'form.atoc' => 2,
66
-                'form.atod' => 3, 'form.atoe' => 4,], 'choices_as_values' => true, 'label' => 'settings.delay',
67
-                    'translation_domain' => 'gs_suppliers', 'attr'  => ['class' => 'form-control half',]])
66
+                'form.atod' => 3, 'form.atoe' => 4, ], 'choices_as_values' => true, 'label' => 'settings.delay',
67
+                    'translation_domain' => 'gs_suppliers', 'attr'  => ['class' => 'form-control half', ]])
68 68
             /**
69 69
              * Choix du jour de la semaine pour les Cmdes
70 70
              * Numérotation voir http://php.net/manual/fr/function.date.php format 'N'
71 71
              */
72 72
             ->add('orderdate', ChoiceType::class, ['choices' => ['Monday' => 1, 'Tuesday' => 2, 'Wednesday' => 3,
73
-                'Thursday' => 4, 'Friday' => 5, 'Saturday' => 6, 'Sunday' => 7,], 'choices_as_values' => true,
73
+                'Thursday' => 4, 'Friday' => 5, 'Saturday' => 6, 'Sunday' => 7, ], 'choices_as_values' => true,
74 74
                 'choice_translation_domain' => true, 'translation_domain' => 'messages', 'label' => 'day_order',
75
-                'attr'  => ['class' => 'form-control',], 'expanded' => true, 'multiple' => true,])
75
+                'attr'  => ['class' => 'form-control', ], 'expanded' => true, 'multiple' => true, ])
76 76
             ->add('familyLog', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\FamilyLog',
77
-                    'query_builder' => function (EntityRepository $er) {
77
+                    'query_builder' => function(EntityRepository $er) {
78 78
                         return $er->createQueryBuilder('f')
79 79
                             ->orderBy('f.path', 'ASC');
80 80
                     }, 'choice_label' => 'indentedName', 'multiple' => false,
81 81
                     'placeholder' => 'gestock.settings.diverse.choice_family', 'empty_data' => null,
82
-                    'label' => 'gestock.settings.diverse.familylog', 'attr'  => ['class' => 'form-control half',]])
83
-            ->add('active', HiddenType::class, ['data' => true,]);
82
+                    'label' => 'gestock.settings.diverse.familylog', 'attr'  => ['class' => 'form-control half', ]])
83
+            ->add('active', HiddenType::class, ['data' => true, ]);
84 84
     }
85 85
 
86 86
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function configureOptions(OptionsResolver $resolver)
90 90
     {
91
-        $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Supplier',]);
91
+        $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Supplier', ]);
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.