@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | new CrudEvent($entity, $request) |
121 | 121 | ); |
122 | 122 | |
123 | - if(!$this->accessManager->canAccessResource($entity)) { |
|
123 | + if (!$this->accessManager->canAccessResource($entity)) { |
|
124 | 124 | throw new AccessDeniedHttpException(); |
125 | 125 | } |
126 | 126 | $builder = $this |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | { |
358 | 358 | $sort = $request->get('sort'); |
359 | 359 | if ($sort) { |
360 | - $sort = lcfirst(implode('', array_map(function ($key) { |
|
360 | + $sort = lcfirst(implode('', array_map(function($key) { |
|
361 | 361 | return ucfirst($key); |
362 | 362 | }, explode('_', $sort)))); |
363 | 363 | |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | throw new BadRequestHttpException(sprintf('There is no such field %s', $sort)); |
366 | 366 | } |
367 | 367 | $builder->orderBy( |
368 | - 'e.' . $sort, |
|
368 | + 'e.'.$sort, |
|
369 | 369 | in_array($request->get('order'), ['asc', 'desc']) ? $request->get('order') : 'desc' |
370 | 370 | ); |
371 | 371 | } |