PHP code example of dotsunited / php-cs-fixer-config
1. Go to this page and download the library: Download dotsunited/php-cs-fixer-config library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dotsunited / php-cs-fixer-config example snippets
$config = new DotsUnited\PhpCsFixer\Php56Config();
$config->getFinder()
->in(__DIR__);
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
$config
->setCacheFile($cacheDir . '/.php_cs.cache');
return $config;
.php_cs.cache
yml
cache:
directories:
- $HOME/.php-cs-fixer
yml
script:
- vendor/bin/php-cs-fixer fix --verbose --diff --dry-run
yml
test:
script:
- vendor/bin/php-cs-fixer fix --verbose --diff --dry-run