Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add and apply php cs fixer #45

Merged
merged 2 commits into from Oct 7, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Add php-cs-fixer

  • Loading branch information
matks committed Oct 7, 2019
commit f7d7539931a8baa1305075c205b74f70a25fa0a1
@@ -1,3 +1,5 @@
/config_*.xml
translations/*.php
!translations/index.php
.php_cs.cache
vendor/
@@ -0,0 +1,8 @@
<?php
$config = new PrestaShop\CodingStandards\CsFixer\Config();
$config
->setUsingCache(true)
->getFinder()
->in(__DIR__)
->exclude('vendor');
return $config;
@@ -12,6 +12,15 @@
"require": {
"php": ">=5.4"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"prestashop/php-coding-standards": "dev-master"
},
"scripts": {
"lint": [
"php-cs-fixer fix --no-interaction --dry-run --diff"
]
},
"config": {
"preferred-install": "dist"
},
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.