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 | 'hasAnyPermission', |
16 | - fn ($object, $permissions) => "$this->globalVars->get('security')->hasAnyPermission($object, $permissions)", |
|
17 | - static fn (array $arguments, $object, $permissions) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->hasAnyPermission($object, $permissions) |
|
16 | + fn($object, $permissions) => "$this->globalVars->get('security')->hasAnyPermission($object, $permissions)", |
|
17 | + static fn(array $arguments, $object, $permissions) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->hasAnyPermission($object, $permissions) |
|
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 | - static fn (array $arguments, $roles) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->hasAnyRole($roles) |
|
16 | + fn($roles) => "$this->globalVars->get('security')->hasAnyRole($roles)", |
|
17 | + static fn(array $arguments, $roles) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->hasAnyRole($roles) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'isAnonymous', |
16 | - fn () => "$this->globalVars->get('security')->isAnonymous()", |
|
17 | - static fn (array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isAnonymous() |
|
16 | + fn() => "$this->globalVars->get('security')->isAnonymous()", |
|
17 | + static fn(array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isAnonymous() |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'isFullyAuthenticated', |
16 | - fn () => "$this->globalVars->get('security')->isFullyAuthenticated()", |
|
17 | - fn (array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isFullyAuthenticated() |
|
16 | + fn() => "$this->globalVars->get('security')->isFullyAuthenticated()", |
|
17 | + fn(array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isFullyAuthenticated() |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'getUser', |
16 | - fn () => "$this->globalVars->get('security')->getUser()", |
|
17 | - static fn (array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->getUser() |
|
16 | + fn() => "$this->globalVars->get('security')->getUser()", |
|
17 | + static fn(array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->getUser() |
|
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 | - static fn (array $arguments, $attributes, $object = null) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isGranted($attributes, $object) |
|
16 | + fn($attributes, $object = 'null') => "$this->globalVars->get('security')->isGranted($attributes, $object)", |
|
17 | + static fn(array $arguments, $attributes, $object = null) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isGranted($attributes, $object) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -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 | - static fn (array $arguments, $object, $permission) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->hasPermission($object, $permission) |
|
16 | + fn($object, $permission) => "$this->globalVars->get('security')->hasPermission($object, $permission)", |
|
17 | + static fn(array $arguments, $object, $permission) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->hasPermission($object, $permission) |
|
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 | - static fn (array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isRememberMe() |
|
16 | + fn() => "$this->globalVars->get('security')->isRememberMe()", |
|
17 | + static fn(array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isRememberMe() |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | parent::__construct( |
15 | 15 | 'isAuthenticated', |
16 | - fn () => "$this->globalVars->get('security')->isAuthenticated()", |
|
17 | - static fn (array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isAuthenticated() |
|
16 | + fn() => "$this->globalVars->get('security')->isAuthenticated()", |
|
17 | + static fn(array $arguments) => $arguments[TypeGenerator::GLOBAL_VARS]->get('security')->isAuthenticated() |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } |