Skip to content

Commit

Permalink
Codestyle: improvements (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrparolek committed Jun 26, 2021
1 parent d27567a commit fcb0985
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 57 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig is awesome: http://EditorConfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = tab
tab_width = 4

[{*.json, *.yaml, *.yml, *.md}]
indent_style = space
indent_size = 2
18 changes: 9 additions & 9 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- ".docs/**"
push:
branches:
- "master"
- "*"
schedule:
- cron: "0 8 * * 1" # At 08:00 on Monday

Expand All @@ -24,8 +24,8 @@ jobs:

strategy:
matrix:
php-version: ["7.4"]
operating-system: ["ubuntu-latest"]
php-version: [ "7.4" ]
operating-system: [ "ubuntu-latest" ]
fail-fast: false

steps:
Expand Down Expand Up @@ -86,8 +86,8 @@ jobs:

strategy:
matrix:
php-version: ["7.4"]
operating-system: ["ubuntu-latest"]
php-version: [ "7.4" ]
operating-system: [ "ubuntu-latest" ]
fail-fast: false

steps:
Expand Down Expand Up @@ -145,8 +145,8 @@ jobs:

strategy:
matrix:
php-version: ["7.2", "7.3", "7.4"]
operating-system: ["ubuntu-latest"]
php-version: [ "7.2", "7.3", "7.4" ]
operating-system: [ "ubuntu-latest" ]
composer-args: [ "" ]
include:
- php-version: "7.2"
Expand Down Expand Up @@ -219,8 +219,8 @@ jobs:

strategy:
matrix:
php-version: ["7.4"]
operating-system: ["ubuntu-latest"]
php-version: [ "7.4" ]
operating-system: [ "ubuntu-latest" ]
fail-fast: false

if: "github.event_name == 'push'"
Expand Down
4 changes: 2 additions & 2 deletions codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ paths:
output: tests/_output

extensions:
enabled:
- Codeception\Extension\RunFailed
enabled:
- Codeception\Extension\RunFailed

settings:
log: true
Expand Down
93 changes: 47 additions & 46 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,49 @@
{
"name": "contributte/invoice",
"type": "library",
"description": "Library for easily and quickly creating invoices for customers.",
"license": ["MIT"],
"keywords": [
"contributte",
"invoice"
],
"require": {
"php": ">=7.2",
"nette/utils": "^3.0.0",
"setasign/fpdf": "^1.8.0"
},
"require-dev": {
"codeception/codeception": "^4.1.0",
"codeception/module-asserts": "^1.3.0",
"codeception/module-phpbrowser": "^1.0.0",
"nette/di": "^3.0.0",
"nette/application": "^3.0.0",
"ninjify/qa": "^0.12.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-deprecation-rules": "^0.12",
"phpstan/phpstan-nette": "^0.12"

},
"autoload": {
"psr-4": {
"Contributte\\Invoice\\": "src/"
}
},
"scripts": {
"qa": [
"linter src tests",
"codesniffer src tests"
],
"tests": [
"vendor/bin/codecept run"
]
},
"minimum-stability": "RC",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "3.1.x-dev"
}
}
"name": "contributte/invoice",
"type": "library",
"description": "Library for easily and quickly creating invoices for customers.",
"license": [
"MIT"
],
"keywords": [
"contributte",
"invoice"
],
"require": {
"php": ">=7.2",
"nette/utils": "^3.0.0",
"setasign/fpdf": "^1.8.0"
},
"require-dev": {
"codeception/codeception": "^4.1.0",
"codeception/module-asserts": "^1.3.0",
"codeception/module-phpbrowser": "^1.0.0",
"nette/di": "^3.0.0",
"nette/application": "^3.0.0",
"ninjify/qa": "^0.12.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-deprecation-rules": "^0.12",
"phpstan/phpstan-nette": "^0.12"
},
"autoload": {
"psr-4": {
"Contributte\\Invoice\\": "src/"
}
},
"scripts": {
"qa": [
"linter src tests",
"codesniffer src tests"
],
"tests": [
"vendor/bin/codecept run"
]
},
"minimum-stability": "RC",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "3.1.x-dev"
}
}
}

0 comments on commit fcb0985

Please sign in to comment.