Completed
Push — develop ( fffb13 )
by Laurent
17:36
created
src/AppBundle/Form/Type/Settings/CompanyType.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,20 +35,20 @@
 block discarded – undo
35 35
     public function buildForm(FormBuilderInterface $builder, array $options)
36 36
     {
37 37
         $builder
38
-            ->add('name', TextType::class, ['label' => 'gestock.settings.company.name',])
39
-            ->add('status', TextType::class, ['label' => 'gestock.settings.company.status',])
40
-            ->add('address', TextType::class, ['label' => 'gestock.address',])
41
-            ->add('zipcode', TextType::class, ['label' => 'gestock.zipcode',])
38
+            ->add('name', TextType::class, ['label' => 'gestock.settings.company.name', ])
39
+            ->add('status', TextType::class, ['label' => 'gestock.settings.company.status', ])
40
+            ->add('address', TextType::class, ['label' => 'gestock.address', ])
41
+            ->add('zipcode', TextType::class, ['label' => 'gestock.zipcode', ])
42 42
             ->add('town', TextType::class, ['label' => 'gestock.town', 'attr' => [
43 43
                 'onBlur' => 'this.value=this.value.toUpperCase();',
44 44
                 'onFocus' => 'this.value=this.value.toUpperCase();',
45
-                'onKeyup' => 'this.value=this.value.toUpperCase();',]])
45
+                'onKeyup' => 'this.value=this.value.toUpperCase();', ]])
46 46
             ->add('phone', 'tel', ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
47
-                'label' => 'gestock.phone',])
47
+                'label' => 'gestock.phone', ])
48 48
             ->add('fax', 'tel', ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
49
-                'label' => 'gestock.fax',])
50
-            ->add('mail', EmailType::class, ['trim' => true, 'label' => 'gestock.mail',])
51
-            ->add('contact', TextType::class, ['label' => 'gestock.contact',])
49
+                'label' => 'gestock.fax', ])
50
+            ->add('mail', EmailType::class, ['trim' => true, 'label' => 'gestock.mail', ])
51
+            ->add('contact', TextType::class, ['label' => 'gestock.contact', ])
52 52
             ->add('gsm', 'tel', ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL,
53 53
                 'label' => 'gestock.gsm']);
54 54
     }
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/Settings/ArticleType.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -40,40 +40,40 @@  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.title_item', 'attr'  => ['class' => 'form-control',],])
43
+            ->add('name', TextType::class, ['label' => 'gestock.title_item', 'attr'  => ['class' => 'form-control', ], ])
44 44
             ->add('packaging', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'settings.packaging',
45
-                'translation_domain' => 'gs_articles', 'attr'  => ['class' => 'form-control',],])
45
+                'translation_domain' => 'gs_articles', 'attr'  => ['class' => 'form-control', ], ])
46 46
             ->add('price', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR',
47 47
                 'label' => 'settings.price', 'translation_domain' => 'gs_articles',
48
-                'attr'  => ['class' => 'form-control',],])
48
+                'attr'  => ['class' => 'form-control', ], ])
49 49
             ->add('tva', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\Tva', 'choice_label' => 'name',
50 50
                 'multiple' => false, 'label' => 'gestock.settings.diverse.vat',
51
-                'attr'  => ['class' => 'form-control',],])
52
-            ->add('quantity', HiddenType::class, ['data' => 0,])
51
+                'attr'  => ['class' => 'form-control', ], ])
52
+            ->add('quantity', HiddenType::class, ['data' => 0, ])
53 53
             ->add('minstock', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'settings.stock_alert',
54
-                'translation_domain' => 'gs_articles', 'attr'  => ['class' => 'form-control',],])
55
-            ->add('active', HiddenType::class, ['data' => true,])
54
+                'translation_domain' => 'gs_articles', 'attr'  => ['class' => 'form-control', ], ])
55
+            ->add('active', HiddenType::class, ['data' => true, ])
56 56
             ->add('slug', HiddenType::class)
