Completed
Push — master ( cb69ef...25c402 )
by Laurent
26s
created
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.
src/AppBundle/Form/Type/UserType.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 buildForm(FormBuilderInterface $builder, array $options)
37 37
     {
38
-        $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr'  => ['class' => 'form-control'],])
38
+        $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr'  => ['class' => 'form-control'], ])
39 39
             ->add('email', EmailType::class, array(
40 40
                 'required' => false,
41 41
                 'label' => 'E-mail',
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/InventoryType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
                     'format' => 'dd MMM yyyy',
44 44
                     'html5' => false,
45 45
                     'input' => 'datetime',
46
-                    'attr'  => ['class' => 'form-control',],
46
+                    'attr'  => ['class' => 'form-control', ],
47 47
                 )
48 48
             )
49 49
             ->add('status', HiddenType::class)
Please login to merge, or discard this patch.
src/AppBundle/Entity/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/Controller/GroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
         $form = $this->createForm(GroupType::class, $group);
101 101
         AbstractController::addRolesAction($form, $group);
102 102
         $form->handleRequest($request);
103
-        $return = ['group' => $group, 'form' => $form->createView(),];
103
+        $return = ['group' => $group, 'form' => $form->createView(), ];
104 104
 
105 105
         if ($form->isValid()) {
106 106
             $etm = $this->getDoctrine()->getManager();
Please login to merge, or discard this patch.
src/AppBundle/Controller/UserController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
     public function createAction(Request $request)
100 100
     {
101 101
         $user = new User();
102
-        $form = $this->createForm(UserType::class, $user, ['action' => $this->generateUrl('user_create'),]);
102
+        $form = $this->createForm(UserType::class, $user, ['action' => $this->generateUrl('user_create'), ]);
103 103
         $form->handleRequest($request);
104
-        $return = ['user' => $user, 'form'   => $form->createView(),];
104
+        $return = ['user' => $user, 'form'   => $form->createView(), ];
105 105
 
106 106
         if ($form->isValid()) {
107 107
             $user = $this->getRoles($user);
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $editForm->handleRequest($request);
168 168
         $return = ['user' => $user,
169 169
             'edit_form' => $editForm->createView(),
170
-            'delete_form' => $deleteForm->createView(),];
170
+            'delete_form' => $deleteForm->createView(), ];
171 171
 
172 172
         if ($editForm->isValid()) {
173 173
             $user = $this->getRoles($user);
Please login to merge, or discard this patch.
src/AppBundle/Controller/DeliveriesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $etm = $this->getDoctrine()->getManager();
43 43
         $item = $this->container->getParameter('knp_paginator.page_range');
44 44
         $qbd = $etm->getRepository('AppBundle:Orders')->createQueryBuilder('o');
45
-        $qbd->where('o.delivdate <= ' . date('Y-m-d'));
45
+        $qbd->where('o.delivdate <= '.date('Y-m-d'));
46 46
         $qbd->andWhere('o.status = 1');
47 47
         
48 48
         $paginator = $this->get('knp_paginator')->paginate($qbd, $request->query->get('page', 1), $item);
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/SupplierType.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -43,25 +43,25 @@  discard block
 block discarded – undo
43 43
             ->add(
44 44
                 'name',
45 45
                 TextType::class,
46
-                ['label' => 'gestock.name', 'attr'  => ['class' => 'form-control',],]
46
+                ['label' => 'gestock.name', 'attr'  => ['class' => 'form-control', ], ]
47 47
             )
48 48
             ->add(
49 49
                 'address',
50 50
                 TextType::class,
51 51
                 array(
52 52
                     'label' => 'gestock.address',
53
-                    'attr'  => ['placeholder' => 'gestock.address', 'class' => 'form-control',],
53
+                    'attr'  => ['placeholder' => 'gestock.address', 'class' => 'form-control', ],
54 54
                 )
55 55
             )
56 56
             ->add(
57 57
                 'zipcode',
58 58
                 TextType::class,
59
-                ['attr'  => ['placeholder' => 'gestock.zipcode', 'class' => 'form-control half',],]
59
+                ['attr'  => ['placeholder' => 'gestock.zipcode', 'class' => 'form-control half', ], ]
60 60
             )
61 61
             ->add(
62 62
                 'town',
63 63
                 TextType::class,
64
-                ['attr'  => ['placeholder' => 'gestock.town', 'class' => 'form-control half',],]
64
+                ['attr'  => ['placeholder' => 'gestock.town', 'class' => 'form-control half', ], ]
65 65
             )
66 66
             ->add(
67 67
                 'phone',
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
                     'default_region' => 'FR',
71 71
                     'format' => PhoneNumberFormat::NATIONAL,
72 72
                     'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE,
73
-                    'country_choices' => ['FR', 'GB', 'DE', 'IT',],
74
-                    'preferred_country_choices' => ['FR',],
73
+                    'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
74
+                    'preferred_country_choices' => ['FR', ],
75 75
                     'label' => 'gestock.phone',
76 76
                 )
77 77
             )
@@ -82,21 +82,21 @@  discard block
 block discarded – undo
82 82
                     'default_region' => 'FR',
83 83
                     'format' => PhoneNumberFormat::NATIONAL,
84 84
                     'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE,
85
-                    'country_choices' => ['FR', 'GB', 'DE', 'IT',],
86
-                    'preferred_country_choices' => ['FR',],
85
+                    'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
86
+                    'preferred_country_choices' => ['FR', ],
87 87
                     'label' => 'gestock.fax',
88
-                    'attr'  => ['class' => 'form-control',]
88
+                    'attr'  => ['class' => 'form-control', ]
89 89
                 )
90 90
             )
91 91
             ->add(
92 92
                 'mail',
93 93
                 EmailType::class,
94
-                ['label' => 'gestock.mail', 'attr'  => ['class' => 'form-control',]]
94
+                ['label' => 'gestock.mail', 'attr'  => ['class' => 'form-control', ]]
95 95
             )
96 96
             ->add(
97 97
                 'contact',
98 98
                 TextType::class,
99
-                ['label' => 'gestock.contact', 'attr'  => ['class' => 'form-control',],]
99
+                ['label' => 'gestock.contact', 'attr'  => ['class' => 'form-control', ], ]
100 100
             )
101 101
             ->add(
102 102
                 'gsm',
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
                     'default_region' => 'FR',
106 106
                     'format' => PhoneNumberFormat::NATIONAL,
107 107
                     'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE,
108
-                    'country_choices' => ['FR', 'GB', 'DE', 'IT',],
109
-                    'preferred_country_choices' => ['FR',],
108
+                    'country_choices' => ['FR', 'GB', 'DE', 'IT', ],
109
+                    'preferred_country_choices' => ['FR', ],
110 110
                     'label' => 'gestock.gsm',
111
-                    'attr'  => ['class' => 'form-control',]
111
+                    'attr'  => ['class' => 'form-control', ]
112 112
                 )
113 113
             )
