Skip to content

Commit

Permalink
Add ECS script to composer.json and update testing.md. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw authored Feb 27, 2024
1 parent 8d8e1e4 commit 1788f68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
},
"scripts": {
"check-dependencies": "composer-require-checker",
"ecs": "ecs check",
"phpstan": "phpstan",
"test": "phpunit"
},
Expand Down
9 changes: 9 additions & 0 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ To run the checker, execute the following command:
composer run check-dependencies
```

## Easy coding standard

The code is checked with [Easy Coding Standard](https://github.com/easy-coding-standard/easy-coding-standard) and
[PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer). To run it:

```shell
composer run ecs
```

## Static analysis

The code is statically analyzed with [Phpstan](https://phpstan.org/). To run static analysis:
Expand Down

0 comments on commit 1788f68

Please sign in to comment.