Completed
Push — master ( d5b46d...5f63e3 )
by Laurent
03:34
created
src/AppBundle/Form/Type/FamilyLogType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 'entity',
47 47
                 array(
48 48
                     'class' => 'AppBundle:FamilyLog',
49
-                    'query_builder' => function (EntityRepository $er) {
49
+                    'query_builder' => function(EntityRepository $er) {
50 50
                         return $er->createQueryBuilder('f')
51 51
                             ->orderBy('f.path', 'ASC');
52 52
                     },
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/SupplierType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 'entity',
47 47
                 array(
48 48
                     'class' => 'AppBundle:FamilyLog',
49
-                    'query_builder' => function (EntityRepository $er) {
49
+                    'query_builder' => function(EntityRepository $er) {
50 50
                         return $er->createQueryBuilder('f')
51 51
                             ->orderBy('f.path', 'ASC');
52 52
                     },
Please login to merge, or discard this patch.
src/AppBundle/Controller/AbstractController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -195,6 +195,9 @@
 block discarded – undo
195 195
         }
196 196
     }
197 197
 
198
+    /**
199
+     * @param string $entityName
200
+     */
198 201
     private function testReturnParam($entity, $entityName) {
199 202
         if ($entityName === 'company' || $entityName === 'settings' || $entityName === 'tva') {
200 203
             $param = array('id' => $entity->getId());
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     {
228 228
         $session = $this->getRequest()->getSession();
229 229
 
230
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
230
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
231 231
     }
232 232
 
233 233
     /**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     {
241 241
         $alias = current($qbd->getDQLPart('from'))->getAlias();
242 242
         if (is_array($order = $this->getOrder($name))) {
243
-            $qbd->orderBy($alias . '.' . $order['field'], $order['type']);
243
+            $qbd->orderBy($alias.'.'.$order['field'], $order['type']);
244 244
         }
245 245
     }
246 246
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/GroupController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,8 +208,8 @@
 block discarded – undo
208 208
     /**
209 209
      * Add roles to form
210 210
      *
211
-     * @param Symfony\Component\Form\Form  $form  The form in which to insert the roles
212
-     * @param AppBundle\Entity\Group       $group The entity to deal
211
+     * @param \Symfony\Component\Form\Form  $form  The form in which to insert the roles
212
+     * @param Group       $group The entity to deal
213 213
      * @return Symfony\Component\Form\Form The form
214 214
      */
215 215
     private function addRoles($form, $group)
Please login to merge, or discard this patch.