Skip to content

Commit bb46441

Browse files
committed
wip
1 parent 8265f68 commit bb46441

File tree

9 files changed

+75
-81
lines changed

9 files changed

+75
-81
lines changed

Diff for: .github/workflows/php-cs-fixer.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Check & fix styling
2+
3+
on: [push]
4+
5+
jobs:
6+
style:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Fix style
14+
uses: docker://oskarstark/php-cs-fixer-ga
15+
with:
16+
args: --config=.php_cs --allow-risky=yes
17+
18+
- name: Extract branch name
19+
shell: bash
20+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
21+
id: extract_branch
22+
23+
- name: Commit changes
24+
uses: stefanzweifel/[email protected]
25+
with:
26+
commit_message: Fix styling
27+
branch: ${{ steps.extract_branch.outputs.branch }}
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/psalm.yml

-33
This file was deleted.

Diff for: .github/workflows/run-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
php: [7.4]
10+
php: [8.0, 7.4]
1111
laravel: [8.*, 7.*]
1212
dependency-version: [prefer-lowest, prefer-stable]
1313
os: [ubuntu-latest, windows-latest]

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ composer.lock
33
docs
44
vendor
55
coverage
6+
.php_cs.cache

Diff for: .php_cs

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
$finder = Symfony\Component\Finder\Finder::create()
4+
->notPath('bootstrap/*')
5+
->notPath('storage/*')
6+
->notPath('vendor')
7+
->in([
8+
__DIR__ . '/src',
9+
__DIR__ . '/tests',
10+
])
11+
->name('*.php')
12+
->notName('*.blade.php')
13+
->ignoreDotFiles(true)
14+
->ignoreVCS(true);
15+
16+
return PhpCsFixer\Config::create()
17+
->setRules([
18+
'@PSR2' => true,
19+
'array_syntax' => ['syntax' => 'short'],
20+
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
21+
'no_unused_imports' => true,
22+
'not_operator_with_successor_space' => true,
23+
'trailing_comma_in_multiline_array' => true,
24+
'phpdoc_scalar' => true,
25+
'unary_operator_spaces' => true,
26+
'binary_operator_spaces' => true,
27+
'blank_line_before_statement' => [
28+
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
29+
],
30+
'phpdoc_single_line_var_spacing' => true,
31+
'phpdoc_var_without_name' => true,
32+
'class_attributes_separation' => [
33+
'elements' => [
34+
'method', 'property',
35+
],
36+
],
37+
'method_argument_space' => [
38+
'on_multiline' => 'ensure_fully_multiline',
39+
'keep_multiple_spaces_after_comma' => true,
40+
]
41+
])
42+
->setFinder($finder);

Diff for: .scrutinizer.yml

-19
This file was deleted.

Diff for: .styleci.yml

-5
This file was deleted.

Diff for: composer.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.4",
19+
"php": "8.0|^7.4",
2020
"illuminate/bus": "^7.0|^8.0",
2121
"illuminate/database": "^7.0|^8.0",
2222
"illuminate/support": "^7.0|^8.0"
2323
},
2424
"require-dev": {
2525
"orchestra/testbench": "^5.0|^6.0",
26-
"phpunit/phpunit": "^9.3.8",
27-
"vimeo/psalm": "^3.11"
26+
"phpunit/phpunit": "^9.3.8"
2827
},
2928
"autoload": {
3029
"psr-4": {

Diff for: psalm.xml

-20
This file was deleted.

0 commit comments

Comments
 (0)