mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 09:34:38 +01:00
16 lines
350 B
PHP
16 lines
350 B
PHP
<?php
|
|
|
|
$config = new Amp\CodeStyle\Config();
|
|
$config->getFinder()
|
|
->in(__DIR__ . '/src')
|
|
->in(__DIR__ . '/tests')
|
|
->in(__DIR__ . '/examples')
|
|
->in(__DIR__ . '/tools')
|
|
->in(__DIR__);
|
|
|
|
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
|
|
|
|
$config->setCacheFile($cacheDir . '/.php_cs.cache');
|
|
|
|
return $config;
|