57 57
             ->add('supplier', EntityType::class, ['class' => 'AppBundle:Settings\Supplier',
58
-                    'query_builder' => function (EntityRepository $er) {
58
+                    'query_builder' => function(EntityRepository $er) {
59 59
                         return $er->createQueryBuilder('s')
60 60
                             ->where('s.active = 1');
61 61
                     }, 'choice_label' => 'name', 'multiple' => false, 'placeholder' => 'form.choice_supplier',
62 62
                     'label' => 'title', 'translation_domain' => 'gs_suppliers', 'empty_data' => null,
63
-                    'attr'  => ['class' => 'form-control',],])
63
+                    'attr'  => ['class' => 'form-control', ], ])
64 64
             ->add('unitStorage', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\UnitStorage',
65 65
                 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitstorage',
66
-                'attr'  => ['class' => 'form-control',],])
66
+                'attr'  => ['class' => 'form-control', ], ])
67 67
             ->add('zoneStorages', EntityType::class, ['class' => 'AppBundle: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' => 'AppBundle: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
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function configureOptions(OptionsResolver $resolver)
85 85
     {
86
-        $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Article',]);
86
+        $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Article', ]);
87 87
     }
88 88
 
89 89
     /**
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/Settings/ArticleReassignType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@
 block discarded – undo
37 37
     {
38 38
         $builder->addEventListener(
39 39
             FormEvents::PRE_SET_DATA,
40
-            function (FormEvent $event) {
40
+            function(FormEvent $event) {
41 41
                 $form = $event->getForm();
42 42
                 $articles = $event->getData();
43 43
 
44 44
                 $formOptions = ['class' => 'AppBundle:Settings\Supplier', 'query_builder' =>
45
-                    function (EntityRepository $er) use ($articles) {
45
+                    function(EntityRepository $er) use ($articles) {
46 46
                         return $er->getSupplierForReassign($articles[0]->getSupplier());
47
-                    }, 'multiple' => false, 'empty_data' => null,];
47
+                    }, 'multiple' => false, 'empty_data' => null, ];
48 48
                 foreach ($articles as $article) {
49 49
                     $form->add('supplier-'.$article->getId(), EntityType::class, $formOptions);
50 50
                 }
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/Settings/Diverse/FamilyLogType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 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.diverse.family',])
40
+            ->add('name', TextType::class, ['label' => 'gestock.settings.diverse.family', ])
41 41
             ->add(
42 42
                 'parent',
43 43
                 EntityType::class,
44 44
                 array(
45 45
                     'class' => 'AppBundle:Settings\Diverse\FamilyLog',
46
-                    'query_builder' => function (EntityRepository $er) {
46
+                    'query_builder' => function(EntityRepository $er) {
47 47
                         return $er->createQueryBuilder('f')
48 48
                             ->orderBy('f.path', 'ASC');
49 49
                     },
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/Settings/Diverse/MaterialType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,17 +39,17 @@  discard block
 block discarded – undo
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('unitStorage', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\UnitStorage',
44 44
                 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitstorage',
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AppBundle/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/AppBundle/Form/Type/Orders/OrdersEditType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                 EntityType::class,
43 43
                 array(
44 44
                     'class' => 'AppBundle:Supplier',
45
-                    'query_builder' => function (EntityRepository $er) {
45
+                    'query_builder' => function(EntityRepository $er) {
46 46
                         return $er->createQueryBuilder('s')
47 47
                             ->where('s.active = 1');
48 48
                     },
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                     'label' => 'title',
54 54
                     'translation_domain' => 'gs_suppliers',
55 55
                     'empty_data' => null,
56
-                    'attr'  => ['class' => 'form-control', 'readonly' => true,],
56
+                    'attr'  => ['class' => 'form-control', 'readonly' => true, ],
57 57
                 )
58 58
             )
59 59
             ->add(
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                     'format' => 'EEEE dd MMMM yyyy',
68 68
                     'html5' => false,
69 69
                     'input' => 'datetime',
70
-                    'attr'  => ['class' => 'form-control', 'readonly' => true,],
70
+                    'attr'  => ['class' => 'form-control', 'readonly' => true, ],
71 71
                 )
72 72
             )
73 73
             ->add(
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                     'format' => 'EEEE dd MMMM yyyy',
82 82
                     'html5' => false,
83 83
                     'input' => 'datetime',
84
-                    'attr'  => ['class' => 'form-control', 'readonly' => true,],
84
+                    'attr'  => ['class' => 'form-control', 'readonly' => true, ],
85 85
                 )
86 86
             )
87 87
             ->add(
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/Orders/OrdersArticlesType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                     'empty_data' => '0,000',
69 69
                     'label' => 'settings.quantity',
70 70
                     'translation_domain' => 'gs_articles',
71
-                    'attr'=> ['class' => 'form-control text-right',],
71
+                    'attr'=> ['class' => 'form-control text-right', ],
72 72
                 )
73 73
             )
74 74
             ->add(
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                     'currency' => 'EUR',
93 93
                     'label' => 'settings.price',
94 94
                     'translation_domain' => 'gs_articles',
95
-                    'attr'=> ['class' => 'form-control text-right', 'readonly' => true,],
95
+                    'attr'=> ['class' => 'form-control text-right', 'readonly' => true, ],
96 96
                 )
97 97
             )
98 98
             ->add(
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                     'label' => 'seizure.total',
119 119
                     'translation_domain' => 'gs_orders',
120 120
                     'mapped' => false,
121
-                    'attr'=> ['class' => 'form-control text-right', 'readonly' => true,]
121
+                    'attr'=> ['class' => 'form-control text-right', 'readonly' => true, ]
122 122
                 )
123 123
             )
124 124
         ;
Please login to merge, or discard this patch.
src/AppBundle/Entity/Orders/Orders.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function setAmount($amount)
152 152
     {
153
-        $this->amount = (double)$amount;
153
+        $this->amount = (double) $amount;
154 154
 
155 155
         return $this;
156 156
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      */
174 174
     public function setTva($tva)
175 175
     {
176
-        $this->tva = (double)$tva;
176
+        $this->tva = (double) $tva;
177 177
 
178 178
         return $this;
179 179
     }
Please login to merge, or discard this patch.