Skip to content

Commit fcb0985

Browse files
authored
Codestyle: improvements (#30)
1 parent d27567a commit fcb0985

4 files changed

Lines changed: 74 additions & 57 deletions

File tree

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
indent_style = tab
11+
indent_size = tab
12+
tab_width = 4
13+
14+
[{*.json, *.yaml, *.yml, *.md}]
15+
indent_style = space
16+
indent_size = 2

.github/workflows/main.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- ".docs/**"
77
push:
88
branches:
9-
- "master"
9+
- "*"
1010
schedule:
1111
- cron: "0 8 * * 1" # At 08:00 on Monday
1212

@@ -24,8 +24,8 @@ jobs:
2424

2525
strategy:
2626
matrix:
27-
php-version: ["7.4"]
28-
operating-system: ["ubuntu-latest"]
27+
php-version: [ "7.4" ]
28+
operating-system: [ "ubuntu-latest" ]
2929
fail-fast: false
3030

3131
steps:
@@ -86,8 +86,8 @@ jobs:
8686

8787
strategy:
8888
matrix:
89-
php-version: ["7.4"]
90-
operating-system: ["ubuntu-latest"]
89+
php-version: [ "7.4" ]
90+
operating-system: [ "ubuntu-latest" ]
9191
fail-fast: false
9292

9393
steps:
@@ -145,8 +145,8 @@ jobs:
145145

146146
strategy:
147147
matrix:
148-
php-version: ["7.2", "7.3", "7.4"]
149-
operating-system: ["ubuntu-latest"]
148+
php-version: [ "7.2", "7.3", "7.4" ]
149+
operating-system: [ "ubuntu-latest" ]
150150
composer-args: [ "" ]
151151
include:
152152
- php-version: "7.2"
@@ -219,8 +219,8 @@ jobs:
219219

220220
strategy:
221221
matrix:
222-
php-version: ["7.4"]
223-
operating-system: ["ubuntu-latest"]
222+
php-version: [ "7.4" ]
223+
operating-system: [ "ubuntu-latest" ]
224224
fail-fast: false
225225

226226
if: "github.event_name == 'push'"

codeception.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ paths:
1414
output: tests/_output
1515

1616
extensions:
17-
enabled:
18-
- Codeception\Extension\RunFailed
17+
enabled:
18+
- Codeception\Extension\RunFailed
1919

2020
settings:
2121
log: true

composer.json

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
11
{
2-
"name": "contributte/invoice",
3-
"type": "library",
4-
"description": "Library for easily and quickly creating invoices for customers.",
5-
"license": ["MIT"],
6-
"keywords": [
7-
"contributte",
8-
"invoice"
9-
],
10-
"require": {
11-
"php": ">=7.2",
12-
"nette/utils": "^3.0.0",
13-
"setasign/fpdf": "^1.8.0"
14-
},
15-
"require-dev": {
16-
"codeception/codeception": "^4.1.0",
17-
"codeception/module-asserts": "^1.3.0",
18-
"codeception/module-phpbrowser": "^1.0.0",
19-
"nette/di": "^3.0.0",
20-
"nette/application": "^3.0.0",
21-
"ninjify/qa": "^0.12.0",
22-
"phpstan/phpstan": "^0.12",
23-
"phpstan/phpstan-deprecation-rules": "^0.12",
24-
"phpstan/phpstan-nette": "^0.12"
25-
26-
},
27-
"autoload": {
28-
"psr-4": {
29-
"Contributte\\Invoice\\": "src/"
30-
}
31-
},
32-
"scripts": {
33-
"qa": [
34-
"linter src tests",
35-
"codesniffer src tests"
36-
],
37-
"tests": [
38-
"vendor/bin/codecept run"
39-
]
40-
},
41-
"minimum-stability": "RC",
42-
"prefer-stable": true,
43-
"extra": {
44-
"branch-alias": {
45-
"dev-master": "3.1.x-dev"
46-
}
47-
}
2+
"name": "contributte/invoice",
3+
"type": "library",
4+
"description": "Library for easily and quickly creating invoices for customers.",
5+
"license": [
6+
"MIT"
7+
],
8+
"keywords": [
9+
"contributte",
10+
"invoice"
11+
],
12+
"require": {
13+
"php": ">=7.2",
14+
"nette/utils": "^3.0.0",
15+
"setasign/fpdf": "^1.8.0"
16+
},
17+
"require-dev": {
18+
"codeception/codeception": "^4.1.0",
19+
"codeception/module-asserts": "^1.3.0",
20+
"codeception/module-phpbrowser": "^1.0.0",
21+
"nette/di": "^3.0.0",
22+
"nette/application": "^3.0.0",
23+
"ninjify/qa": "^0.12.0",
24+
"phpstan/phpstan": "^0.12",
25+
"phpstan/phpstan-deprecation-rules": "^0.12",
26+
"phpstan/phpstan-nette": "^0.12"
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"Contributte\\Invoice\\": "src/"
31+
}
32+
},
33+
"scripts": {
34+
"qa": [
35+
"linter src tests",
36+
"codesniffer src tests"
37+
],
38+
"tests": [
39+
"vendor/bin/codecept run"
40+
]
41+
},
42+
"minimum-stability": "RC",
43+
"prefer-stable": true,
44+
"extra": {
45+
"branch-alias": {
46+
"dev-master": "3.1.x-dev"
47+
}
48+
}
4849
}

0 commit comments

Comments
 (0)