Skip to content

Commit 947dcfd

Browse files
Add StyleCI Integration (#169)
* Add StyleCI Integration * Multi-language is StyleCI Pro only * Apply fixes from StyleCI Co-authored-by: Claudio Dekker <[email protected]>
1 parent b30e7a8 commit 947dcfd

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
if (!function_exists('inertia')) {
3+
if (! function_exists('inertia')) {
44
/**
55
* Inertia helper.
66
*

tests/ResponseTest.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
namespace Inertia\Tests;
44

55
use Illuminate\Contracts\Support\Arrayable;
6-
use Inertia\Response;
7-
use Illuminate\View\View;
8-
use Illuminate\Http\Request;
9-
use Illuminate\Support\Fluent;
106
use Illuminate\Http\JsonResponse;
11-
use Illuminate\Support\Collection;
12-
use Illuminate\Http\Response as BaseResponse;
13-
use Illuminate\Pagination\LengthAwarePaginator;
7+
use Illuminate\Http\Request;
148
use Illuminate\Http\Resources\Json\JsonResource;
159
use Illuminate\Http\Resources\Json\ResourceCollection;
10+
use Illuminate\Http\Response as BaseResponse;
11+
use Illuminate\Pagination\LengthAwarePaginator;
12+
use Illuminate\Support\Collection;
13+
use Illuminate\Support\Fluent;
14+
use Illuminate\View\View;
15+
use Inertia\Response;
1616

1717
class ResponseTest extends TestCase
1818
{
@@ -136,7 +136,6 @@ public function test_arrayable_prop_response()
136136
$user = (object) ['name' => 'Jonathan'];
137137

138138
$resource = new class($user) implements Arrayable {
139-
140139
public $user;
141140

142141
public function __construct($user)

0 commit comments

Comments
 (0)