X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FCore%2FCiviEventDispatcher.php;h=2334f1298ca71db82586b5b06be91b9b592f1361;hb=fd556b9d12ce71596a40c6b152771e228e27d1f6;hp=a10fa63fd6f548baae819dec2741bb52685ae8f3;hpb=66390ef5e9086fe441da1e85368f5305bdf23d42;p=civicrm-core.git diff --git a/Civi/Core/CiviEventDispatcher.php b/Civi/Core/CiviEventDispatcher.php index a10fa63fd6..2334f1298c 100644 --- a/Civi/Core/CiviEventDispatcher.php +++ b/Civi/Core/CiviEventDispatcher.php @@ -26,7 +26,7 @@ class CiviEventDispatcher extends ContainerAwareEventDispatcher { * @var array * Array(string $eventName => trueish). */ - private $autoListeners = array(); + private $autoListeners = []; /** * Determine whether $eventName should delegate to the CMS hook system. @@ -124,10 +124,10 @@ class CiviEventDispatcher extends ContainerAwareEventDispatcher { // WISHLIST: For native extensions (and possibly D6/D7/D8/BD), enumerate // the listeners and list them one-by-one. This would make it easier to // inspect via "cv debug:event-dispatcher". - $this->addListener($eventName, array( + $this->addListener($eventName, [ '\Civi\Core\CiviEventDispatcher', 'delegateToUF', - ), self::DEFAULT_HOOK_PRIORITY); + ], self::DEFAULT_HOOK_PRIORITY); } } }