Permalink
Browse files

fixed CS

  • Loading branch information...
1 parent 30d3f5d commit 0dc437f2eca7dea19facfde6db7f7f5e8e71d0bc @fabpot fabpot committed Jul 9, 2012
@@ -21,12 +21,12 @@
*
* @return array An array of called listeners
*/
- function getCalledListeners();
+ public function getCalledListeners();
/**
* Gets the not called listeners.
*
* @return array An array of not called listeners
*/
- function getNotCalledListeners();
+ public function getNotCalledListeners();
}
@@ -35,7 +35,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.
@@ -47,7 +47,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.
@@ -59,22 +59,22 @@ function addListener($eventName, $listener, $priority = 0);
*
* @api
*/
- function addSubscriber(EventSubscriberInterface $subscriber);
+ public function addSubscriber(EventSubscriberInterface $subscriber);
/**
* Removes an event listener from the specified events.
*
* @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.
@@ -83,7 +83,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.
@@ -92,5 +92,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);
}
@@ -46,5 +46,5 @@
*
* @api
*/
- static function getSubscribedEvents();
+ public static function getSubscribedEvents();
}
@@ -235,14 +235,14 @@ public function testRemoveBeforeDispatch()
class Service
{
- function onEvent(Event $e)
+ public function onEvent(Event $e)
{
}
}
class SubscriberService implements EventSubscriberInterface
{
- static function getSubscribedEvents()
+ public static function getSubscribedEvents()
{
return array(
'onEvent' => 'onEvent',
@@ -251,7 +251,7 @@ static function getSubscribedEvents()
);
}
- function onEvent(Event $e)
+ public function onEvent(Event $e)
{
}
}
View
@@ -29,7 +29,6 @@ class EventTest extends \PHPUnit_Framework_TestCase
*/
protected $dispatcher;
-
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.

0 comments on commit 0dc437f

Please sign in to comment.