Completed
Push — Recipes ( 630f49...c8afb0 )
by Laurent
12:15 queued 03:48
created
src/Form/Type/Settings/CompanyType.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -37,25 +37,25 @@
 block discarded – undo
37 37
     public function buildForm(FormBuilderInterface $builder, array $options)
38 38
     {
39 39
         $builder
40
-            ->add('name', TextType::class, ['label' => 'gestock.settings.company.name',])
41
-            ->add('status', TextType::class, ['label' => 'gestock.settings.company.status',])
42
-            ->add('address', TextType::class, ['label' => 'gestock.address',])
43
-            ->add('zipcode', TextType::class, ['label' => 'gestock.zipcode',])
40
+            ->add('name', TextType::class, ['label' => 'gestock.settings.company.name', ])
41
+            ->add('status', TextType::class, ['label' => 'gestock.settings.company.status', ])
42
+            ->add('address', TextType::class, ['label' => 'gestock.address', ])
43
+            ->add('zipcode', TextType::class, ['label' => 'gestock.zipcode', ])
44 44
             ->add('town', TextType::class, ['label' => 'gestock.town', 'attr' => [
45 45
                 'onBlur' => 'this.value=this.value.toUpperCase();',
46 46
                 'onFocus' => 'this.value=this.value.toUpperCase();',
47
-                'onKeyup' => 'this.value=this.value.toUpperCase();',]])
47
+                'onKeyup' => 'this.value=this.value.toUpperCase();', ]])
48 48
             ->add('phone', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
49
-                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',],
50
-                    'preferred_country_choices' => ['FR',], 'label' => 'gestock.phone',])
49
+                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
50
+                    'preferred_country_choices' => ['FR', ], 'label' => 'gestock.phone', ])
51 51
             ->add('fax', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
52
-                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',],
53
-                    'preferred_country_choices' => ['FR',], 'label' => 'gestock.fax',])
54
-            ->add('mail', EmailType::class, ['trim' => true, 'label' => 'gestock.mail',])
55
-            ->add('contact', TextType::class, ['label' => 'gestock.contact',])
52
+                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
53
+                    'preferred_country_choices' => ['FR', ], 'label' => 'gestock.fax', ])
54
+            ->add('mail', EmailType::class, ['trim' => true, 'label' => 'gestock.mail', ])
55
+            ->add('contact', TextType::class, ['label' => 'gestock.contact', ])
56 56
             ->add('gsm', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
57
-                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',],
58
-                    'preferred_country_choices' => ['FR',], 'label' => 'gestock.gsm',])
57
+                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
58
+                    'preferred_country_choices' => ['FR', ], 'label' => 'gestock.gsm', ])
59 59
             ->addEventSubscriber(new AddSaveEditFieldSubscriber())
60 60
         ;
61 61
     }
Please login to merge, or discard this patch.
src/Form/Type/Settings/ArticleType.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -38,49 +38,49 @@
 block discarded – undo
38 38
     public function buildForm(FormBuilderInterface $builder, array $options)
39 39
     {
40 40
         $builder
41
-            ->add('name', TextType::class, ['label' => 'gestock.title_item', 'attr'  => ['class' => 'form-control',],])
41
+            ->add('name', TextType::class, ['label' => 'gestock.title_item', 'attr'  => ['class' => 'form-control', ], ])
42 42
             ->add('packaging', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'settings.packaging',
43
-                'translation_domain' => 'gs_articles', 'attr'  => ['class' => 'form-control',],])
43
+                'translation_domain' => 'gs_articles', 'attr'  => ['class' => 'form-control', ], ])
44 44
             ->add('price', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR',
45 45
                 'label' => 'settings.price', 'translation_domain' => 'gs_articles',
46
-                'attr'  => ['class' => 'form-control',],])
46
+                'attr'  => ['class' => 'form-control', ], ])
47 47
             ->add('tva', EntityType::class, ['class' => 'App:Settings\Diverse\Tva', 'choice_label' => 'name',
48 48
                 'multiple' => false, 'label' => 'gestock.settings.diverse.vat',
49
-                'attr'  => ['class' => 'form-control',],])
49
+                'attr'  => ['class' => 'form-control', ], ])
50 50
             ->add('quantity', HiddenType::class)
