Skip to content

Commit 9dd2a13

Browse files
authored
Update index.rst (#37)
1 parent 753854b commit 9dd2a13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PHP Coding Standards Fixer
22
==========================
33

44
The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards;
5-
whether you want to follow PHP coding standards as defined in the PSR-1, PSR-2, etc.,
5+
whether you want to follow PHP coding standards as defined by `PER Coding Style <https://www.php-fig.org/per/coding-style/>`__,
66
or other community driven ones like the Symfony one.
77
You can **also** define your (team's) style through configuration.
88

@@ -32,7 +32,7 @@ Installation
3232
The recommended way to install PHP CS Fixer is to use
3333
`Composer <https://getcomposer.org/download/>`__:
3434

35-
.. code:: console
35+
.. code:: sh
3636
3737
$ composer require --dev friendsofphp/php-cs-fixer
3838
$ ## or when facing conflicts in dependencies:
@@ -48,9 +48,9 @@ PHP CS Fixer can be run in a Docker container.
4848

4949
You can use pre-built Docker images to run ``php-cs-fixer``.
5050

51-
.. code:: console
51+
.. code:: sh
5252
53-
docker run -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix src
53+
$ docker run -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix src
5454
5555
``$FIXER_VERSION`` used in example above is an identifier of a release you want to use, which is based on Fixer and PHP versions combined. There are different tags for each Fixer's SemVer level and PHP version with syntax ``<php-cs-fixer-version>-php<php-version>``. For example:
5656

@@ -64,7 +64,7 @@ Usage
6464
Assuming you installed PHP CS Fixer as instructed above, you can run
6565
the following command to fix the files PHP files in the ``src`` directory:
6666

67-
.. code:: console
67+
.. code:: sh
6868
6969
$ ./vendor/bin/php-cs-fixer fix src
7070

0 commit comments

Comments
 (0)