Skip to content

Commit da6c6ec

Browse files
committed
Fix formatting
1 parent 9c5780f commit da6c6ec

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ public function __invoke(Request $request)
1313
$request->route()->defaults['props']
1414
);
1515
}
16-
}
16+
}

tests/ControllerTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Inertia\Tests;
44

5-
use Illuminate\Routing\Route;
65
use Inertia\Response;
76
use Inertia\Controller;
87
use Illuminate\Http\Request;
8+
use Illuminate\Routing\Route;
99

1010
class ControllerTest extends TestCase
1111
{
@@ -16,8 +16,9 @@ public function test_controller_returns_an_inertia_response()
1616
$route = new Route(['GET'], '/', ['\Inertia\Controller', '__invoke']);
1717
$route->defaults('component', 'User/Edit');
1818
$route->defaults('props', [
19-
'user' => ['name' => 'Jonathan']
19+
'user' => ['name' => 'Jonathan'],
2020
]);
21+
2122
return $route;
2223
});
2324

0 commit comments

Comments
 (0)