Completed
Pull Request — master (#1)
by Jérémy
01:56
created
Category
Security/RoleChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             return $this->authorizationChecker->isGranted($role);
38 38
         }
39 39
 
40
-        $roles = $this->roleHierarchy->getReachableRoles(array_map(function ($role) {
40
+        $roles = $this->roleHierarchy->getReachableRoles(array_map(function($role) {
41 41
             if (is_string($role)) {
42 42
                 return new Role($role);
43 43
             } elseif (!$role instanceof RoleInterface) {
Please login to merge, or discard this patch.
Twig/Extension/SecurityExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function getFunctions()
26 26
     {
27 27
         return [
28
-            new \Twig_SimpleFunction('has_role', [$this->roleChecker, 'hasRole']),
28
+            new \Twig_SimpleFunction('has_role', [ $this->roleChecker, 'hasRole' ]),
29 29
         ];
30 30
     }
31 31
 
Please login to merge, or discard this patch.