Skip to content

Commit 4149481

Browse files
fix(docs): Update CONTRIBUTING.md to reference .php-cs-fixer.dist.php (GoogleCloudPlatform#1681)
Co-authored-by: Saransh Dhingra
1 parent 1d6b3af commit 4149481

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ guidelines for all Google Cloud samples.
9797
[style-guide]: https://googlecloudplatform.github.io/samples-style-guide/
9898

9999
Samples in this repository also follow the [PSR2][psr2] and [PSR4][psr4]
100-
recommendations. This is enforced using [PHP CS Fixer][php-cs-fixer].
100+
recommendations. This is enforced using [PHP CS Fixer][php-cs-fixer], using the config in [.php-cs-fixer.dist.php](.php-cs-fixer.dist.php)
101101

102102
Install that by running
103103

@@ -108,8 +108,8 @@ composer global require friendsofphp/php-cs-fixer
108108
Then to fix your directory or file run
109109

110110
```
111-
php-cs-fixer fix .
112-
php-cs-fixer fix path/to/file
111+
php-cs-fixer fix . --config .php-cs-fixer.dist.php
112+
php-cs-fixer fix path/to/file --config .php-cs-fixer.dist.php
113113
```
114114

115115
The [DLP snippets](https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/dlp) are an example of snippets following the latest style guidelines.

0 commit comments

Comments
 (0)