Skip to content

Commit d4634a4

Browse files
committed
wip
1 parent 8828eb7 commit d4634a4

File tree

5 files changed

+36
-25
lines changed

5 files changed

+36
-25
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
name: Check & fix styling
22

3-
on: [ push ]
3+
on: [push]
44

55
jobs:
66
php-cs-fixer:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v2
12-
with:
13-
ref: ${{ github.head_ref }}
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
with:
13+
ref: ${{ github.head_ref }}
1414

15-
- name: Run PHP CS Fixer
16-
uses: docker://oskarstark/php-cs-fixer-ga
17-
with:
18-
args: --config=.php_cs.dist --allow-risky=yes
15+
- name: Run PHP CS Fixer
16+
uses: docker://oskarstark/php-cs-fixer-ga
17+
with:
18+
args: --config=.php_cs.dist.php --allow-risky=yes
1919

20-
- name: Commit changes
21-
uses: stefanzweifel/git-auto-commit-action@v4
22-
with:
23-
commit_message: Fix styling
20+
- name: Commit changes
21+
uses: stefanzweifel/git-auto-commit-action@v4
22+
with:
23+
commit_message: Fix styling

.github/workflows/run-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,18 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
1212
php: [8.0, 7.4, 7.3]
13-
laravel: [8.*]
13+
laravel: [9.*, 8.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
16+
- laravel: 9.*
17+
testbench: 7.*
1618
- laravel: 8.*
1719
testbench: ^6.23
20+
exclude:
21+
- laravel: 9.*
22+
php: 7.4
23+
- laravel: 9.*
24+
php: 7.3
1825

1926
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
2027

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ build
22
composer.lock
33
docs
44
vendor
5-
.php_cs.cache
5+
.php-cs-fixer.cache
6+
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22

33
$finder = Symfony\Component\Finder\Finder::create()
4-
->notPath('bootstrap/*')
5-
->notPath('storage/*')
6-
->notPath('resources/view/mail/*')
74
->in([
85
__DIR__ . '/src',
96
__DIR__ . '/tests',
@@ -13,14 +10,14 @@
1310
->ignoreDotFiles(true)
1411
->ignoreVCS(true);
1512

16-
return PhpCsFixer\Config::create()
13+
return (new PhpCsFixer\Config())
1714
->setRules([
18-
'@PSR2' => true,
15+
'@PSR12' => true,
1916
'array_syntax' => ['syntax' => 'short'],
20-
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
17+
'ordered_imports' => ['sort_algorithm' => 'alpha'],
2118
'no_unused_imports' => true,
2219
'not_operator_with_successor_space' => true,
23-
'trailing_comma_in_multiline_array' => true,
20+
'trailing_comma_in_multiline' => true,
2421
'phpdoc_scalar' => true,
2522
'unary_operator_spaces' => true,
2623
'binary_operator_spaces' => true,
@@ -29,9 +26,15 @@
2926
],
3027
'phpdoc_single_line_var_spacing' => true,
3128
'phpdoc_var_without_name' => true,
29+
'class_attributes_separation' => [
30+
'elements' => [
31+
'method' => 'one',
32+
],
33+
],
3234
'method_argument_space' => [
3335
'on_multiline' => 'ensure_fully_multiline',
3436
'keep_multiple_spaces_after_comma' => true,
35-
]
37+
],
38+
'single_trait_insert_per_statement' => true,
3639
])
3740
->setFinder($finder);

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"prefer-stable": true,
2323
"require": {
2424
"php": "^7.2|^8.0",
25-
"illuminate/http": "^8.0"
25+
"illuminate/http": "^8.0|^9.0"
2626
},
2727
"require-dev": {
28-
"orchestra/testbench": "^6.23",
28+
"orchestra/testbench": "^6.23|^7.0",
2929
"phpunit/phpunit": "^9.4"
3030
},
3131
"autoload": {

0 commit comments

Comments
 (0)