composer: bump dependencies, move to php-cs v2

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
pull/43/head
Kevin Decherf 7 years ago
parent bbe9021fe7
commit 694f0308fe
  1. 33
      .php_cs
  2. 10
      composer.json

@ -1,20 +1,25 @@
<?php
return Symfony\CS\Config\Config::create()
return PhpCsFixer\Config::create()
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
// use default SYMFONY_LEVEL and extra fixers:
->fixers(array(
'concat_with_spaces',
'ordered_use',
'phpdoc_order',
'strict',
'strict_param',
'long_array_syntax',
))
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->setRiskyAllowed(true)
->setRules([
'concat_space' => [
'spacing' => 'one',
],
'ordered_imports' => true,
'phpdoc_order' => true,
'strict_comparison' => true,
'strict_param' => true,
'array_syntax' => [
'syntax' => 'long',
],
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude([
'vendor',
])
->in(__DIR__)
->exclude(array('vendor'))
)
;

@ -24,16 +24,16 @@
"role": "Developer (original JS version)"
}],
"require": {
"php": ">=5.3.3",
"php": ">=5.6.0",
"ext-mbstring": "*",
"psr/log": "^1.0",
"electrolinux/php-html5lib": "^0.1.0"
},
"require-dev": {
"satooshi/php-coveralls": "~0.6",
"friendsofphp/php-cs-fixer": "<2",
"monolog/monolog": "^1.13",
"symfony/phpunit-bridge": "^3.2"
"php-coveralls/php-coveralls": "^2.1",
"friendsofphp/php-cs-fixer": "^2.14",
"monolog/monolog": "^1.24",
"symfony/phpunit-bridge": "^4.2.3"
},
"suggest": {
"ext-tidy": "Used to clean up given HTML and to avoid problems with bad HTML structure."

Loading…
Cancel
Save