Ver Fonte

[FrameworkBundle] fixed CS

Fabien Potencier há 13 anos atrás
pai
commit
ffce6be671

+ 5 - 5
src/Symfony/Bundle/FrameworkBundle/ContainerAwareEventDispatcher.php

@@ -72,8 +72,8 @@ class ContainerAwareEventDispatcher extends EventDispatcher
     }
 
     /**
-    * @see EventDispatcherInterface::hasListeners
-    */
+     * @see EventDispatcherInterface::hasListeners
+     */
     public function hasListeners($eventName = null)
     {
         if (null === $eventName) {
@@ -88,12 +88,12 @@ class ContainerAwareEventDispatcher extends EventDispatcher
     }
 
     /**
-    * @see EventDispatcherInterface::getListeners
-    */
+     * @see EventDispatcherInterface::getListeners
+     */
     public function getListeners($eventName = null)
     {
         if (null === $eventName) {
-            foreach ($this->listenerIds as $serviceEventName => $listners) {
+            foreach (array_keys($this->listenerIds) as $serviceEventName) {
                 $this->lazyLoad($serviceEventName);
             }
         } else {