Download the PHP package paysera/lib-arcanist-php-cs-extension without Composer
On this page you can find all versions of the php package paysera/lib-arcanist-php-cs-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paysera/lib-arcanist-php-cs-extension
More information about paysera/lib-arcanist-php-cs-extension
Files in paysera/lib-arcanist-php-cs-extension
Package lib-arcanist-php-cs-extension
Short Description Php Cs Fixer arcanist extension
License
Informations about the package lib-arcanist-php-cs-extension
lib-arcanist-php-cs-extension 
This library integrates PHP CS Fixer as lint engine to arcanist.
It allows developer to automatically run php-cs-fixer on arc diff.
Before installing library
To automatically configure your .arcconfig add "Paysera\\Composer\\ArcConfigParser::parseArcConfig" script to post-install-cmd and post-update-cmd
or other scipts - just make sure this script is executed on composer install.
Installation
composer require --dev paysera/lib-arcanist-php-cs-extension.- Make sure
.php_csfile is in project directory. - Make sure
.arcconfigfile contains following configurable default entries:"lint.engine": "PhpCsFixerLintEngine""load": ["vendor/paysera/lib-arcanist-php-cs-extension/src/"]"lint.php_cs_fixer.fix_paths" : ["src/"]- list of directories to runphp-cs-fixeron."lint.php_cs_fixer.php_cs_binary" : "{your-bin-dir}/php-cs-fixer"- location forphp-cs-fixerexecutable."lint.php_cs_fixer.php_cs_file": ".php_cs"- location for.php_csfile.
Example output
In case php-cs-fixer found no problems:
If php-cs-fixer reports errors, arcanist diff will be displayed:
- * @param array $fixData
+ * @param array $fixData
+ *
- for ($i = 0; $i < count($rows); $i++) {
+ for ($i = 0; $i < count($rows); ++$i) {
If Excuse message will be provided, these messages will be sent to Phabricator.