Skip to content

Commit f6cb047

Browse files
committed
docs: update command example style
1 parent f379849 commit f6cb047

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

contributing/pull_request.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ as the existing code and ensures that the codebase will be as readable as possib
4343

4444
You can fix most of the coding style violations by running this command in your terminal:
4545

46-
composer cs-fix
46+
```
47+
> composer cs-fix
48+
```
4749

4850
You can check the coding style violations:
4951

50-
composer cs
52+
```
53+
> composer cs
54+
```
5155

5256
### Unit Testing
5357

@@ -194,15 +198,21 @@ so that you can fix whatever errors that pop up with your submission.
194198

195199
PHPStan is expected to scan the entire framework by running this command in your terminal:
196200

197-
vendor/bin/phpstan analyse
201+
```
202+
> vendor/bin/phpstan analyse
203+
```
198204

199205
Rector, on the other hand, can be run on the specific files you modified or added:
200206

201-
vendor/bin/rector process --dry-run path/to/file
207+
```
208+
> vendor/bin/rector process --dry-run path/to/file
209+
```
202210

203211
If you run it without `--dry-run`, Rector will fix the code:
204212

205-
vendor/bin/rector process path/to/file
213+
```
214+
> vendor/bin/rector process path/to/file
215+
```
206216

207217
[1]: https://github.com/phpstan/phpstan-src
208218
[2]: https://github.com/rector/rector

0 commit comments

Comments
 (0)