Skip to content

Commit

Permalink
add descom/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed Oct 20, 2023
1 parent 6ff4688 commit 535d12a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
28 changes: 1 addition & 27 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 535d12a

Please sign in to comment.