@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | { |
109 | 109 | $entity = $this->getEntityReflectionFromRequest($request); |
110 | 110 | |
111 | - if(!$this->accessManager->canAccessResource($entity)) { |
|
111 | + if (!$this->accessManager->canAccessResource($entity)) { |
|
112 | 112 | throw new AccessDeniedHttpException(); |
113 | 113 | } |
114 | 114 | $builder = $this |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | { |
281 | 281 | $sort = $request->get('sort'); |
282 | 282 | if ($sort) { |
283 | - $sort = lcfirst(implode('', array_map(function ($key) { |
|
283 | + $sort = lcfirst(implode('', array_map(function($key) { |
|
284 | 284 | return ucfirst($key); |
285 | 285 | }, explode('_', $sort)))); |
286 | 286 | |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | throw new BadRequestHttpException(sprintf('There is no such field %s', $sort)); |
289 | 289 | } |
290 | 290 | $builder->orderBy( |
291 | - 'e.' . $sort, |
|
291 | + 'e.'.$sort, |
|
292 | 292 | in_array($request->get('order'), ['asc', 'desc']) ? $request->get('order') : 'desc' |
293 | 293 | ); |
294 | 294 | } |