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