We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'hasPermission', |
16 | - fn ($object, $permission) => "$this->globalVars->get('security')->hasPermission($object, $permission)", |
|
17 | - fn ($_, $object, $permission) => $security->hasPermission($object, $permission) |
|
16 | + fn($object, $permission) => "$this->globalVars->get('security')->hasPermission($object, $permission)", |
|
17 | + fn($_, $object, $permission) => $security->hasPermission($object, $permission) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'hasAnyRole', |
16 | - fn ($roles) => "$this->globalVars->get('security')->hasAnyRole($roles)", |
|
17 | - fn ($_, $roles) => $security->hasAnyRole($roles) |
|
16 | + fn($roles) => "$this->globalVars->get('security')->hasAnyRole($roles)", |
|
17 | + fn($_, $roles) => $security->hasAnyRole($roles) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'isRememberMe', |
16 | - fn () => "$this->globalVars->get('security')->isRememberMe()", |
|
17 | - fn () => $security->isRememberMe() |
|
16 | + fn() => "$this->globalVars->get('security')->isRememberMe()", |
|
17 | + fn() => $security->isRememberMe() |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'isGranted', |
16 | - fn ($attributes, $object = 'null') => "$this->globalVars->get('security')->isGranted($attributes, $object)", |
|
17 | - fn ($_, $attributes, $object = null) => $security->isGranted($attributes, $object) |
|
16 | + fn($attributes, $object = 'null') => "$this->globalVars->get('security')->isGranted($attributes, $object)", |
|
17 | + fn($_, $attributes, $object = null) => $security->isGranted($attributes, $object) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'hasAnyPermission', |
16 | - fn ($object, $permissions) => "$this->globalVars->get('security')->hasAnyPermission($object, $permissions)", |
|
17 | - fn ($_, $object, $permissions) => $security->hasAnyPermission($object, $permissions) |
|
16 | + fn($object, $permissions) => "$this->globalVars->get('security')->hasAnyPermission($object, $permissions)", |
|
17 | + fn($_, $object, $permissions) => $security->hasAnyPermission($object, $permissions) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -187,12 +187,12 @@ |
||
187 | 187 | } |
188 | 188 | |
189 | 189 | if (!empty($interfaces)) { |
190 | - $items = \array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $interfaces); |
|
190 | + $items = \array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $interfaces); |
|
191 | 191 | $configLoader->addItem('interfaces', ArrowFunction::new(Collection::numeric($items, true))); |
192 | 192 | } |
193 | 193 | |
194 | 194 | if (!empty($types)) { |
195 | - $items = \array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $types); |
|
195 | + $items = \array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $types); |
|
196 | 196 | $configLoader->addItem('types', ArrowFunction::new(Collection::numeric($items, true))); |
197 | 197 | } |
198 | 198 |