Skip to content

Commit

Permalink
Merge pull request #40 from tarosky/issue/39
Browse files Browse the repository at this point in the history
Format PHP code
Close #39.
  • Loading branch information
harai authored Nov 9, 2023
2 parents 8a15b5b + b777197 commit f3c7e88
Show file tree
Hide file tree
Showing 113 changed files with 3,643 additions and 3,050 deletions.
6 changes: 4 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ indent_size = 2
indent_style = space
trim_trailing_whitespace = true

[**.php]
[*.php]
indent_style = tab

[{composer.json,phpcs.ruleset.xml}]
indent_size = 4
indent_style = space
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@ jobs:
strategy:
matrix:
redis-version:
- '4'
- '5'
- '6'
- '7'
php-version:
- php: '7.3'
phpunit: 9.3.9
- php: '7.4'
phpunit: 9.3.9
- php: '8.0'
phpunit: 9.3.9
- php: '8.1'
phpunit: 9.6.13
steps:
- uses: actions/checkout@v2
- name: Set PHP_VERSION
Expand Down
40 changes: 39 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
{
"name": "tarosky/wp-redis-patch",
"type": "wordpress-dropin",
"description": "",
"homepage": "https://github.com/tarosky/wp-redis-patch",
"license": "GPL-2.0",
"authors": [
{
"name": "Harai Akihiro",
"email": "[email protected]",
"homepage": "https://tarosky.co.jp"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=7.4"
},
"require-dev": {
"giorgiosironi/eris": "^0.13.0"
"giorgiosironi/eris": "^0.13.0",
"squizlabs/php_codesniffer": "*",
"wp-coding-standards/wpcs": "*",
"phpcompatibility/php-compatibility": "*",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcompatibility/phpcompatibility-wp": "*"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"lint": [
"phpcs --standard=phpcs.ruleset.xml $(find ./ -name '*.php')"
],
"fix": [
"phpcbf --standard=phpcs.ruleset.xml $(find ./ -name '*.php')"
]
},
"support": {
"issues": "https://github.com/tarosky/wp-redis-patch/issues"
}
}
Loading

0 comments on commit f3c7e88

Please sign in to comment.