Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed CS (mainly method signatures)

  • Loading branch information...
commit db210286198c2a335388d410fbff893ae509bad6 1 parent 96f30ea
@fabpot fabpot authored
Showing with 8 additions and 8 deletions.
  1. +7 −7 EventDispatcherInterface.php
  2. +1 −1  EventSubscriberInterface.php
View
14 EventDispatcherInterface.php
@@ -33,7 +33,7 @@
*
* @api
*/
- function dispatch($eventName, Event $event = null);
+ public function dispatch($eventName, Event $event = null);
/**
* Adds an event listener that listens on the specified events.
@@ -45,7 +45,7 @@ function dispatch($eventName, Event $event = null);
*
* @api
*/
- function addListener($eventName, $listener, $priority = 0);
+ public function addListener($eventName, $listener, $priority = 0);
/**
* Adds an event subscriber.
@@ -57,7 +57,7 @@ function addListener($eventName, $listener, $priority = 0);
*
* @api
*/
- function addSubscriber(EventSubscriberInterface $subscriber);
+ public function addSubscriber(EventSubscriberInterface $subscriber);
/**
* Removes an event listener from the specified events.
@@ -65,14 +65,14 @@ function addSubscriber(EventSubscriberInterface $subscriber);
* @param string|array $eventName The event(s) to remove a listener from
* @param callable $listener The listener to remove
*/
- function removeListener($eventName, $listener);
+ public function removeListener($eventName, $listener);
/**
* Removes an event subscriber.
*
* @param EventSubscriberInterface $subscriber The subscriber
*/
- function removeSubscriber(EventSubscriberInterface $subscriber);
+ public function removeSubscriber(EventSubscriberInterface $subscriber);
/**
* Gets the listeners of a specific event or all listeners.
@@ -81,7 +81,7 @@ function removeSubscriber(EventSubscriberInterface $subscriber);
*
* @return array The event listeners for the specified event, or all event listeners by event name
*/
- function getListeners($eventName = null);
+ public function getListeners($eventName = null);
/**
* Checks whether an event has any registered listeners.
@@ -90,5 +90,5 @@ function getListeners($eventName = null);
*
* @return Boolean true if the specified event has any listeners, false otherwise
*/
- function hasListeners($eventName = null);
+ public function hasListeners($eventName = null);
}
View
2  EventSubscriberInterface.php
@@ -43,5 +43,5 @@
*
* @api
*/
- static function getSubscribedEvents();
+ public static function getSubscribedEvents();
}
Please sign in to comment.
Something went wrong with that request. Please try again.