@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | $class = $this->getClass($container, $id); |
43 | 43 | |
44 | 44 | if ($permissions = $this->getRoles( |
45 | - new ReflectionClass($class), |
|
46 | - $this->getRolePrefix($id) |
|
45 | + new ReflectionClass($class), |
|
46 | + $this->getRolePrefix($id) |
|
47 | 47 | )) { |
48 | 48 | $roles = array_merge_recursive($roles, $permissions); |
49 | 49 | } |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | $roles[$annotation->getRole()] = array_map( |
87 | - function (string $permission) use ($prefix) { |
|
88 | - return $prefix . strtoupper($permission); |
|
89 | - }, |
|
90 | - $annotation->permissions |
|
87 | + function (string $permission) use ($prefix) { |
|
88 | + return $prefix . strtoupper($permission); |
|
89 | + }, |
|
90 | + $annotation->permissions |
|
91 | 91 | ); |
92 | 92 | } |
93 | 93 |
@@ -84,7 +84,7 @@ |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | $roles[$annotation->getRole()] = array_map( |
87 | - function (string $permission) use ($prefix) { |
|
87 | + function(string $permission) use ($prefix) { |
|
88 | 88 | return $prefix . strtoupper($permission); |
89 | 89 | }, |
90 | 90 | $annotation->permissions |