mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-28 15:56:36 +00:00
php-cs-fixer (#85)
Remove obsolete php-cs-fixer.sh script Update contributing guidelines
This commit is contained in:
parent
5b373fa7c2
commit
7eee6748d2
3
.php_cs
3
.php_cs
@ -13,5 +13,6 @@ return PhpCsFixer\Config::create()
|
|||||||
PhpCsFixer\Finder::create()
|
PhpCsFixer\Finder::create()
|
||||||
->in(__DIR__ . '/src')
|
->in(__DIR__ . '/src')
|
||||||
->in(__DIR__ . '/tests')
|
->in(__DIR__ . '/tests')
|
||||||
)->setRiskyAllowed(true)
|
)
|
||||||
|
->setRiskyAllowed(true)
|
||||||
->setUsingCache(false);
|
->setUsingCache(false);
|
@ -6,7 +6,7 @@ code base clean, unified and future proof.
|
|||||||
|
|
||||||
## Branch
|
## Branch
|
||||||
|
|
||||||
You should only open pull requests against the develop branch.
|
You should only open pull requests against the master branch.
|
||||||
|
|
||||||
## Unit-Tests
|
## Unit-Tests
|
||||||
|
|
||||||
@ -28,13 +28,7 @@ Please allow me time to review your pull requests. I will give my best to review
|
|||||||
|
|
||||||
## Coding Standards
|
## Coding Standards
|
||||||
|
|
||||||
When contributing code to PHP-ML, you must follow its coding standards. To make a long story short, here is the golden tool:
|
When contributing code to PHP-ML, you must follow its coding standards. It's as easy as executing `php-cs-fixer` (v2) in root directory.
|
||||||
|
|
||||||
```
|
|
||||||
tools/php-cs-fixer.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
This script run PHP Coding Standards Fixer with `--level=symfony` param.
|
|
||||||
|
|
||||||
More about PHP-CS-Fixer: [http://cs.sensiolabs.org/](http://cs.sensiolabs.org/)
|
More about PHP-CS-Fixer: [http://cs.sensiolabs.org/](http://cs.sensiolabs.org/)
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
echo "Fixing src/ folder"
|
|
||||||
php-cs-fixer fix src/
|
|
||||||
|
|
||||||
echo "Fixing tests/ folder"
|
|
||||||
php-cs-fixer fix tests/
|
|
Loading…
Reference in New Issue
Block a user