@@ -195,6 +195,9 @@ |
||
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()); |
@@ -227,7 +227,7 @@ discard block |
||
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 |
||
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 |
@@ -195,7 +195,8 @@ |
||
195 | 195 | } |
196 | 196 | } |
197 | 197 | |
198 | - private function testReturnParam($entity, $entityName) { |
|
198 | + private function testReturnParam($entity, $entityName) |
|
199 | + { |
|
199 | 200 | if ($entityName === 'company' || $entityName === 'settings' || $entityName === 'tva') { |
200 | 201 | $param = array('id' => $entity->getId()); |
201 | 202 | } else { |