Completed
Push — master ( 85c492...205d71 )
by Laurent
06:43 queued 03:41
created
src/AppBundle/Form/Type/ArticleType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                 EntityType::class,
103 103
                 array(
104 104
                     'class' => 'AppBundle:Supplier',
105
-                    'query_builder' => function (EntityRepository $er) {
105
+                    'query_builder' => function(EntityRepository $er) {
106 106
                         return $er->createQueryBuilder('s')
107 107
                             ->where('s.active = 1');
108 108
                     },
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                 EntityType::class,
144 144
                 array(
145 145
                     'class' => 'AppBundle:FamilyLog',
146
-                    'query_builder' => function (EntityRepository $er) {
146
+                    'query_builder' => function(EntityRepository $er) {
147 147
                         return $er->createQueryBuilder('f')
148 148
                             ->orderBy('f.path', 'ASC');
149 149
                     },
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.
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/Form/Type/OrdersArticlesType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 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(
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.