@@ -27,7 +27,7 @@ public function testAddRemoveListener()
27
27
$ dispatcher = new EventDispatcher ();
28
28
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch ());
29
29
30
- $ tdispatcher ->addListener ('foo ' , $ listener = function () {; });
30
+ $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
31
31
$ listeners = $ dispatcher ->getListeners ('foo ' );
32
32
$ this ->assertCount (1 , $ listeners );
33
33
$ this ->assertSame ($ listener , $ listeners [0 ]);
@@ -41,7 +41,7 @@ public function testGetListeners()
41
41
$ dispatcher = new EventDispatcher ();
42
42
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch ());
43
43
44
- $ tdispatcher ->addListener ('foo ' , $ listener = function () {; });
44
+ $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
45
45
$ this ->assertSame ($ dispatcher ->getListeners ('foo ' ), $ tdispatcher ->getListeners ('foo ' ));
46
46
}
47
47
@@ -53,7 +53,7 @@ public function testHasListeners()
53
53
$ this ->assertFalse ($ dispatcher ->hasListeners ('foo ' ));
54
54
$ this ->assertFalse ($ tdispatcher ->hasListeners ('foo ' ));
55
55
56
- $ tdispatcher ->addListener ('foo ' , $ listener = function () {; });
56
+ $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
57
57
$ this ->assertTrue ($ dispatcher ->hasListeners ('foo ' ));
58
58
$ this ->assertTrue ($ tdispatcher ->hasListeners ('foo ' ));
59
59
}
@@ -78,7 +78,7 @@ public function testGetCalledListeners()
78
78
{
79
79
$ dispatcher = new EventDispatcher ();
80
80
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch ());
81
- $ tdispatcher ->addListener ('foo ' , $ listener = function () {; });
81
+ $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
82
82
83
83
$ this ->assertEquals (array (), $ tdispatcher ->getCalledListeners ());
84
84
$ this ->assertEquals (array ('foo.closure ' => array ('event ' => 'foo ' , 'type ' => 'Closure ' , 'pretty ' => 'closure ' )), $ tdispatcher ->getNotCalledListeners ());
@@ -95,8 +95,8 @@ public function testLogger()
95
95
96
96
$ dispatcher = new EventDispatcher ();
97
97
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch (), $ logger );
98
- $ tdispatcher ->addListener ('foo ' , $ listener1 = function () {; });
99
- $ tdispatcher ->addListener ('foo ' , $ listener2 = function () {; });
98
+ $ tdispatcher ->addListener ('foo ' , $ listener1 = function () { });
99
+ $ tdispatcher ->addListener ('foo ' , $ listener2 = function () { });
100
100
101
101
$ logger ->expects ($ this ->at (0 ))->method ('debug ' )->with ('Notified event "foo" to listener "closure". ' );
102
102
$ logger ->expects ($ this ->at (1 ))->method ('debug ' )->with ('Notified event "foo" to listener "closure". ' );
@@ -111,7 +111,7 @@ public function testLoggerWithStoppedEvent()
111
111
$ dispatcher = new EventDispatcher ();
112
112
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch (), $ logger );
113
113
$ tdispatcher ->addListener ('foo ' , $ listener1 = function (Event $ event ) { $ event ->stopPropagation (); });
114
- $ tdispatcher ->addListener ('foo ' , $ listener2 = function () {; });
114
+ $ tdispatcher ->addListener ('foo ' , $ listener2 = function () { });
115
115
116
116
$ logger ->expects ($ this ->at (0 ))->method ('debug ' )->with ('Notified event "foo" to listener "closure". ' );
117
117
$ logger ->expects ($ this ->at (1 ))->method ('debug ' )->with ('Listener "closure" stopped propagation of the event "foo". ' );
0 commit comments