diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 51bfcbf..d42ca1b 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -11,31 +11,5 @@ ->ignoreVCS(true); return (new PhpCsFixer\Config()) - ->setRules([ - '@PSR12' => true, - 'array_syntax' => ['syntax' => 'short'], - 'ordered_imports' => ['sort_algorithm' => 'alpha'], - 'no_unused_imports' => true, - 'not_operator_with_successor_space' => true, - 'trailing_comma_in_multiline' => true, - 'phpdoc_scalar' => true, - 'unary_operator_spaces' => true, - 'binary_operator_spaces' => true, - 'blank_line_before_statement' => [ - 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], - ], - 'phpdoc_single_line_var_spacing' => true, - 'phpdoc_var_without_name' => true, - 'class_attributes_separation' => [ - 'elements' => [ - 'method' => 'one', - ], - ], - 'method_argument_space' => [ - 'on_multiline' => 'ensure_fully_multiline', - 'keep_multiple_spaces_after_comma' => true, - ], - 'single_trait_insert_per_statement' => true, - 'php_unit_method_casing' => ['case' => 'camel_case'], - ]) + ->setRules(Descom\Dev\CsFixer::rules()) ->setFinder($finder); diff --git a/composer.json b/composer.json index b5d1518..3f7858c 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,10 @@ "minimum-stability": "dev", "prefer-stable": true, "require-dev": { + "descom/dev": "^1.0", "friendsofphp/php-cs-fixer": "^3.4", - "phpunit/phpunit": "^9.5", - "phpstan/phpstan": "^1.9" + "phpstan/phpstan": "^1.11", + "phpunit/phpunit": "^9.5" }, "autoload": { "psr-4": {