51 51
             ->add('minstock', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'settings.stock_alert',
52
-                'translation_domain' => 'gs_articles', 'attr'  => ['class' => 'form-control',],])
53
-            ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif',])
52
+                'translation_domain' => 'gs_articles', 'attr'  => ['class' => 'form-control', ], ])
53
+            ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif', ])
54 54
             ->add('supplier', EntityType::class, ['class' => 'App:Settings\Supplier',
55
-                    'query_builder' => function (EntityRepository $er) {
55
+                    'query_builder' => function(EntityRepository $er) {
56 56
                         return $er->createQueryBuilder('s')
57 57
                             ->where('s.active = 1');
58 58
                     }, 'choice_label' => 'name', 'multiple' => false, 'placeholder' => 'form.choice_supplier',
59 59
                     'label' => 'title', 'translation_domain' => 'gs_suppliers', 'empty_data' => null,
60
-                    'attr'  => ['class' => 'form-control',],])
60
+                    'attr'  => ['class' => 'form-control', ], ])
61 61
             ->add('unitStorage', EntityType::class, ['class' => 'App:Settings\Diverse\Unit',
62 62
                 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitstorage',
63
-                'attr'  => ['class' => 'form-control',],])
63
+                'attr'  => ['class' => 'form-control', ], ])
64 64
             ->add('unitWorking', EntityType::class, ['class' => 'App:Settings\Diverse\Unit',
65 65
                 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitworking',
66
-                'attr'  => ['class' => 'form-control',],])
66
+                'attr'  => ['class' => 'form-control', ], ])
67 67
             ->add('zoneStorages', EntityType::class, ['class' => 'App:Settings\Diverse\ZoneStorage',
68 68
                 'choice_label' => 'name', 'multiple' => true, 'expanded' => true,
69
-                'label' => 'gestock.settings.diverse.zonestorage', 'attr'  => ['class' => 'form-control',],])
69
+                'label' => 'gestock.settings.diverse.zonestorage', 'attr'  => ['class' => 'form-control', ], ])
70 70
             ->add('familyLog', EntityType::class, ['class' => 'App:Settings\Diverse\FamilyLog',
71
-                    'query_builder' => function (EntityRepository $er) {
71
+                    'query_builder' => function(EntityRepository $er) {
72 72
                         return $er->createQueryBuilder('f')
73 73
                             ->orderBy('f.path', 'ASC');
74 74
                     }, 'choice_label' => 'indentedName', 'multiple' => false,
75 75
                     'placeholder' => 'gestock.settings.diverse.choice_family', 'empty_data' => null,
76
-                    'label' => 'gestock.settings.diverse.familylog', 'attr'  => ['class' => 'form-control',],])
76
+                    'label' => 'gestock.settings.diverse.familylog', 'attr'  => ['class' => 'form-control', ], ])
77 77
             ->addEventSubscriber(new AddSaveEditFieldSubscriber())
78 78
         ;
79 79
     }
80 80
 
81 81
     public function configureOptions(OptionsResolver $resolver)
82 82
     {
83
-        $resolver->setDefaults(['data_class' => 'App\Entity\Settings\Article',]);
83
+        $resolver->setDefaults(['data_class' => 'App\Entity\Settings\Article', ]);
84 84
     }
85 85
 
86 86
     public function getBlockPrefix()
Please login to merge, or discard this patch.
src/Form/Type/Settings/ArticleReassignType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@
 block discarded – undo
34 34
     {
35 35
         $builder->addEventListener(
36 36
             FormEvents::PRE_SET_DATA,
37
-            function (FormEvent $event) {
37
+            function(FormEvent $event) {
38 38
                 $form = $event->getForm();
39 39
                 $articles = $event->getData();
40 40
 
41 41
                 $formOptions = ['class' => 'App:Settings\Supplier', 'query_builder' =>
42
-                    function (EntityRepository $er) use ($articles) {
42
+                    function(EntityRepository $er) use ($articles) {
43 43
                         return $er->getSupplierForReassign($articles[0]->getSupplier());
44
-                    }, 'multiple' => false, 'empty_data' => null,];
44
+                    }, 'multiple' => false, 'empty_data' => null, ];
45 45
                 foreach ($articles as $article) {
46 46
                     $form->add('supplier-'.$article->getId(), EntityType::class, $formOptions);
47 47
                 }
Please login to merge, or discard this patch.
src/Form/Type/Settings/Diverse/MaterialType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,17 +36,17 @@  discard block
 block discarded – undo
36 36
     public function buildForm(FormBuilderInterface $builder, array $options)
37 37
     {
38 38
         $builder
39
-            ->add('name', TextType::class, ['label' => 'gestock.name', 'attr'  => ['class' => 'half'],])
39
+            ->add('name', TextType::class, ['label' => 'gestock.name', 'attr'  => ['class' => 'half'], ])
40 40
             ->add('unitWorking', EntityType::class, ['class' => 'App:Settings\Diverse\Unit',
41 41
                 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitworking',
42
-                'attr'  => ['class' => 'half',],])
43
-            ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif',])
44
-            ->add('multiple', CheckboxType::class, ['required' => false, 'label' => 'gestock.multiple',])
42
+                'attr'  => ['class' => 'half', ], ])
43
+            ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif', ])
44
+            ->add('multiple', CheckboxType::class, ['required' => false, 'label' => 'gestock.multiple', ])
45 45
             ->add('articles', EntityType::class, ['class' => 'App:Settings\Article',
46
-                    'query_builder' => function (EntityRepository $er) {
46
+                    'query_builder' => function(EntityRepository $er) {
47 47
                         return $er->createQueryBuilder('a')->orderBy('a.name', 'ASC');
48 48
                     }, 'choice_label' => 'name', 'multiple' => true, 'expanded' => true, 'label' => 'title',
49
-                        'translation_domain' => 'gs_articles',])
49
+                        'translation_domain' => 'gs_articles', ])
50 50
             ->addEventSubscriber(new AddSaveEditFieldSubscriber())
51 51
         ;
52 52
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function configureOptions(OptionsResolver $resolver)
55 55
     {
56 56
         $resolver->setDefaults(
57
-            ['data_class' => 'App\Entity\Settings\Diverse\Material',]
57
+            ['data_class' => 'App\Entity\Settings\Diverse\Material', ]
58 58
         );
59 59
     }
60 60
 
Please login to merge, or discard this patch.
src/Form/Type/Settings/Diverse/UnitType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
     {
34 34
         $builder
35 35
             ->add('name', TextType::class, ['label' => 'gestock.settings.diverse.unitstorage',
36
-                'attr' => ['class' => 'half',],])
37
-            ->add('abbr', TextType::class, ['label' => 'gestock.abbr', 'attr' => ['class' => 'half',],])
36
+                'attr' => ['class' => 'half', ], ])
37
+            ->add('abbr', TextType::class, ['label' => 'gestock.abbr', 'attr' => ['class' => 'half', ], ])
38 38
             ->addEventSubscriber(new AddSaveEditFieldSubscriber());
39 39
     }
40 40
 
41 41
     public function configureOptions(OptionsResolver $resolver)
42 42
     {
43
-        $resolver->setDefaults(['data_class' => 'App\Entity\Settings\Diverse\Unit',]);
43
+        $resolver->setDefaults(['data_class' => 'App\Entity\Settings\Diverse\Unit', ]);
44 44
     }
45 45
 
