mirror of
https://github.com/code-rhapsodie/connector-gemini.git
synced 2026-03-23 22:22:09 +01:00
35 lines
833 B
PHP
35 lines
833 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
use AdamWojs\PhpCsFixerPhpdocForceFQCN\Fixer\Phpdoc\ForceFQCNFixer;
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in(__DIR__ . '/src')
|
|
->in(__DIR__ . '/tests')
|
|
->files()->name('*.php');
|
|
|
|
return (new PhpCsFixer\Config())
|
|
->registerCustomFixers([
|
|
new ForceFQCNFixer(),
|
|
])
|
|
->setRules([
|
|
'AdamWojs/phpdoc_force_fqcn_fixer' => true,
|
|
'class_attributes_separation' => [
|
|
'elements' => [
|
|
'method' => 'one',
|
|
'property' => 'one',
|
|
],
|
|
],
|
|
'class_definition' => [
|
|
'single_item_single_line' => true,
|
|
'inline_constructor_arguments' => false,
|
|
],
|
|
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
|
|
])
|
|
->setFinder(
|
|
$finder
|
|
);
|
|
|