1
0
mirror of https://github.com/mrclay/minify.git synced 2025-01-16 20:58:13 +01:00
minify/.php_cs
Elan Ruusamäe 263381a23f Setup php-cs-fixer
Setup only to apply @PSR2 rules
2020-04-03 10:42:46 +03:00

24 lines
434 B
PHP

<?php
$rules = array(
'@PSR2' => true,
);
$config = PhpCsFixer\Config::create();
$finder = $config->getFinder();
$finder
->in(array('.', 'builder/', 'lib/', 'tests/', 'min_extras/', 'static/'))
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return $config
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules($rules)
->setIndent(' ')
->setLineEnding("\n");
// vim:ft=php