Passed
Pull Request — master (#7)
by Iakov
02:35
created
Manager/ApiManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.