File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ PHP CS Fixer.
66
77## Installation
88
9- ``` shell script
9+ ``` bash
1010$ composer require --dev netgen/layouts-coding-standard
1111```
1212
@@ -15,6 +15,8 @@ $ composer require --dev netgen/layouts-coding-standard
1515Create a ` .php-cs-fixer.php ` file in the root of your project with the following:
1616
1717``` php
18+ <?php
19+
1820return new Netgen\Layouts\CodingStandard\PhpCsFixer\Config()
1921 ->setFinder(
2022 PhpCsFixer\Finder::create()
@@ -26,7 +28,7 @@ return new Netgen\Layouts\CodingStandard\PhpCsFixer\Config()
2628
2729Run the fixer with:
2830
29- ``` shell script
31+ ``` bash
3032$ vendor/bin/php-cs-fixer fix
3133```
3234
@@ -35,6 +37,8 @@ $ vendor/bin/php-cs-fixer fix
3537You can override rules included in this config per project:
3638
3739``` php
40+ <?php
41+
3842return new Netgen\Layouts\CodingStandard\PhpCsFixer\Config()
3943 ->addRules([
4044 'list_syntax' => ['syntax' => 'long'],
You can’t perform that action at this time.
0 commit comments