first commit
This commit is contained in:
34
.php-cs-fixer.shop.php
Normal file
34
.php-cs-fixer.shop.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->in('admin');
|
||||
|
||||
if (file_exists('./include')) {
|
||||
$finder->in('include');
|
||||
}
|
||||
|
||||
if (file_exists('./bundles')) {
|
||||
$finder->in('bundles');
|
||||
}
|
||||
|
||||
if (file_exists('./app')) {
|
||||
$finder->in('app');
|
||||
}
|
||||
|
||||
if (file_exists('./src')) {
|
||||
$finder->in('src');
|
||||
}
|
||||
|
||||
$finder2 = PhpCsFixer\Finder::create()
|
||||
->in('.')
|
||||
->depth('== 0');
|
||||
|
||||
$files = new AppendIterator();
|
||||
$files->append($finder->getIterator());
|
||||
$files->append($finder2->getIterator());
|
||||
|
||||
$config = require_once __DIR__.'/.php-cs-fixer.config.php';
|
||||
|
||||
return $config
|
||||
->setFinder($files)
|
||||
->setCacheFile('./engine/.php-cs-fixer.shop.cache');
|
||||
Reference in New Issue
Block a user