@@ -37,28 +37,28 @@ |
||
37 | 37 | $builder |
38 | 38 | ->add('inventory', EntityType::class, ['class' => 'AppBundle:Stocks\Inventory', 'choice_label' => 'id', |
39 | 39 | 'label' => 'gestock.id', 'translation_domain' => 'messages', 'empty_data' => null, |
40 | - 'attr'=> ['class' => 'form-control', 'readonly' => true,],]) |
|
40 | + 'attr'=> ['class' => 'form-control', 'readonly' => true, ], ]) |
|
41 | 41 | ->add('article', EntityType::class, ['class' => 'AppBundle:Settings\Article', 'choice_label' => 'name', |
42 | 42 | 'label' => 'title', 'translation_domain' => 'gs_articles', 'empty_data' => null, |
43 | - 'attr'=> ['class' => 'form-control', 'readonly' => true,],]) |
|
43 | + 'attr'=> ['class' => 'form-control', 'readonly' => true, ], ]) |
|
44 | 44 | ->add('quantity', NumberType::class, ['scale' => 3, 'grouping' => true, 'empty_data' => '0,000', |
45 | 45 | 'label' => 'settings.quantity', 'translation_domain' => 'gs_articles', |
46 | - 'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],]) |
|
46 | + 'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ]) |
|
47 | 47 | ->add('realstock', NumberType::class, ['scale' => 3, 'grouping' => true, 'empty_data' => '0,000', |
48 | 48 | 'label' => 'seizure.realstock', 'translation_domain' => 'gs_inventories', |
49 | - 'attr'=> ['class' => 'inventory form-control',],]) |
|
49 | + 'attr'=> ['class' => 'inventory form-control', ], ]) |
|
50 | 50 | ->add('unitStorage', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\Unit', |
51 | 51 | 'choice_label' => 'abbr', 'label' => 'gestock.settings.diverse.unitstorage', 'empty_data' => null, |
52 | - 'attr'=> ['class' => 'form-control', 'readonly' => true,],]) |
|
52 | + 'attr'=> ['class' => 'form-control', 'readonly' => true, ], ]) |
|
53 | 53 | ->add('price', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR', |
54 | 54 | 'label' => 'settings.price', 'translation_domain' => 'gs_articles', |
55 | - 'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],]) |
|
55 | + 'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ]) |
|
56 | 56 | ->add('total', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR', |
57 | 57 | 'label' => 'seizure.total', 'translation_domain' => 'gs_inventories', 'mapped' => false, |
58 | - 'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],]) |
|
58 | + 'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ]) |
|
59 | 59 | ->add('gap', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'seizure.gap', |
60 | 60 | 'translation_domain' => 'gs_inventories', 'mapped' => false, |
61 | - 'attr'=> ['class' => 'inventory form-control', 'readonly' =>true,],]); |
|
61 | + 'attr'=> ['class' => 'inventory form-control', 'readonly' =>true, ], ]); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -43,42 +43,42 @@ discard block |
||
43 | 43 | public function buildForm(FormBuilderInterface $builder, array $options) |
44 | 44 | { |
45 | 45 | $builder |
46 | - ->add('name', TextType::class, ['label' => 'gestock.title_item', 'attr' => ['class' => 'form-control',],]) |
|
46 | + ->add('name', TextType::class, ['label' => 'gestock.title_item', 'attr' => ['class' => 'form-control', ], ]) |
|
47 | 47 | ->add('packaging', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'settings.packaging', |
48 | - 'translation_domain' => 'gs_articles', 'attr' => ['class' => 'form-control',],]) |
|
48 | + 'translation_domain' => 'gs_articles', 'attr' => ['class' => 'form-control', ], ]) |
|
49 | 49 | ->add('price', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR', |
50 | 50 | 'label' => 'settings.price', 'translation_domain' => 'gs_articles', |
51 | - 'attr' => ['class' => 'form-control',],]) |
|
51 | + 'attr' => ['class' => 'form-control', ], ]) |
|
52 | 52 | ->add('tva', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\Tva', 'choice_label' => 'name', |
53 | 53 | 'multiple' => false, 'label' => 'gestock.settings.diverse.vat', |
54 | - 'attr' => ['class' => 'form-control',],]) |
|
54 | + 'attr' => ['class' => 'form-control', ], ]) |
|
55 | 55 | ->add('quantity', HiddenType::class) |
56 | 56 | ->add('minstock', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'settings.stock_alert', |
57 | - 'translation_domain' => 'gs_articles', 'attr' => ['class' => 'form-control',],]) |
|
58 | - ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif',]) |
|
57 | + 'translation_domain' => 'gs_articles', 'attr' => ['class' => 'form-control', ], ]) |
|
58 | + ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif', ]) |
|
59 | 59 | ->add('supplier', EntityType::class, ['class' => 'AppBundle:Settings\Supplier', |
60 | - 'query_builder' => function (EntityRepository $er) { |
|
60 | + 'query_builder' => function(EntityRepository $er) { |
|
61 | 61 | return $er->createQueryBuilder('s') |
62 | 62 | ->where('s.active = 1'); |
63 | 63 | }, 'choice_label' => 'name', 'multiple' => false, 'placeholder' => 'form.choice_supplier', |
64 | 64 | 'label' => 'title', 'translation_domain' => 'gs_suppliers', 'empty_data' => null, |
65 | - 'attr' => ['class' => 'form-control',],]) |
|
65 | + 'attr' => ['class' => 'form-control', ], ]) |
|
66 | 66 | ->add('unitStorage', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\Unit', |
67 | 67 | 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitstorage', |
68 | - 'attr' => ['class' => 'form-control',],]) |
|
68 | + 'attr' => ['class' => 'form-control', ], ]) |
|
69 | 69 | ->add('unitWorking', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\Unit', |
70 | 70 | 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitworking', |
71 | - 'attr' => ['class' => 'form-control',],]) |
|
71 | + 'attr' => ['class' => 'form-control', ], ]) |
|
72 | 72 | ->add('zoneStorages', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\ZoneStorage', |
73 | 73 | 'choice_label' => 'name', 'multiple' => true, 'expanded' => true, |
74 | - 'label' => 'gestock.settings.diverse.zonestorage', 'attr' => ['class' => 'form-control',],]) |
|
74 | + 'label' => 'gestock.settings.diverse.zonestorage', 'attr' => ['class' => 'form-control', ], ]) |
|
75 | 75 | ->add('familyLog', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\FamilyLog', |
76 | - 'query_builder' => function (EntityRepository $er) { |
|
76 | + 'query_builder' => function(EntityRepository $er) { |
|
77 | 77 | return $er->createQueryBuilder('f') |
78 | 78 | ->orderBy('f.path', 'ASC'); |
79 | 79 | }, 'choice_label' => 'indentedName', 'multiple' => false, |
80 | 80 | 'placeholder' => 'gestock.settings.diverse.choice_family', 'empty_data' => null, |
81 | - 'label' => 'gestock.settings.diverse.familylog', 'attr' => ['class' => 'form-control',],]) |
|
81 | + 'label' => 'gestock.settings.diverse.familylog', 'attr' => ['class' => 'form-control', ], ]) |
|
82 | 82 | ->addEventSubscriber(new AddSaveEditFieldSubscriber()) |
83 | 83 | ; |
84 | 84 | } |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function configureOptions(OptionsResolver $resolver) |
90 | 90 | { |
91 | - $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Article',]); |
|
91 | + $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Article', ]); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | { |
37 | 37 | $builder |
38 | 38 | ->add('name', TextType::class, ['label' => 'gestock.settings.diverse.unitstorage', |
39 | - 'attr' => ['class' => 'half',],]) |
|
40 | - ->add('abbr', TextType::class, ['label' => 'gestock.abbr', 'attr' => ['class' => 'half',],]) |
|
39 | + 'attr' => ['class' => 'half', ], ]) |
|
40 | + ->add('abbr', TextType::class, ['label' => 'gestock.abbr', 'attr' => ['class' => 'half', ], ]) |
|
41 | 41 | ->addEventSubscriber(new AddSaveEditFieldSubscriber()); |
42 | 42 | } |
43 | 43 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function configureOptions(OptionsResolver $resolver) |
48 | 48 | { |
49 | - $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Diverse\Unit',]); |
|
49 | + $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Diverse\Unit', ]); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function configureOptions(OptionsResolver $resolver) |
45 | 45 | { |
46 | - $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Orders\Orders',]); |
|
46 | + $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Orders\Orders', ]); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -37,24 +37,24 @@ |
||
37 | 37 | $builder |
38 | 38 | ->add('orders', EntityType::class, ['required' => false, 'class' => 'AppBundle:Orders\Orders', |
39 | 39 | 'choice_label' => 'id', 'label' => 'gestock.id', 'translation_domain' => 'messages', |
40 | - 'empty_data' => null,]) |
|
40 | + 'empty_data' => null, ]) |
|
41 | 41 | ->add('article', EntityType::class, ['required' => false, 'class' => 'AppBundle:Settings\Article', |
42 | 42 | 'choice_label' => 'name', 'label' => 'title', 'translation_domain' => 'gs_articles', |
43 | - 'empty_data' => null,]) |
|
43 | + 'empty_data' => null, ]) |
|
44 | 44 | ->add('quantity', NumberType::class, ['scale' => 3, 'grouping' => true, 'empty_data' => '0,000', |
45 | 45 | 'label' => 'settings.quantity', 'translation_domain' => 'gs_articles', |
46 | - 'attr'=> ['class' => 'form-control text-right',],]) |
|
46 | + 'attr'=> ['class' => 'form-control text-right', ], ]) |
|
47 | 47 | ->add('unitStorage', EntityType::class, ['required' => false, 'class' => 'AppBundle:Settings\Diverse\Unit', |
48 | - 'choice_label' => 'abbr', 'label' => 'gestock.settings.diverse.unitstorage', 'empty_data' => null,]) |
|
48 | + 'choice_label' => 'abbr', 'label' => 'gestock.settings.diverse.unitstorage', 'empty_data' => null, ]) |
|
49 | 49 | ->add('price', MoneyType::class, ['required' => false, 'scale' => 3, 'grouping' => true, |
50 | 50 | 'currency' => 'EUR', 'label' => 'settings.price', 'translation_domain' => 'gs_articles', |
51 | - 'attr'=> ['class' => 'form-control text-right', 'readonly' => true,],]) |
|
51 | + 'attr'=> ['class' => 'form-control text-right', 'readonly' => true, ], ]) |
|
52 | 52 | ->add('tva', EntityType::class, ['required' => false, 'class' => 'AppBundle:Settings\Diverse\Tva', |
53 | 53 | 'choice_label' => 'name', 'choice_value' => 'rate', 'label' => 'gestock.settings.diverse.vat', |
54 | - 'empty_data' => null,]) |
|
54 | + 'empty_data' => null, ]) |
|
55 | 55 | ->add('total', MoneyType::class, ['required' => false, 'scale' => 3, 'grouping' => true, |
56 | 56 | 'currency' => 'EUR', 'label' => 'seizure.total', 'translation_domain' => 'gs_orders', |
57 | - 'mapped' => false, 'attr'=> ['class' => 'form-control text-right', 'readonly' => true,],]) |
|
57 | + 'mapped' => false, 'attr'=> ['class' => 'form-control text-right', 'readonly' => true, ], ]) |
|
58 | 58 | ; |
59 | 59 | } |
60 | 60 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $builder |
40 | 40 | ->add('quantity', NumberType::class, ['required' => false, 'scale' => 3, 'grouping' => true, |
41 | 41 | 'empty_data' => '0,000', 'label' => 'settings.quantity', 'translation_domain' => 'gs_articles', |
42 | - 'attr'=> ['class' => 'form-control text-right', 'readonly' => true, ],]) |
|
42 | + 'attr'=> ['class' => 'form-control text-right', 'readonly' => true, ], ]) |
|
43 | 43 | ->add('price', MoneyType::class, ['required' => true, 'scale' => 3, 'grouping' => true, |
44 | 44 | 'currency' => 'EUR', 'label' => 'settings.price', 'translation_domain' => 'gs_articles', |
45 | 45 | 'attr'=> ['class' => 'form-control text-right', ]]) |
@@ -39,17 +39,17 @@ discard block |
||
39 | 39 | public function buildForm(FormBuilderInterface $builder, array $options) |
40 | 40 | { |
41 | 41 | $builder |
42 | - ->add('name', TextType::class, ['label' => 'gestock.name', 'attr' => ['class' => 'half'],]) |
|
42 | + ->add('name', TextType::class, ['label' => 'gestock.name', 'attr' => ['class' => 'half'], ]) |
|
43 | 43 | ->add('unitWorking', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\Unit', |
44 | 44 | 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitworking', |
45 | - 'attr' => ['class' => 'half',],]) |
|
46 | - ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif',]) |
|
47 | - ->add('multiple', CheckboxType::class, ['required' => false, 'label' => 'gestock.multiple',]) |
|
45 | + 'attr' => ['class' => 'half', ], ]) |
|
46 | + ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif', ]) |
|
47 | + ->add('multiple', CheckboxType::class, ['required' => false, 'label' => 'gestock.multiple', ]) |
|
48 | 48 | ->add('articles', EntityType::class, ['class' => 'AppBundle:Settings\Article', |
49 | - 'query_builder' => function (EntityRepository $er) { |
|
49 | + 'query_builder' => function(EntityRepository $er) { |
|
50 | 50 | return $er->createQueryBuilder('a')->orderBy('a.name', 'ASC'); |
51 | 51 | }, 'choice_label' => 'name', 'multiple' => true, 'expanded' => true, 'label' => 'title', |
52 | - 'translation_domain' => 'gs_articles',]) |
|
52 | + 'translation_domain' => 'gs_articles', ]) |
|
53 | 53 | ->addEventSubscriber(new AddSaveEditFieldSubscriber()) |
54 | 54 | ; |
55 | 55 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | public function configureOptions(OptionsResolver $resolver) |
61 | 61 | { |
62 | 62 | $resolver->setDefaults( |
63 | - ['data_class' => 'AppBundle\Entity\Settings\Diverse\Material',] |
|
63 | + ['data_class' => 'AppBundle\Entity\Settings\Diverse\Material', ] |
|
64 | 64 | ); |
65 | 65 | } |
66 | 66 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @param \Symfony\Component\Form\Form $form Form of Entity |
71 | 71 | * @param \Doctrine\Common\Persistence\ObjectManager $etm Entity Manager |
72 | 72 | * @param integer $number Number of step install |
73 | - * @return array Route after valid or not |
|
73 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse Route after valid or not |
|
74 | 74 | */ |
75 | 75 | private function validInstall($entityNew, $form, ObjectManager $etm, $number) |
76 | 76 | { |
@@ -90,6 +90,9 @@ discard block |
||
90 | 90 | return $return; |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $name |
|
95 | + */ |
|
93 | 96 | private function nameToVariable($name) |
94 | 97 | { |
95 | 98 |
@@ -47,11 +47,11 @@ |
||
47 | 47 | if ($ctEntity > 0 && $request->getMethod() == 'GET' && is_int($number)) { |
48 | 48 | $message = 'gestock.install.st'.$number.'.yet_exist'; |
49 | 49 | } |
50 | - $form = $this->createForm($typePath, $entityNew, ['action' => $this->generateUrl('gs_install_st'.$number),]); |
|
50 | + $form = $this->createForm($typePath, $entityNew, ['action' => $this->generateUrl('gs_install_st'.$number), ]); |
|
51 | 51 | if (is_int($number)) { |
52 | - $return = ['message' => $message, 'form' => $form->createView(),]; |
|
52 | + $return = ['message' => $message, 'form' => $form->createView(), ]; |
|
53 | 53 | } else { |
54 | - $return = [$this->nameToVariable($entity) => $entityNew, 'form' => $form->createView(),]; |
|
54 | + $return = [$this->nameToVariable($entity) => $entityNew, 'form' => $form->createView(), ]; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | if ($form->handleRequest($request)->isValid()) { |
@@ -40,49 +40,49 @@ discard block |
||
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 | - 'attr' => ['class' => 'form-control',]]) |
|
57 | - ->add('mail', EmailType::class, ['label' => 'gestock.mail', 'attr' => ['class' => 'form-control',]]) |
|
58 | - ->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 | + 'attr' => ['class' => 'form-control', ]]) |
|
57 | + ->add('mail', EmailType::class, ['label' => 'gestock.mail', 'attr' => ['class' => 'form-control', ]]) |
|
58 | + ->add('contact', TextType::class, ['label' => 'gestock.contact', 'attr' => ['class' => 'form-control', ], ]) |
|
59 | 59 | ->add('gsm', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, |
60 | - 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',], |
|
61 | - 'preferred_country_choices' => ['FR',], 'label' => 'gestock.gsm', |
|
62 | - 'attr' => ['class' => 'form-control',]]) |
|
60 | + 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ], |
|
61 | + 'preferred_country_choices' => ['FR', ], 'label' => 'gestock.gsm', |
|
62 | + 'attr' => ['class' => 'form-control', ]]) |
|
63 | 63 | /** |
64 | 64 | * Délai de livraison A = jour de Cmde, |
65 | 65 | * (B, C, D, E) = jour de livraison |
66 | 66 | */ |
67 | 67 | ->add('delaydeliv', ChoiceType::class, ['choices' => ['form.atob' => 1, 'form.atoc' => 2, |
68 | - 'form.atod' => 3, 'form.atoe' => 4,], 'choices_as_values' => true, 'label' => 'settings.delay', |
|
69 | - 'translation_domain' => 'gs_suppliers', 'attr' => ['class' => 'form-control half',]]) |
|
68 | + 'form.atod' => 3, 'form.atoe' => 4, ], 'choices_as_values' => true, 'label' => 'settings.delay', |
|
69 | + 'translation_domain' => 'gs_suppliers', 'attr' => ['class' => 'form-control half', ]]) |
|
70 | 70 | /** |
71 | 71 | * Choix du jour de la semaine pour les Cmdes |
72 | 72 | * Numérotation voir http://php.net/manual/fr/function.date.php format 'N' |
73 | 73 | */ |
74 | 74 | ->add('orderdate', ChoiceType::class, ['choices' => ['Monday' => 1, 'Tuesday' => 2, 'Wednesday' => 3, |
75 | - 'Thursday' => 4, 'Friday' => 5, 'Saturday' => 6, 'Sunday' => 7,], 'choices_as_values' => true, |
|
75 | + 'Thursday' => 4, 'Friday' => 5, 'Saturday' => 6, 'Sunday' => 7, ], 'choices_as_values' => true, |
|
76 | 76 | 'choice_translation_domain' => true, 'translation_domain' => 'messages', 'label' => 'day_order', |
77 | - 'attr' => ['class' => 'form-control',], 'expanded' => true, 'multiple' => true,]) |
|
77 | + 'attr' => ['class' => 'form-control', ], 'expanded' => true, 'multiple' => true, ]) |
|
78 | 78 | ->add('familyLog', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\FamilyLog', |
79 | - 'query_builder' => function (EntityRepository $er) { |
|
79 | + 'query_builder' => function(EntityRepository $er) { |
|
80 | 80 | return $er->createQueryBuilder('f') |
81 | 81 | ->orderBy('f.path', 'ASC'); |
82 | 82 | }, 'choice_label' => 'indentedName', 'multiple' => false, |
83 | 83 | 'placeholder' => 'gestock.settings.diverse.choice_family', 'empty_data' => null, |
84 | - 'label' => 'gestock.settings.diverse.familylog', 'attr' => ['class' => 'form-control half',]]) |
|
85 | - ->add('active', HiddenType::class, ['data' => true,]); |
|
84 | + 'label' => 'gestock.settings.diverse.familylog', 'attr' => ['class' => 'form-control half', ]]) |
|
85 | + ->add('active', HiddenType::class, ['data' => true, ]); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function configureOptions(OptionsResolver $resolver) |
92 | 92 | { |
93 | - $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Supplier',]); |
|
93 | + $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Supplier', ]); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |