Completed
Push — Recipes ( 630f49...c8afb0 )
by Laurent
12:15 queued 03:48
created
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.
src/Form/Type/Staff/UserFilterType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $builder
32 32
             ->add('username', 'filter_text', ['label' => 'form.username', 'translation_domain' => 'FOSUserBundle',
33
-                'attr' => ['class' => 'pull-right',],])
33
+                'attr' => ['class' => 'pull-right', ], ])
34 34
             ->add('email', 'filter_text', ['label' => 'form.email', 'translation_domain' => 'FOSUserBundle',
35
-                'attr' => ['class' => 'pull-right',],])
36
-            ->add('enabled', 'filter_boolean', ['label' => 'Autorisé',])
35
+                'attr' => ['class' => 'pull-right', ], ])
36
+            ->add('enabled', 'filter_boolean', ['label' => 'Autorisé', ])
37 37
             ->add(
38 38
                 'groups',
39 39
                 'filter_entity',
40 40
                 ['label' => 'Groupes', 'class' => 'App\Entity\Staff\Group', 'expanded' => true,
41
-                    'multiple' => true, 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
41
+                    'multiple' => true, 'apply_filter' => function(QueryInterface $filterQuery, $field, $values) {
42 42
                         $query = $filterQuery->getQueryBuilder();
43 43
                         $query->leftJoin($field, 'm');
44 44
                         // Filter results using orWhere matching ID
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public function configureOptions(OptionsResolver $resolver)
54 54
     {
55 55
         $resolver->setDefaults(['data_class' => 'App\Entity\Staff\User', 'csrf_protection' => false,
56
-            'validation_groups' => ['filter'], 'method' => 'GET',]);
56
+            'validation_groups' => ['filter'], 'method' => 'GET', ]);
57 57
     }
58 58
 
59 59
     public function getBlockPrefix()
Please login to merge, or discard this patch.
src/Form/Type/Staff/UserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 {
34 34
     public function buildForm(FormBuilderInterface $builder, array $options)
35 35
     {
36
-        $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr'  => ['class' => 'form-control'],])
36
+        $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr'  => ['class' => 'form-control'], ])
37 37
             ->add('email', EmailType::class, array(
38 38
                 'required' => false,
39 39
                 'label' => 'E-mail',
Please login to merge, or discard this patch.
src/Form/Type/Stocks/InventoryArticlesZonesType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function configureOptions(OptionsResolver $resolver)
37 37
     {
38
-        $resolver->setDefaults(['data_class' => 'App\Entity\Stocks\InventoryArticles',]);
38
+        $resolver->setDefaults(['data_class' => 'App\Entity\Stocks\InventoryArticles', ]);
39 39
     }
40 40
 
41 41
     public function getBlockPrefix()
Please login to merge, or discard this patch.
src/Form/Type/Stocks/InventoryEditType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@
 block discarded – undo
33 33
     {
34 34
         $builder
35 35
             ->remove('status')
36
-            ->add('articles', CollectionType::class, ['entry_type' => InventoryArticlesType::class,])
36
+            ->add('articles', CollectionType::class, ['entry_type' => InventoryArticlesType::class, ])
37 37
             ->add('amount', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR',
38 38
                 'label' => 'seizure.totals', 'translation_domain' => 'gs_inventories',
39
-                'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],]);
39
+                'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ]);
40 40
     }
41 41
 
42 42
     public function configureOptions(OptionsResolver $resolver)
Please login to merge, or discard this patch.
src/Form/Type/Stocks/InventoryArticlesType.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,28 +34,28 @@
 block discarded – undo
34 34
         $builder
35 35
             ->add('inventory', EntityType::class, ['class' => 'App:Stocks\Inventory', 'choice_label' => 'id',
36 36
                 'label' => 'gestock.id', 'translation_domain' => 'messages', 'empty_data' => null,
37
-                'attr'=> ['class' => 'form-control', 'readonly' => true,],])
37
+                'attr'=> ['class' => 'form-control', 'readonly' => true, ], ])
38 38
             ->add('article', EntityType::class, ['class' => 'App:Settings\Article', 'choice_label' => 'name',
39 39
                 'label' => 'title', 'translation_domain' => 'gs_articles', 'empty_data' => null,
40
-                'attr'=> ['class' => 'form-control', 'readonly' => true,],])
40
+                'attr'=> ['class' => 'form-control', 'readonly' => true, ], ])
41 41
             ->add('quantity', NumberType::class, ['scale' => 3, 'grouping' => true, 'empty_data' => '0,000',
42 42
                     'label' => 'settings.quantity', 'translation_domain' => 'gs_articles',
43
-                    'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],])
43
+                    'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ])
44 44
             ->add('realstock', NumberType::class, ['scale' => 3, 'grouping' => true, 'empty_data' => '0,000',
45 45
                     'label' => 'seizure.realstock', 'translation_domain' => 'gs_inventories',
46
-                    'attr'=> ['class' => 'inventory form-control',],])
46
+                    'attr'=> ['class' => 'inventory form-control', ], ])
47 47
             ->add('unitStorage', EntityType::class, ['class' => 'App:Settings\Diverse\Unit',
48 48
                     'choice_label' => 'abbr', 'label' => 'gestock.settings.diverse.unitstorage', 'empty_data' => null,
49
-                    'attr'=> ['class' => 'form-control', 'readonly' => true,],])
49
+                    'attr'=> ['class' => 'form-control', 'readonly' => true, ], ])
50 50
             ->add('price', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR',
51 51
                     'label' => 'settings.price', 'translation_domain' => 'gs_articles',
52
-                    'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],])
52
+                    'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ])
53 53
             ->add('total', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR',
54 54
                     'label' => 'seizure.total', 'translation_domain' => 'gs_inventories', 'mapped' => false,
55
-                    'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],])
55
+                    'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ])
56 56
             ->add('gap', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'seizure.gap',
57 57
                     'translation_domain' => 'gs_inventories', 'mapped' => false,
58
-                    'attr'=> ['class' => 'inventory form-control', 'readonly' =>true,],]);
58
+                    'attr'=> ['class' => 'inventory form-control', 'readonly' =>true, ], ]);
59 59
     }
60 60
 
61 61
     public function configureOptions(OptionsResolver $resolver)
Please login to merge, or discard this patch.
src/Form/Type/Stocks/InventoryType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $builder
34 34
             ->add('date', DateType::class, ['label' => 'gestock.date', 'widget' => 'single_text',
35 35
                 'format' => 'dd MMM yyyy', 'html5' => false, 'input' => 'datetime',
36
-                'attr'  => ['class' => 'form-control',],])
36
+                'attr'  => ['class' => 'form-control', ], ])
37 37
             ->add('status', HiddenType::class)
38 38
             ->add('amount', HiddenType::class)
39 39
         ;
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function configureOptions(OptionsResolver $resolver)
43 43
     {
44
-        $resolver->setDefaults(['data_class' => 'App\Entity\Stocks\Inventory',]);
44
+        $resolver->setDefaults(['data_class' => 'App\Entity\Stocks\Inventory', ]);
45 45
     }
46 46
 
47 47
     public function getBlockPrefix()
Please login to merge, or discard this patch.