@@ -206,9 +206,9 @@ |
||
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'; |
@@ -52,12 +52,12 @@ |
||
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(); |