Skip to content

Commit ed2697e

Browse files
authored
Codestyle: improvements (#29)
1 parent ac61313 commit ed2697e

4 files changed

Lines changed: 101 additions & 75 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: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: "build"
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- ".docs/**"
7+
push:
8+
branches:
9+
- "*"
10+
schedule:
11+
- cron: "0 8 * * 1" # At 08:00 on Monday
412

513
env:
614
extensions: "json"
@@ -15,8 +23,8 @@ jobs:
1523

1624
strategy:
1725
matrix:
18-
php-version: ["7.4"]
19-
operating-system: ["ubuntu-latest"]
26+
php-version: [ "7.4" ]
27+
operating-system: [ "ubuntu-latest" ]
2028
fail-fast: false
2129

2230
steps:
@@ -74,8 +82,8 @@ jobs:
7482

7583
strategy:
7684
matrix:
77-
php-version: ["7.4"]
78-
operating-system: ["ubuntu-latest"]
85+
php-version: [ "7.4" ]
86+
operating-system: [ "ubuntu-latest" ]
7987
fail-fast: false
8088

8189
steps:
@@ -130,8 +138,8 @@ jobs:
130138

131139
strategy:
132140
matrix:
133-
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
134-
operating-system: ["ubuntu-latest"]
141+
php-version: [ "7.1", "7.2", "7.3", "7.4", "8.0" ]
142+
operating-system: [ "ubuntu-latest" ]
135143
composer-args: [ "" ]
136144
include:
137145
- php-version: "7.4"

codeception.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
actor: Tester
2-
paths:
3-
tests: tests
4-
log: tests/_output
5-
data: tests/_data
6-
support: tests/_support
7-
envs: tests/_envs
8-
bootstrap: _bootstrap.php
9-
settings:
10-
colors: false
11-
memory_limit: 1024M
12-
reset: true
13-
extensions:
14-
enabled:
15-
- Codeception\Extension\RunFailed
16-
modules:
17-
config:
18-
Db:
19-
dsn: ''
20-
user: ''
21-
password: ''
22-
dump: tests/_data/dump.sql
1+
actor: Tester
2+
paths:
3+
tests: tests
4+
log: tests/_output
5+
data: tests/_data
6+
support: tests/_support
7+
envs: tests/_envs
8+
bootstrap: _bootstrap.php
9+
settings:
10+
colors: false
11+
memory_limit: 1024M
12+
reset: true
13+
extensions:
14+
enabled:
15+
- Codeception\Extension\RunFailed
16+
modules:
17+
config:
18+
Db:
19+
dsn: ''
20+
user: ''
21+
password: ''
22+
dump: tests/_data/dump.sql

composer.json

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,50 @@
11
{
2-
"name": "contributte/forms-wizard",
3-
"type": "library",
4-
"description": "Wizard component for nette/forms",
5-
"keywords": [
6-
"nette",
7-
"contributte",
8-
"forms",
9-
"wizard"
10-
],
11-
"require": {
12-
"php": ">=7.1",
13-
"nette/forms": "^3.0",
14-
"nette/http": "^3.0"
15-
},
16-
"require-dev": {
17-
"codeception/codeception": "^4.1.20",
18-
"codeception/module-asserts": "^1.3.1",
19-
"codeception/module-phpbrowser": "^1.0.2",
20-
"latte/latte": "^2.7",
21-
"nette/application": "^3.0",
22-
"nette/di": "^3.0",
23-
"nette/tester": "^2.3.2",
24-
"ninjify/nunjuck": "^0.3",
25-
"ninjify/qa": "^0.12",
26-
"phpstan/phpstan": "^0.12",
27-
"phpstan/phpstan-deprecation-rules": "^0.12",
28-
"phpstan/phpstan-nette": "^0.12",
29-
"phpstan/phpstan-strict-rules": "^0.12",
30-
"webchemistry/testing-helpers": "^3.0.0"
31-
},
32-
"minimum-stability": "RC",
33-
"autoload": {
34-
"psr-4": {
35-
"Contributte\\FormWizard\\": ["src/"]
36-
}
37-
},
38-
"autoload-dev": {
39-
"classmap": [
40-
"tests/includes"
41-
]
42-
},
43-
"extra": {
44-
"branch-alias": {
45-
"dev-master": "2.1.x-dev"
46-
}
47-
}
2+
"name": "contributte/forms-wizard",
3+
"type": "library",
4+
"description": "Wizard component for nette/forms",
5+
"keywords": [
6+
"nette",
7+
"contributte",
8+
"forms",
9+
"wizard"
10+
],
11+
"require": {
12+
"php": ">=7.1",
13+
"nette/forms": "^3.0",
14+
"nette/http": "^3.0"
15+
},
16+
"require-dev": {
17+
"codeception/codeception": "^4.1.20",
18+
"codeception/module-asserts": "^1.3.1",
19+
"codeception/module-phpbrowser": "^1.0.2",
20+
"latte/latte": "^2.7",
21+
"nette/application": "^3.0",
22+
"nette/di": "^3.0",
23+
"nette/tester": "^2.3.2",
24+
"ninjify/nunjuck": "^0.3",
25+
"ninjify/qa": "^0.12",
26+
"phpstan/phpstan": "^0.12",
27+
"phpstan/phpstan-deprecation-rules": "^0.12",
28+
"phpstan/phpstan-nette": "^0.12",
29+
"phpstan/phpstan-strict-rules": "^0.12",
30+
"webchemistry/testing-helpers": "^3.0.0"
31+
},
32+
"minimum-stability": "RC",
33+
"autoload": {
34+
"psr-4": {
35+
"Contributte\\FormWizard\\": [
36+
"src/"
37+
]
38+
}
39+
},
40+
"autoload-dev": {
41+
"classmap": [
42+
"tests/includes"
43+
]
44+
},
45+
"extra": {
46+
"branch-alias": {
47+
"dev-master": "2.1.x-dev"
48+
}
49+
}
4850
}

0 commit comments

Comments
 (0)