Skip to content

Commit d85da77

Browse files
committed
Update CS
1 parent 06b9235 commit d85da77

23 files changed

+4736
-66
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
/zf-mkdoc-theme.tgz
77
/zf-mkdoc-theme/
88
/.phpunit.result.cache
9+
/vendor
10+
.php_cs.cache

.php_cs.dist

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in('src')
5+
->in('test')
6+
->exclude([
7+
'Workspace',
8+
])
9+
;
10+
11+
return PhpCsFixer\Config::create()
12+
->setRules([
13+
'@PSR2' => true,
14+
'no_unused_imports' => true,
15+
'array_syntax' => ['syntax' => 'short'],
16+
'void_return' => true,
17+
'ordered_class_elements' => true,
18+
'single_quote' => true,
19+
'heredoc_indentation' => true,
20+
'global_namespace_import' => true,
21+
])
22+
->setFinder($finder)
23+
;
24+

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,15 @@ $ composer require phly/phly-event-dispatcher
1717
## Documentation
1818

1919
Documentation is available in the [docs/book/](docs/book/) tree.
20+
21+
Contributing
22+
------------
23+
24+
This package is open source and welcomes contributions! Feel free to open a
25+
pull request on this repository.
26+
27+
Support
28+
-------
29+
30+
- Create an issue on the main [Phpactor](https://github.com/phpactor/phpactor) repository.
31+
- Join the `#phpactor` channel on the Slack [Symfony Devs](https://symfony.com/slack-invite) channel.

composer.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
"rss": "https://github.com/phly/phly-event-dispatcher/releases.atom"
1414
},
1515
"require": {
16-
"php": "^7.2 || ^8.0",
16+
"php": "^7.3",
1717
"psr/container": "^1.0",
1818
"psr/event-dispatcher": "^1.0"
1919
},
2020
"require-dev": {
21+
"ergebnis/composer-normalize": "^2.0",
2122
"fig/event-dispatcher-util": "^1.0",
23+
"friendsofphp/php-cs-fixer": "^2.17",
24+
"phpbench/phpbench": "^1.0.0-alpha5",
2225
"phpunit/phpunit": "^8.1.1",
2326
"zendframework/zend-coding-standard": "~1.0.0"
2427
},
@@ -65,5 +68,7 @@
6568
"cs-fix": "phpcbf",
6669
"test": "phpunit --colors=always",
6770
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
68-
}
71+
},
72+
"prefer-stable": true,
73+
"minimum-stability": "dev"
6974
}

0 commit comments

Comments
 (0)