@@ -58,26 +58,26 @@ public function testAddRoutesAndGroups()
5858
5959 $ routeAdders = $ groupAdders = [];
6060
61- Actions::expectAdded ('cortex.routes ' )->twice ()->whenHappen (function ($ add ) use (&$ routeAdders ) {
61+ Actions::expectAdded ('cortex.routes ' )->twice ()->whenHappen (function ($ add ) use (&$ routeAdders ) {
6262 $ routeAdders [] = $ add ;
6363 });
6464
65- Actions::expectAdded ('cortex.groups ' )->once ()->whenHappen (function ($ add ) use (&$ groupAdders ) {
65+ Actions::expectAdded ('cortex.groups ' )->once ()->whenHappen (function ($ add ) use (&$ groupAdders ) {
6666 $ groupAdders [] = $ add ;
6767 });
6868
6969 Actions::expectFired ('cortex.routes ' )
7070 ->once ()
71- ->whenHappen (function (RouteCollectionInterface $ routes ) use (&$ routeAdders ) {
72- foreach ($ routeAdders as $ routeAdder ) {
71+ ->whenHappen (function (RouteCollectionInterface $ routes ) use (&$ routeAdders ) {
72+ foreach ($ routeAdders as $ routeAdder ) {
7373 $ routeAdder ($ routes );
7474 }
7575 });
7676
7777 Actions::expectFired ('cortex.groups ' )
7878 ->once ()
79- ->whenHappen (function (GroupCollectionInterface $ groups ) use (&$ groupAdders ) {
80- foreach ($ groupAdders as $ groupAdder ) {
79+ ->whenHappen (function (GroupCollectionInterface $ groups ) use (&$ groupAdders ) {
80+ foreach ($ groupAdders as $ groupAdder ) {
8181 $ groupAdder ($ groups );
8282 }
8383 });
@@ -100,11 +100,11 @@ public function testMatchRedirectRoute()
100100 /** @var callable|null $factory */
101101 $ factory = null ;
102102
103- Actions::expectAdded ('cortex.routes ' )->once ()->whenHappen (function ($ cb ) use (&$ factory ) {
103+ Actions::expectAdded ('cortex.routes ' )->once ()->whenHappen (function ($ cb ) use (&$ factory ) {
104104 $ factory = $ cb ;
105105 });
106106
107- Actions::expectFired ('cortex.routes ' )->once ()->whenHappen (function ($ routes ) use (&$ factory ) {
107+ Actions::expectFired ('cortex.routes ' )->once ()->whenHappen (function ($ routes ) use (&$ factory ) {
108108 $ factory ($ routes );
109109 });
110110
@@ -121,5 +121,4 @@ public function testMatchRedirectRoute()
121121
122122 assertTrue ($ do );
123123 }
124-
125- }
124+ }
0 commit comments