12345678910111213141516171819202122 |
- <?php
- require __DIR__ . '/vendor/autoload.php';
- $finder = PhpCsFixer\Finder::create()
- ->in(__DIR__ . '/tests')
- ->exclude('__snapshots__');
- $config = require __DIR__ . '/.php_cs.common.php';
- // Additional rules for tests
- $config = array_merge(
- $config,
- [
- 'declare_strict_types' => true,
- ]
- );
- return PhpCsFixer\Config::create()
- ->setFinder($finder)
- ->setRules($config)
- ->setRiskyAllowed(true)
- ->setCacheFile(__DIR__ . '/.php_cs.tests.cache');
|