Skip to content

Commit 1bbc5ef

Browse files
committed
wip
1 parent f4f419d commit 1bbc5ef

File tree

93 files changed

+224
-567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+224
-567
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/pint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check & fix styling
2+
3+
on: [push]
4+
5+
jobs:
6+
pint:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v5
12+
with:
13+
ref: ${{ github.head_ref }}
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: 8.2
19+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
20+
coverage: none
21+
22+
- name: Install dependencies
23+
run: composer install --prefer-dist --no-interaction
24+
25+
- name: Run Pint
26+
run: vendor/bin/pint
27+
28+
- name: Commit changes
29+
uses: stefanzweifel/git-auto-commit-action@v7
30+
with:
31+
commit_message: Fix styling

.php-cs-fixer.dist.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"nesbot/carbon": "^2.63|^3.0"
2222
},
2323
"require-dev": {
24+
"laravel/pint": "^1.25",
2425
"orchestra/testbench": "^9.0|^10.0",
2526
"pestphp/pest": "^3.0|^4.0",
2627
"pestphp/pest-plugin-laravel": "^3.0|^4.0"
@@ -39,7 +40,8 @@
3940
"scripts": {
4041
"psalm": "vendor/bin/psalm",
4142
"test": "vendor/bin/pest --colors=always",
42-
"test-coverage": "vendor/bin/pest --coverage-html coverage"
43+
"test-coverage": "vendor/bin/pest --coverage-html coverage",
44+
"format": "vendor/bin/pint"
4345
},
4446
"config": {
4547
"sort-packages": true

config/route-attributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* This middleware will be applied to all routes.
3131
*/
3232
'middleware' => [
33-
\Illuminate\Routing\Middleware\SubstituteBindings::class
33+
\Illuminate\Routing\Middleware\SubstituteBindings::class,
3434
],
3535

3636
/*

src/Attributes/Any.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class Any extends Route
1111
public function __construct(
1212
string $uri,
1313
?string $name = null,
14-
array | string $middleware = [],
15-
array | string $withoutMiddleware = [],
14+
array|string $middleware = [],
15+
array|string $withoutMiddleware = [],
1616
) {
1717
parent::__construct(
1818
methods: Router::$verbs,

src/Attributes/ApiResource.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ class ApiResource extends Resource
99
{
1010
public function __construct(
1111
public string $resource,
12-
public array | string | null $except = null,
13-
public array | string | null $only = null,
14-
public array | string | null $names = null,
15-
public array | string | null $parameters = null,
16-
public bool | null $shallow = null,
12+
public array|string|null $except = null,
13+
public array|string|null $only = null,
14+
public array|string|null $names = null,
15+
public array|string|null $parameters = null,
16+
public ?bool $shallow = null,
1717
) {
1818
parent::__construct(
1919
resource: $resource,

src/Attributes/Defaults.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ class Defaults
1010
public function __construct(
1111
public string $key,
1212
public string $value,
13-
) {
14-
}
13+
) {}
1514
}

src/Attributes/Delete.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class Delete extends Route
1010
public function __construct(
1111
string $uri,
1212
?string $name = null,
13-
array | string $middleware = [],
14-
array | string $withoutMiddleware = [],
13+
array|string $middleware = [],
14+
array|string $withoutMiddleware = [],
1515
) {
1616
parent::__construct(
1717
methods: ['delete'],

src/Attributes/Domain.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ class Domain implements RouteAttribute
99
{
1010
public function __construct(
1111
public string $domain
12-
) {
13-
}
12+
) {}
1413
}

0 commit comments

Comments
 (0)