We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 836e289 commit a780048Copy full SHA for a780048
system/Events/Events.php
@@ -149,19 +149,16 @@ public static function trigger($eventName, ...$arguments): bool
149
150
$listeners = static::listeners($eventName);
151
152
- // Lower case when CI_DEBUG is enabled
153
- $lowerEventName = CI_DEBUG ? strtolower($eventName) : false;
154
-
155
foreach ($listeners as $listener) {
156
$start = microtime(true);
157
158
$result = static::$simulate === false ? $listener(...$arguments) : true;
159
160
- if ($lowerEventName !== false) {
+ if (CI_DEBUG) {
161
static::$performanceLog[] = [
162
'start' => $start,
163
'end' => microtime(true),
164
- 'event' => $lowerEventName,
+ 'event' => $eventName,
165
];
166
}
167
0 commit comments