@@ -25,7 +25,7 @@ public function testAddRemoveListener()
2525 $ dispatcher = new EventDispatcher ();
2626 $ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch ());
2727
28- $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
28+ $ tdispatcher ->addListener ('foo ' , $ listener = function () {});
2929 $ listeners = $ dispatcher ->getListeners ('foo ' );
3030 $ this ->assertCount (1 , $ listeners );
3131 $ this ->assertSame ($ listener , $ listeners [0 ]);
@@ -39,7 +39,7 @@ public function testGetListeners()
3939 $ dispatcher = new EventDispatcher ();
4040 $ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch ());
4141
42- $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
42+ $ tdispatcher ->addListener ('foo ' , $ listener = function () {});
4343 $ this ->assertSame ($ dispatcher ->getListeners ('foo ' ), $ tdispatcher ->getListeners ('foo ' ));
4444 }
4545
@@ -51,7 +51,7 @@ public function testHasListeners()
5151 $ this ->assertFalse ($ dispatcher ->hasListeners ('foo ' ));
5252 $ this ->assertFalse ($ tdispatcher ->hasListeners ('foo ' ));
5353
54- $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
54+ $ tdispatcher ->addListener ('foo ' , $ listener = function () {});
5555 $ this ->assertTrue ($ dispatcher ->hasListeners ('foo ' ));
5656 $ this ->assertTrue ($ tdispatcher ->hasListeners ('foo ' ));
5757 }
@@ -76,7 +76,7 @@ public function testGetCalledListeners()
7676 {
7777 $ dispatcher = new EventDispatcher ();
7878 $ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch ());
79- $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
79+ $ tdispatcher ->addListener ('foo ' , $ listener = function () {});
8080
8181 $ this ->assertEquals (array (), $ tdispatcher ->getCalledListeners ());
8282 $ this ->assertEquals (array ('foo.closure ' => array ('event ' => 'foo ' , 'type ' => 'Closure ' , 'pretty ' => 'closure ' )), $ tdispatcher ->getNotCalledListeners ());
@@ -107,8 +107,8 @@ public function testLogger()
107107
108108 $ dispatcher = new EventDispatcher ();
109109 $ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch (), $ logger );
110- $ tdispatcher ->addListener ('foo ' , $ listener1 = function () { });
111- $ tdispatcher ->addListener ('foo ' , $ listener2 = function () { });
110+ $ tdispatcher ->addListener ('foo ' , $ listener1 = function () {});
111+ $ tdispatcher ->addListener ('foo ' , $ listener2 = function () {});
112112
113113 $ logger ->expects ($ this ->at (0 ))->method ('debug ' )->with ('Notified event "foo" to listener "closure". ' );
114114 $ logger ->expects ($ this ->at (1 ))->method ('debug ' )->with ('Notified event "foo" to listener "closure". ' );
@@ -123,7 +123,7 @@ public function testLoggerWithStoppedEvent()
123123 $ dispatcher = new EventDispatcher ();
124124 $ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch (), $ logger );
125125 $ tdispatcher ->addListener ('foo ' , $ listener1 = function (Event $ event ) { $ event ->stopPropagation (); });
126- $ tdispatcher ->addListener ('foo ' , $ listener2 = function () { });
126+ $ tdispatcher ->addListener ('foo ' , $ listener2 = function () {});
127127
128128 $ logger ->expects ($ this ->at (0 ))->method ('debug ' )->with ('Notified event "foo" to listener "closure". ' );
129129 $ logger ->expects ($ this ->at (1 ))->method ('debug ' )->with ('Listener "closure" stopped propagation of the event "foo". ' );
0 commit comments