Skip to content

Commit

Permalink
Update codestyle.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LadySolveig authored Nov 21, 2024
1 parent 7f99528 commit 08d1e07
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions versioned_docs/version-5.2/get-started/codestyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ To run the code sniffer/fixer you need to start a terminal, navigate to your Joo

### Checking for code style violations

To facilitate this process, we have prepared a shortcut script command.

- ```composer run phpcs```
- ```composer run csfixer```

For reference and to adjust to other needs, here the complete command:

```./libraries/vendor/bin/phpcs --extensions=php -p --standard=ruleset.xml .```
```./libraries/vendor/bin/php-cs-fixer fix -vvv --dry-run --diff```

This will run the code style check for the whole Joomla! installation, including your extensions, when installed in Joomla!

Expand Down

0 comments on commit 08d1e07

Please sign in to comment.