114 114
             /**
@@ -119,11 +119,11 @@  discard block
 block discarded – undo
119 119
                 'delaydeliv',
120 120
                 ChoiceType::class,
121 121
                 array(
122
-                    'choices' => ['form.atob' => 1, 'form.atoc' => 2, 'form.atod' => 3, 'form.atoe' => 4,],
122
+                    'choices' => ['form.atob' => 1, 'form.atoc' => 2, 'form.atod' => 3, 'form.atoe' => 4, ],
123 123
                     'choices_as_values' => true,
124 124
                     'label' => 'settings.delay',
125 125
                     'translation_domain' => 'gs_suppliers',
126
-                    'attr'  => ['class' => 'form-control half',]
126
+                    'attr'  => ['class' => 'form-control half', ]
127 127
                 )
128 128
             )
129 129
             /**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                     'choice_translation_domain' => true,
148 148
                     'translation_domain' => 'messages',
149 149
                     'label' => 'day_order',
150
-                    'attr'  => ['class' => 'form-control',],
150
+                    'attr'  => ['class' => 'form-control', ],
151 151
                     'expanded' => true,
152 152
                     'multiple' => true,
153 153
                 )
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 EntityType::class,
158 158
                 array(
159 159
                     'class' => 'AppBundle:FamilyLog',
160
-                    'query_builder' => function (EntityRepository $er) {
160
+                    'query_builder' => function(EntityRepository $er) {
161 161
                         return $er->createQueryBuilder('f')
162 162
                             ->orderBy('f.path', 'ASC');
163 163
                     },
@@ -166,10 +166,10 @@  discard block
 block discarded – undo
166 166
                     'placeholder' => 'gestock.settings.diverse.choice_family',
167 167
                     'empty_data' => null,
168 168
                     'label' => 'gestock.settings.diverse.familylog',
169
-                    'attr'  => ['class' => 'form-control half',]
169
+                    'attr'  => ['class' => 'form-control half', ]
170 170
                 )
171 171
             )
172
-            ->add('active', HiddenType::class, ['data' => true,]);
172
+            ->add('active', HiddenType::class, ['data' => true, ]);
173 173
     }
174 174
 
175 175
     /**
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      */
178 178
     public function configureOptions(OptionsResolver $resolver)
179 179
     {
180
-        $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Supplier',]);
180
+        $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Supplier', ]);
181 181
     }
182 182
 
183 183
     /**
Please login to merge, or discard this patch.