Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -66,14 +66,14 @@ class Event implements EventInterface
*
* @var array
*/
protected $parameters = array();
protected $parameters = [];
/**
* Event stack.
*
* @var array
*/
protected $eventStack = array();
protected $eventStack = [];
/**
* {@inheritDoc}

View File

@ -55,7 +55,7 @@ class EventManager implements EventManagerInterface
*
* @var array
*/
protected $events = array(self::WILDCARD => array());
protected $events = [self::WILDCARD => []];
/**
* Event object.
@ -90,7 +90,7 @@ class EventManager implements EventManagerInterface
}
if (!isset($this->events[$event])) {
$this->events[$event] = array();
$this->events[$event] = [];
}
if (!in_array($callback, $this->events[$event], true)) {
@ -107,13 +107,13 @@ class EventManager implements EventManagerInterface
return;
}
$events = array();
$events = [];
if (!empty($this->events[$event])) {
$events = $this->events[$event];
}
$callbacks = array_merge($events, $this->events[self::WILDCARD]);
$previous = array();
$previous = [];
$eventObject = clone $this->getEventObject();
$eventObject->setName($event);