Passed
Branch master (05b89c)
by Akmal
02:40
created
Category
src/OpenEngine/EventDispatcher/ListenerProviderConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/OpenEngine/EventDispatcher/Tests/ListenerProviderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,17 +32,17 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.