Skip to content

Commit 139258e

Browse files
committed
Add scripts for checking and fixing code
1 parent 00ffa5e commit 139258e

File tree

3 files changed

+99
-1
lines changed

3 files changed

+99
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
!.vscode/tasks.json
55
!.vscode/launch.json
66
!.vscode/extensions.json
7-
src/RefactoringGuru/Command/RealWorld/commands.sqlite
7+
src/RefactoringGuru/Command/RealWorld/commands.sqlite
8+
vendor/

composer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "RefactoringGuru/design-patterns-php",
3+
"description": "PHP examples for all classic GoF design patterns",
4+
"authors": [
5+
{
6+
"name": "Alexander Shvets",
7+
"email": "[email protected]"
8+
}
9+
],
10+
"minimum-stability": "stable",
11+
"require": {
12+
"php": ">=7.3"
13+
},
14+
"require-dev": {
15+
"squizlabs/php_codesniffer": "^3"
16+
},
17+
"scripts": {
18+
"codestyle:check": "./vendor/bin/phpcs -p -s -n --standard=ruleset.xml --ignore=vendor src",
19+
"codestyle:fix": "./vendor/bin/phpcbf --standard=ruleset.xml src/ "
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"RefactoringGuru\\": ""
24+
}
25+
}
26+
}

composer.lock

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)