MDL-81525 core_group: Hook style fixes

This commit is contained in:
Andrew Nicols
2024-04-15 13:05:11 +08:00
parent d8b1156e5b
commit ae48b9525a
5 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -28,13 +28,13 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after a group is created.')]
#[\core\attribute\tags('group')]
class after_group_created {
/**
* Constructor for the hook.
*
* @param stdClass $groupinstance The group instance.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
) {
}
+1 -1
View File
@@ -28,13 +28,13 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after a group is deleted.')]
#[\core\attribute\tags('group')]
class after_group_deleted {
/**
* Constructor for the hook.
*
* @param stdClass $groupinstance The group instance.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
) {
}
@@ -28,7 +28,6 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after members added to the group.')]
#[\core\attribute\tags('group', 'user')]
class after_group_membership_added {
/**
* Constructor for the hook.
*
@@ -36,7 +35,9 @@ class after_group_membership_added {
* @param array $userids The user ids.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
/** @var array The user ids */
public readonly array $userids,
) {
}
@@ -28,7 +28,6 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after members removed from the group.')]
#[\core\attribute\tags('group', 'user')]
class after_group_membership_removed {
/**
* Constructor for the hook.
*
@@ -36,7 +35,9 @@ class after_group_membership_removed {
* @param array $userids The user ids.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
/** @var array The user ids */
public readonly array $userids,
) {
}
+1 -1
View File
@@ -28,13 +28,13 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after a group is updated.')]
#[\core\attribute\tags('group')]
class after_group_updated {
/**
* Constructor for the hook.
*
* @param stdClass $groupinstance The group instance.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
) {
}