46 46
     public function getBlockPrefix()
Please login to merge, or discard this patch.
src/Form/Type/Settings/Diverse/FamilyLogType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@
 block discarded – undo
34 34
     public function buildForm(FormBuilderInterface $builder, array $options)
35 35
     {
36 36
         $builder
37
-            ->add('name', TextType::class, ['label' => 'gestock.settings.diverse.family',])
37
+            ->add('name', TextType::class, ['label' => 'gestock.settings.diverse.family', ])
38 38
             ->add(
39 39
                 'parent',
40 40
                 EntityType::class,
41 41
                 array(
42 42
                     'class' => 'App:Settings\Diverse\FamilyLog',
43
-                    'query_builder' => function (EntityRepository $er) {
43
+                    'query_builder' => function(EntityRepository $er) {
44 44
                         return $er->createQueryBuilder('f')
45 45
                             ->orderBy('f.path', 'ASC');
46 46
                     },
Please login to merge, or discard this patch.
src/Form/Type/Settings/Diverse/TvaType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             ->add(
38 38
                 'rate',
39 39
                 PercentType::class,
40
-                ['scale' => 2, 'type' => 'fractional', 'label' => 'gestock.settings.diverse.vat',]
40
+                ['scale' => 2, 'type' => 'fractional', 'label' => 'gestock.settings.diverse.vat', ]
41 41
             )
42 42
             ->addEventSubscriber(new AddSaveEditFieldSubscriber());
43 43
     }
Please login to merge, or discard this patch.
src/Form/Type/Settings/SupplierType.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -38,53 +38,53 @@
 block discarded – undo
38 38
     public function buildForm(FormBuilderInterface $builder, array $options)
39 39
     {
40 40
         $builder
41
-            ->add('name', TextType::class, ['label' => 'gestock.name', 'attr'  => ['class' => 'form-control',],])
41
+            ->add('name', TextType::class, ['label' => 'gestock.name', 'attr'  => ['class' => 'form-control', ], ])
42 42
             ->add('address', TextType::class, ['label' => 'gestock.address',
43
-                'attr'  => ['placeholder' => 'gestock.address', 'class' => 'form-control',],])
43
+                'attr'  => ['placeholder' => 'gestock.address', 'class' => 'form-control', ], ])
44 44
             ->add('zipcode', TextType::class, ['attr' => ['placeholder' => 'gestock.zipcode',
45
-                'class' => 'form-control half',],])
45
+                'class' => 'form-control half', ], ])
46 46
             ->add('town', TextType::class, ['attr'  => ['placeholder' => 'gestock.town',
47
-                'class' => 'form-control half',],])
47
+                'class' => 'form-control half', ], ])
48 48
             ->add('phone', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
49
-                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',],
50
-                    'preferred_country_choices' => ['FR',], 'label' => 'gestock.phone',])
49
+                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
50
+                    'preferred_country_choices' => ['FR', ], 'label' => 'gestock.phone', ])
51 51
             ->add('fax', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
52
-                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',],
53
-                    'preferred_country_choices' => ['FR',], 'label' => 'gestock.fax',])
54
-            ->add('mail', EmailType::class, ['label' => 'gestock.mail', 'attr'  => ['class' => 'form-control',]])
55
-            ->add('contact', TextType::class, ['label' => 'gestock.contact', 'attr'  => ['class' => 'form-control',],])
52
+                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
53
+                    'preferred_country_choices' => ['FR', ], 'label' => 'gestock.fax', ])
54
+            ->add('mail', EmailType::class, ['label' => 'gestock.mail', 'attr'  => ['class' => 'form-control', ]])
55
+            ->add('contact', TextType::class, ['label' => 'gestock.contact', 'attr'  => ['class' => 'form-control', ], ])
56 56
             ->add('gsm', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
57
-                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',],
58
-                    'preferred_country_choices' => ['FR',], 'label' => 'gestock.gsm',])
57
+                    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
58
+                    'preferred_country_choices' => ['FR', ], 'label' => 'gestock.gsm', ])
59 59
             /**
60 60
              * Delivery time A = day of order, (B, C, D, E) = day of delivery
61 61
              */
