这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/composer.lock
/.deptrac.cache
/.phpunit.result.cache
/.php_cs.cache
/.php-cs-fixer.php
/.php-cs-fixer.cache
/build/
/vendor/
6 changes: 2 additions & 4 deletions .php_cs → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@
->in(['src', 'tests'])
;

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_before_statement' => true,
'concat_space' => ['spacing' => 'none'],
'declare_strict_types' => true,
'native_function_invocation' => true,
'native_function_invocation' => ['include' => ['@internal']],
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
'no_empty_statement' => true,
'no_extra_blank_lines' => true,
'no_extra_consecutive_blank_lines' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_unused_imports' => true,
Expand All @@ -32,4 +31,3 @@
])
->setFinder($finder)
;

12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ Downloads a phar for the given alias using phive and puts it into the specified

```json
{
"command": {
"phive-install": {
"alias": "dephpend",
"bin": "%target-dir%/dephpend",
"sig": "76835C9464877BDD"
}
"command": {
"phive-install": {
"alias": "dephpend",
"bin": "%target-dir%/dephpend",
"sig": "76835C9464877BDD"
}
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ tools/phpunit: vendor/bin/phpunit
ln -sf ../vendor/bin/phpunit tools/phpunit

tools/php-cs-fixer:
curl -Ls http://cs.symfony.com/download/php-cs-fixer-v2.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer
curl -Ls http://cs.symfony.com/download/php-cs-fixer-v3.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer

tools/deptrac:
curl -Ls https://github.com/qossmic/deptrac/releases/download/0.13.0/deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
Expand Down
2 changes: 1 addition & 1 deletion resources/checkstyle.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"website": "http://cs.symfony.com/",
"command": {
"phive-install": {
"alias": "php-cs-fixer@^2.0",
"alias": "php-cs-fixer@^3.0",
"bin": "%target-dir%/php-cs-fixer",
"sig": "E82B2FB314E9906E"
}
Expand Down