@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - usort($listeners, function (RegisteredListener $first, RegisteredListener $second) { |
|
| 42 | + usort($listeners, function(RegisteredListener $first, RegisteredListener $second) { |
|
| 43 | 43 | if ($first->getPriority() < $second->getPriority()) { |
| 44 | 44 | return -1; |
| 45 | 45 | } |
@@ -32,17 +32,17 @@ |
||
| 32 | 32 | { |
| 33 | 33 | $config = new ListenerProviderConfig(); |
| 34 | 34 | |
| 35 | - $config->addListener(FooEvent::class, function (FooEvent $event) { |
|
| 35 | + $config->addListener(FooEvent::class, function(FooEvent $event) { |
|
| 36 | 36 | print '; low-priority'; |
| 37 | 37 | return $event; |
| 38 | 38 | }, 20); |
| 39 | 39 | |
| 40 | - $config->addListener(BarEvent::class, function (BarEvent $event) { |
|
| 40 | + $config->addListener(BarEvent::class, function(BarEvent $event) { |
|
| 41 | 41 | print 'b'; |
| 42 | 42 | return $event; |
| 43 | 43 | }, 40); |
| 44 | 44 | |
| 45 | - $config->addListener(FooEvent::class, function (FooEvent $event) { |
|
| 45 | + $config->addListener(FooEvent::class, function(FooEvent $event) { |
|
| 46 | 46 | print 'high-priority'; |
| 47 | 47 | return $event; |
| 48 | 48 | }, 0); |