@@ -37,7 +37,7 @@ |
||
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) { |
@@ -25,7 +25,7 @@ |
||
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 |