@@ -77,9 +77,8 @@ public function testInternalRequests()
7777
7878 public function testInternalRequestWithVersionAndParameters ()
7979 {
80- $ this ->router ->api (['version ' => 'v1 ' ], function ()
81- {
82- $ this ->router ->get ('test ' , function (){ return 'test ' ; });
80+ $ this ->router ->api (['version ' => 'v1 ' ], function () {
81+ $ this ->router ->get ('test ' , function () { return 'test ' ; });
8382 });
8483
8584 $ this ->assertEquals ('test ' , $ this ->dispatcher ->version ('v1 ' )->with (['foo ' => 'bar ' ])->get ('test ' ));
@@ -89,7 +88,7 @@ public function testInternalRequestWithVersionAndParameters()
8988 public function testInternalRequestWithPrefix ()
9089 {
9190 $ this ->router ->api (['version ' => 'v1 ' , 'prefix ' => 'baz ' ], function () {
92- $ this ->router ->get ('test ' , function () {
91+ $ this ->router ->get ('test ' , function () {
9392 return 'test ' ;
9493 });
9594 });
@@ -100,7 +99,7 @@ public function testInternalRequestWithPrefix()
10099
101100 public function testInternalRequestWithDomain ()
102101 {
103- $ this ->router ->api (['version ' => 'v1 ' , 'domain ' => 'foo.bar ' ], function () {
102+ $ this ->router ->api (['version ' => 'v1 ' , 'domain ' => 'foo.bar ' ], function () {
104103 $ this ->router ->get ('test ' , function () {
105104 return 'test ' ;
106105 });
@@ -190,8 +189,7 @@ public function testInternalRequestUsingControllerAction()
190189
191190 public function testInternalRequestUsingRouteNameAndControllerAction ()
192191 {
193- $ this ->router ->api (['version ' => 'v1 ' , 'prefix ' => 'api ' ], function ()
194- {
192+ $ this ->router ->api (['version ' => 'v1 ' , 'prefix ' => 'api ' ], function () {
195193 $ this ->router ->get ('foo ' , ['as ' => 'foo ' , function () { return 'foo ' ; }]);
196194 $ this ->router ->get ('bar ' , 'Dingo\Api\Tests\Stubs\InternalControllerDispatchingStub@index ' );
197195 });
@@ -210,7 +208,7 @@ public function testInternalRequestWithMultipleVersionsCallsCorrectVersion()
210208 });
211209
212210 $ this ->router ->api (['version ' => ['v2 ' , 'v3 ' ]], function () {
213- $ this ->router ->get ('foo ' , function () {
211+ $ this ->router ->get ('foo ' , function () {
214212 return 'bar ' ;
215213 });
216214 });
@@ -272,7 +270,7 @@ public function testRequestStackIsMaintained()
272270 public function testRouteStackIsMaintained ()
273271 {
274272 $ this ->router ->api (['version ' => 'v1 ' ], function () {
275- $ this ->router ->post ('foo ' , ['as ' => 'foo ' , function () {
273+ $ this ->router ->post ('foo ' , ['as ' => 'foo ' , function () {
276274 $ this ->assertEquals ('foo ' , $ this ->router ->currentRouteName ());
277275 $ this ->dispatcher ->post ('bar ' );
278276 $ this ->assertEquals ('foo ' , $ this ->router ->currentRouteName ());
0 commit comments