62 62
             ->add('delaydeliv', ChoiceType::class, ['choices' => ['form.atob' => 1, 'form.atoc' => 2,
63
-                'form.atod' => 3, 'form.atoe' => 4,], 'choices_as_values' => true, 'label' => 'settings.delay',
64
-                    'translation_domain' => 'gs_suppliers', 'attr'  => ['class' => 'form-control half',]])
63
+                'form.atod' => 3, 'form.atoe' => 4, ], 'choices_as_values' => true, 'label' => 'settings.delay',
64
+                    'translation_domain' => 'gs_suppliers', 'attr'  => ['class' => 'form-control half', ]])
65 65
             /**
66 66
              * Choice of the day of the week for OrdersChoice of the day of the week for Cmdes
67 67
              * Numbering see http://php.net/manual/en/function.date.php format 'N'
68 68
              */
69 69
             ->add('orderdate', ChoiceType::class, ['choices' => ['Monday' => 1, 'Tuesday' => 2, 'Wednesday' => 3,
70
-                'Thursday' => 4, 'Friday' => 5, 'Saturday' => 6, 'Sunday' => 7,], 'choices_as_values' => true,
70
+                'Thursday' => 4, 'Friday' => 5, 'Saturday' => 6, 'Sunday' => 7, ], 'choices_as_values' => true,
71 71
                 'choice_translation_domain' => true, 'translation_domain' => 'messages', 'label' => 'day_order',
72
-                'attr'  => ['class' => 'form-control',], 'expanded' => true, 'multiple' => true,])
72
+                'attr'  => ['class' => 'form-control', ], 'expanded' => true, 'multiple' => true, ])
73 73
             ->add('familyLog', EntityType::class, ['class' => 'App:Settings\Diverse\FamilyLog',
74
-                    'query_builder' => function (EntityRepository $er) {
74
+                    'query_builder' => function(EntityRepository $er) {
75 75
                         return $er->createQueryBuilder('f')
76 76
                             ->orderBy('f.path', 'ASC');
77 77
                     }, 'choice_label' => 'indentedName', 'multiple' => false,
78 78
                     'placeholder' => 'gestock.settings.diverse.choice_family', 'empty_data' => null,
79
-                    'label' => 'gestock.settings.diverse.familylog', 'attr'  => ['class' => 'form-control half',]])
80
-            ->add('active', HiddenType::class, ['data' => true,])
79
+                    'label' => 'gestock.settings.diverse.familylog', 'attr'  => ['class' => 'form-control half', ]])
80
+            ->add('active', HiddenType::class, ['data' => true, ])
81 81
             ->addEventSubscriber(new AddSaveEditFieldSubscriber())
82 82
         ;
83 83
     }
84 84
 
85 85
     public function configureOptions(OptionsResolver $resolver)
86 86
     {
87
-        $resolver->setDefaults(['data_class' => 'App\Entity\Settings\Supplier',]);
87
+        $resolver->setDefaults(['data_class' => 'App\Entity\Settings\Supplier', ]);
88 88
     }
89 89
 
90 90
     public function getBlockPrefix()
Please login to merge, or discard this patch.
src/Form/Type/Staff/GroupType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function buildForm(FormBuilderInterface $builder, array $options)
33 33
     {
34 34
         $builder
35
-            ->add('name', null, ['label' => 'form.group_name', 'translation_domain' => 'FOSUserBundle',])
35
+            ->add('name', null, ['label' => 'form.group_name', 'translation_domain' => 'FOSUserBundle', ])
36 36
             ->addEventSubscriber(new AddSaveEditFieldSubscriber())
37 37
         ;
38 38
     }
Please login to merge, or discard this patch.