Skip to content

Commit

Permalink
MDL-81525 core: Coding style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 14, 2024
1 parent 6b0793d commit 8be87eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/classes/hook/access/after_role_assigned.php
Expand Up @@ -28,16 +28,16 @@
#[\core\attribute\label('Allows plugins or features to perform actions after a role is assigned to a user.')]
#[\core\attribute\tags('role', 'user')]
class after_role_assigned {

/**
* Constructor for the hook.
*
* @param context $context The context of the role assignment.
* @param int $userid The user id of the user.
*
*/
public function __construct(
/** @var context The context of the role assignment */
public readonly context $context,
/** @var int The user id of the user */
public readonly int $userid,
) {
}
Expand Down
3 changes: 2 additions & 1 deletion lib/classes/hook/access/after_role_unassigned.php
Expand Up @@ -28,7 +28,6 @@
#[\core\attribute\label('Allows plugins or features to perform actions after a role is unassigned for a user.')]
#[\core\attribute\tags('role', 'user')]
class after_role_unassigned {

/**
* Constructor for the hook.
*
Expand All @@ -37,7 +36,9 @@ class after_role_unassigned {
*
*/
public function __construct(
/** @var context The context of the role assignment */
public readonly context $context,
/** @var int The user id of the user */
public readonly int $userid,
) {
}
Expand Down

0 comments on commit 8be87eb

Please sign in to comment.