24 lines
585 B
PHP
24 lines
585 B
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in('app')
|
|
->in('database')
|
|
->in('routes')
|
|
->in('tests');
|
|
|
|
$config = new PhpCsFixer\Config();
|
|
return $config->setRules([
|
|
'@Symfony' => true,
|
|
'align_multiline_comment' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'increment_style' => ['style' => 'post'],
|
|
'list_syntax' => ['syntax' => 'short'],
|
|
'yoda_style' => false,
|
|
'global_namespace_import' => [
|
|
'import_constants' => true,
|
|
'import_functions' => true,
|
|
'import_classes' => null,
|
|
],
|
|
])
|
|
->setFinder($finder);
|