Completed
Push — Recipes ( 931021...804a32 )
by Laurent
03:33
created
src/AppBundle/Form/Type/UserFilterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
                 'class' => 'AppBundle\Entity\Group',
23 23
                 'expanded' => true,
24 24
                 'multiple' => true,
25
-                'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
25
+                'apply_filter' => function(QueryInterface $filterQuery, $field, $values) {
26 26
                     $query = $filterQuery->getQueryBuilder();
27 27
                     $query->leftJoin($field, 'm');
28 28
                     // Filter results using orWhere matching ID
Please login to merge, or discard this patch.
src/AppBundle/Menu/RequestVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         if ($item->getUri() === $request->getRequestUri()) {
23 23
             // URL's completely match
24 24
             return true;
25
-        } elseif ($item->getUri() !== $request->getBaseUrl() . '/' &&
25
+        } elseif ($item->getUri() !== $request->getBaseUrl().'/' &&
26 26
             substr($request->getRequestUri(), 0, strlen($item->getUri()))
27 27
             === $item->getUri()) {
28 28
             // URL isn't just "/" and the first part of the URL match
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/InventoryArticlesType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                     'label' => 'gestock.id',
45 45
                     'translation_domain' => 'messages',
46 46
                     'empty_data' => null,
47
-                    'attr'=> ['class' => 'form-control', 'readonly' => true,],
47
+                    'attr'=> ['class' => 'form-control', 'readonly' => true, ],
48 48
                 )
49 49
             )
50 50
             ->add(
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                     'empty_data' => '0,000',
81 81
                     'label' => 'seizure.realstock',
82 82
                     'translation_domain' => 'gs_inventories',
83
-                    'attr'=> ['class' => 'inventory form-control',]
83
+                    'attr'=> ['class' => 'inventory form-control', ]
84 84
                 )
85 85
             )
86 86
             ->add(
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/InventoryEditZonesType.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
         parent::buildForm($builder, $options);
38 38
         $builder
39 39
             ->remove('articles')
40
-            ->add('articles', CollectionType::class, ['entry_type' => InventoryArticlesZonesType::class,]);
40
+            ->add('articles', CollectionType::class, ['entry_type' => InventoryArticlesZonesType::class, ]);
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
src/AppBundle/Controller/ArticleController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
      *
190 190
      * @param \Symfony\Component\HttpFoundation\Request $request  Form request
191 191
      * @param \AppBundle\Entity\Supplier                $supplier Supplier to desactivate
192
-     * @return array
192
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse
193 193
      */
194 194
     public function changeAction(Request $request, Supplier $supplier)
195 195
     {
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/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/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/OrdersType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
                 EntityType::class,
40 40
                 array(
41 41
                     'class' => 'AppBundle:Supplier',
42
-                    'query_builder' => function (EntityRepository $er) {
42
+                    'query_builder' => function(EntityRepository $er) {
43 43
                         return $er->createQueryBuilder('s')
44 44
                             ->where('s.active = 1');
45 45
                     },
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/ArticleReassignType.php 1 patch
Spacing   +2 added lines, -2 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 = array(
45 45
                     'class' => 'AppBundle:Supplier',
46 46
                     'query_builder' =>
47
-                    function (EntityRepository $er) use ($articles) {
47
+                    function(EntityRepository $er) use ($articles) {
48 48
                         return $er->getSupplierForReassign($articles[0]->getSupplier());
49 49
                     },
50 50
                     'multiple' => false,
Please login to merge, or discard this patch.