Completed
Push — master ( 0f948d...3a0b41 )
by Axel
06:34
created
src/system/CategoriesModule/Controller/NodeController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,9 +206,9 @@
 block discarded – undo
206 206
         }
207 207
 
208 208
         $oldParent = $request->request->get('old_parent');
209
-        $oldPosition = (int)$request->request->get('old_position');
209
+        $oldPosition = (int) $request->request->get('old_position');
210 210
         $parent = $request->request->get('parent');
211
-        $position = (int)$request->request->get('position');
211
+        $position = (int) $request->request->get('position');
212 212
         if ($oldParent === $parent) {
213 213
             $diff = $oldPosition - $position; // if $diff is positive, then node moved up
214 214
             $methodName = $diff > 0 ? 'moveUp' : 'moveDown';
Please login to merge, or discard this patch.
src/system/CategoriesModule/Entity/Repository/CategoryRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
 
53 53
         if ($parentId > 0) {
54 54
             $qb->andWhere('c.parent = :parentid')
55
-               ->setParameter('parentid', $parentId);
55
+                ->setParameter('parentid', $parentId);
56 56
         }
57 57
 
58 58
         if (null !== $excludedId && $excludedId > 0) {
59 59
             $qb->andWhere('c.id != :id')
60
-               ->setParameter('id', $excludedId);
60
+                ->setParameter('id', $excludedId);
61 61
         }
62 62
 
63 63
         $query = $qb->getQuery();
Please login to merge, or discard this patch.