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