improve doclblock + remove unused var

This commit is contained in:
Dennis Eichhorn 2023-01-26 21:40:30 +01:00
parent 6e42fe49a1
commit 8bace3becf

View File

@ -157,7 +157,9 @@ final class EventManager implements \Countable
} }
/** /**
* Trigger event based on regex for group and/or id * Trigger event based on regex for group and/or id.
*
* This tigger function allows the group to be a regex in either this function call or in the definition of the group.
* *
* @param string $group Name of the event (can be regex) * @param string $group Name of the event (can be regex)
* @param string $id Sub-requirement for event (can be regex) * @param string $id Sub-requirement for event (can be regex)
@ -308,7 +310,7 @@ final class EventManager implements \Countable
return false; // @codeCoverageIgnore return false; // @codeCoverageIgnore
} }
foreach ($this->groups[$group] as $id => $ok) { foreach ($this->groups[$group] as $ok) {
if (!$ok) { if (!$ok) {
return true; return true;
} }