Minor - update php checks using ecs

pull/3064/head
Julio 5 years ago
parent 06ab54dd24
commit c0848201b3
  1. 7
      .php_cs.dist
  2. 11
      composer.json
  3. 4
      ecs.yaml

@ -14,22 +14,15 @@ $rules = [
'blank_line_after_opening_tag' => false,
'no_extra_consecutive_blank_lines' => true,
'multiline_comment_opening_closing' => true,
'yoda_style' => false,
'phpdoc_to_comment' => false,
'phpdoc_no_package' => false,
'phpdoc_annotation_without_dot' => false,
'increment_style' => ['style' => 'post'],
'no_useless_else' => false,
//'no_php4_constructor' => true,
'single_quote' => false,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'no_break_comment' => true,
//'@PHP56Migration' => true,
//'@PHP56Migration:risky' => true,
//'@PHPUnit57Migration:risky' => true,
// To be tested before insertion:
// 'strict_comparison' => true,
// 'strict_param' => true,

@ -166,14 +166,15 @@
"league/glide-symfony": "^1.0",
"cocur/slugify": "^3.2",
"knpuniversity/oauth2-client-bundle": "^1.31",
"php-translation/symfony-bundle": "^0.9.1"
"php-translation/symfony-bundle": "^0.9.1",
"phpstan/phpstan": "^0.12.3"
},
"config": {
"component-dir": "public/assets"
},
"require-dev": {
"symfony/var-dumper": "^4.0",
"friendsofphp/php-cs-fixer": "^2.7",
"friendsofphp/php-cs-fixer": "^2.16",
"symfony/browser-kit": "^4.0",
"symfony/css-selector": "^4.0",
"symfony/debug-bundle": "^4.0",
@ -186,14 +187,12 @@
"behat/mink-extension": "@stable",
"behat/mink-goutte-driver": "@stable",
"behat/mink-selenium2-driver": "@stable",
"phpstan/phpstan": "^0.11.19",
"phpstan/phpstan-symfony": "^0.11.6",
"phpstan/phpstan-doctrine": "^0.11.6",
"symplify/easy-coding-standard": "^7.1",
"vimeo/psalm": "^3.7"
},
"scripts": {
"analyse": [
"@php vendor/bin/phpstan analyse --ansi -c phpstan.neon -l max src"
"@php vendor/bin/ecs check src"
],
"auto-scripts": {
"cache:clear": "symfony-cmd",

@ -0,0 +1,4 @@
parameters:
sets:
- 'clean-code'
- 'symfony'
Loading…
Cancel
Save