Completed
Push — Recipes ( 1bfbc9...164379 )
by Laurent
02:30
created
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/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/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.
src/AppBundle/Form/Type/Orders/OrdersType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $builder
37 37
             ->add('supplier', EntityType::class, ['class' => 'AppBundle:Settings\Supplier',
38
-                'query_builder' => function (EntityRepository $er) {
38
+                'query_builder' => function(EntityRepository $er) {
39 39
                     return $er->createQueryBuilder('s')->where('s.active = 1');
40 40
                 }, 'required' => false, 'choice_label' => 'name', 'multiple' => false,
41 41
                 'placeholder' => 'form.choice_supplier', 'label' => 'title', 'translation_domain' => 'gs_suppliers',
42
-                'empty_data' => null, 'attr'  => ['class' => 'form-control',],]);
42
+                'empty_data' => null, 'attr'  => ['class' => 'form-control', ], ]);
43 43
     }
44 44
 
45 45
     /**
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function configureOptions(OptionsResolver $resolver)
49 49
     {
50
-        $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Orders\Orders',]);
50
+        $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Orders\Orders', ]);
51 51
     }
52 52
 
53 53
     /**
Please login to merge, or discard this patch.
src/AppBundle/Repository/Settings/SupplierRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             ->where($query->expr()->neq('s.name', ':idname'))
71 71
             ->andWhere('s.familyLog = :flname')
72 72
             ->andWhere('s.active = true')
73
-            ->setParameters(['idname' => $supplier->getName(), 'flname' => $supplier->getFamilyLog(),])
73
+            ->setParameters(['idname' => $supplier->getName(), 'flname' => $supplier->getFamilyLog(), ])
74 74
             ->orderBy('s.name', 'ASC');
75 75
 
76 76
         return $query;
Please login to merge, or discard this patch.
src/AppBundle/Controller/Orders/OrdersController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $orders = new Orders();
112 112
         $form = $this->createForm(OrdersType::class, $orders);
113
-        $return = ['orders' => $orders, 'form' => $form->createView(),];
113
+        $return = ['orders' => $orders, 'form' => $form->createView(), ];
114 114
         $form->handleRequest($request);
115 115
         $supplier = $orders->getSupplier();
116 116
         $articles = $etm->getRepository('AppBundle:Settings\Article')->getArticleFromSupplier($supplier->getId());
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
     public function editAction(Orders $orders)
149 149
     {
150 150
         $editForm = $this->createForm(OrdersEditType::class, $orders, ['action' => $this
151
-            ->generateUrl('orders_update', ['id' => $orders->getId()]), 'method' => 'PUT',]);
151
+            ->generateUrl('orders_update', ['id' => $orders->getId()]), 'method' => 'PUT', ]);
152 152
         $deleteForm = $this->createDeleteForm($orders->getId(), 'orders_delete');
153 153
 
154 154
         return ['orders' => $orders, 'edit_form' => $editForm->createView(),
155
-            'delete_form' => $deleteForm->createView(),];
155
+            'delete_form' => $deleteForm->createView(), ];
156 156
     }
157 157
 
158 158
     /**
@@ -165,12 +165,12 @@  discard block
 block discarded – undo
165 165
     public function updateAction(Orders $orders, Request $request)
166 166
     {
167 167
         $editForm = $this->createForm(OrdersEditType::class, $orders, ['action' => $this
168
-            ->generateUrl('orders_update', ['id' => $orders->getId()]), 'method' => 'PUT',]);
168
+            ->generateUrl('orders_update', ['id' => $orders->getId()]), 'method' => 'PUT', ]);
169 169
         $deleteForm = $this->createDeleteForm($orders->getId(), 'orders_delete');
170 170
         $editForm->handleRequest($request);
171 171
 
172 172
         $return = ['orders' => $orders, 'edit_form'   => $editForm->createView(),
173
-            'delete_form' => $deleteForm->createView(),];
173
+            'delete_form' => $deleteForm->createView(), ];
174 174
         
175 175
         if ($editForm->isValid()) {
176 176
             $this->getDoctrine()->getManager()->flush();
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/Stocks/InventoryEditType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@
 block discarded – undo
36 36
     {
37 37
         $builder
38 38
             ->remove('status')
39
-            ->add('articles', CollectionType::class, ['entry_type' => InventoryArticlesType::class,])
39
+            ->add('articles', CollectionType::class, ['entry_type' => InventoryArticlesType::class, ])
40 40
             ->add('amount', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR',
41 41
                 'label' => 'seizure.totals', 'translation_domain' => 'gs_inventories',
42
-                'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],]);
42
+                'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ]);
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/Stocks/InventoryArticlesType.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,28 +37,28 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.