mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -31,20 +31,20 @@ use function in_array;
|
||||
*/
|
||||
class EventVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
|
||||
{
|
||||
public const CREATE = 'CHILL_EVENT_CREATE';
|
||||
final public const CREATE = 'CHILL_EVENT_CREATE';
|
||||
|
||||
public const ROLES = [
|
||||
final public const ROLES = [
|
||||
self::SEE,
|
||||
self::SEE_DETAILS,
|
||||
self::CREATE,
|
||||
self::UPDATE,
|
||||
];
|
||||
|
||||
public const SEE = 'CHILL_EVENT_SEE';
|
||||
final public const SEE = 'CHILL_EVENT_SEE';
|
||||
|
||||
public const SEE_DETAILS = 'CHILL_EVENT_SEE_DETAILS';
|
||||
final public const SEE_DETAILS = 'CHILL_EVENT_SEE_DETAILS';
|
||||
|
||||
public const UPDATE = 'CHILL_EVENT_UPDATE';
|
||||
final public const UPDATE = 'CHILL_EVENT_UPDATE';
|
||||
|
||||
/**
|
||||
* @var AccessDecisionManagerInterface
|
||||
|
@@ -28,20 +28,20 @@ use function in_array;
|
||||
|
||||
class ParticipationVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
|
||||
{
|
||||
public const CREATE = 'CHILL_EVENT_PARTICIPATION_CREATE';
|
||||
final public const CREATE = 'CHILL_EVENT_PARTICIPATION_CREATE';
|
||||
|
||||
public const ROLES = [
|
||||
final public const ROLES = [
|
||||
self::SEE,
|
||||
self::SEE_DETAILS,
|
||||
self::CREATE,
|
||||
self::UPDATE,
|
||||
];
|
||||
|
||||
public const SEE = 'CHILL_EVENT_PARTICIPATION_SEE';
|
||||
final public const SEE = 'CHILL_EVENT_PARTICIPATION_SEE';
|
||||
|
||||
public const SEE_DETAILS = 'CHILL_EVENT_PARTICIPATION_SEE_DETAILS';
|
||||
final public const SEE_DETAILS = 'CHILL_EVENT_PARTICIPATION_SEE_DETAILS';
|
||||
|
||||
public const UPDATE = 'CHILL_EVENT_PARTICIPATION_UPDATE';
|
||||
final public const UPDATE = 'CHILL_EVENT_PARTICIPATION_UPDATE';
|
||||
|
||||
/**
|
||||
* @var AccessDecisionManagerInterface
|
||||
|
Reference in New Issue
Block a user