Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
darkalchemy committed May 9, 2022
1 parent db6471d commit 7d1d4c4
Show file tree
Hide file tree
Showing 7 changed files with 3,313 additions and 809 deletions.
37 changes: 19 additions & 18 deletions .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
<?php
<?php

declare(strict_types=1);

$config = PhpCsFixer\Config::create()
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
->ignoreDotFiles(true)
->ignoreVCS(true);

$config = new PhpCsFixer\Config();
return $config
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@PSR12' => true,
'@Symfony' => true,
'@PhpCsFixer' => true,
'array_syntax' => [ 'syntax' => 'short' ],
'binary_operator_spaces' => [ 'align_equals' => true, 'align_double_arrow' => true ],
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['operators' => ['=' => 'align_single_space', '=>' => 'align_single_space']],
'cast_spaces' => true,
'combine_consecutive_unsets' => true,
'concat_space' => [ 'spacing' => 'one' ],
'concat_space' => ['spacing' => 'one'],
'linebreak_after_opening_tag' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'no_extra_consecutive_blank_lines' => true,
'no_extra_blank_lines' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_whitespace_in_blank_line' => true,
'no_spaces_around_offset' => true,
Expand All @@ -33,23 +41,16 @@
'no_superfluous_phpdoc_tags' => false,
'single_quote' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => true,
'trailing_comma_in_multiline' => true,
'trim_array_spaces' => true,
'method_argument_space' => ['ensure_fully_multiline' => false],
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'no_break_comment' => false,
'blank_line_before_statement' => true,
'declare_equal_normalize' => [ 'space' => 'none' ],
'declare_equal_normalize' => ['space' => 'none'],
'declare_strict_types' => true,
'fully_qualified_strict_types' => true,
'blank_line_after_opening_tag' => true,
'yoda_style' => false,
'multiline_whitespace_before_semicolons' => [ 'strategy' => 'no_multi_line' ],
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
)
;

return $config;
->setFinder($finder);
39 changes: 24 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@
}
],
"require": {
"php": "^7.2|^8.0",
"php": "^7.4|^8.0",
"ext-curl": "*",
"darkalchemy/scrapeer": "^0.6.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"overtrue/phplint": "^2.0",
"phpstan/phpstan": "^0.12.32",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "3.*",
"symfony/var-dumper": "^5.1"
"friendsofphp/php-cs-fixer": "^3.0",
"overtrue/phplint": "^4.1.0",
"phpmd/phpmd": "^2.9",
"phpstan/phpstan": "^1.6.7",
"phpunit/phpunit": "^9.5.20",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.5",
"symfony/var-dumper": "^6.0.8"
},
"autoload": {
"psr-4": {
Expand All @@ -33,12 +35,19 @@
"config": {
"sort-packages": true
},
"scripts": {
"cleanup": "vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --show-progress=dots -vvv",
"post-install-cmd": "composer dump-autoload -o",
"post-update-cmd": "composer dump-autoload -o",
"phplint": "phplint ./ --exclude=vendor --no-cache --jobs=10 --ansi",
"phpcs": "phpcs -s",
"phpstan": "phpstan analyse src/ -l4"
}
"scripts": {
"cleanup": [
"vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --show-progress=dots -vvv",
"phplint ./ --exclude=vendor --exclude=public/resources --no-cache --jobs=10 --ansi",
"phpcs -s",
"phpmd . ansi phpmd.xml --exclude */vendor/*",
"phpstan analyse -c phpstan.neon"
],
"fix": "phpcbf",
"post-update-cmd": "composer dump-autoload -o",
"phplint": "phplint ./ --exclude=vendor --no-cache --jobs=10 --ansi",
"phpcs": "phpcs -s",
"phpmd": "phpmd . ansi phpmd.xml --exclude */vendor/*",
"phpstan": "phpstan analyse src/ -l8"
}
}
Loading

0 comments on commit 7d1d4c4

Please sign in to comment.