Skip to content

Commit fc36641

Browse files
committed
Fix formatting
1 parent 31de346 commit fc36641

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

helpers.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<?php
22

3-
if (! function_exists('inertia')) {
3+
if (!function_exists('inertia')) {
44
/**
55
* Inertia helper.
66
*
77
* @param null|string $component
8-
* @param array $props
8+
* @param array $props
9+
*
910
* @return \Inertia\ResponseFactory|\Inertia\Response
1011
*/
11-
function inertia($component = null, $props = []) {
12+
function inertia($component = null, $props = [])
13+
{
1214
$instance = \Inertia\Inertia::getFacadeRoot();
1315

1416
if ($component) {
@@ -17,4 +19,4 @@ function inertia($component = null, $props = []) {
1719

1820
return $instance;
1921
}
20-
}
22+
}

tests/HelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Tests;
44

55
use Inertia\Inertia;
6-
use Inertia\ResponseFactory;
76
use Inertia\Response;
7+
use Inertia\ResponseFactory;
88

99
class HelperTest extends TestCase
1010
{

0 commit comments

Comments
 (0)