New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CS] Update config for php-cs-fixer v2.0 and remove StyleCI config/badge #992
Changes from 6 commits
71a58db
1834377
a71818e
7f919e9
d922d94
eccadb8
2d64fb4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
$header = <<<'EOF' | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This blank line needs to be removed, and the spaces before the other header lines need to be removed, as well. It should be: $header = <<<'EOF'
This file is part of the `liip/LiipImagineBundle` project.
(c) https://github.com/liip/LiipImagineBundle/graphs/contributors
For the full copyright and license information, please view the LICENSE.md
file that was distributed with this source code.
EOF; |
||
This file is part of the `liip/LiipImagineBundle` project. | ||
|
||
(c) https://github.com/liip/LiipImagineBundle/graphs/contributors | ||
|
||
For the full copyright and license information, please view the LICENSE.md | ||
file that was distributed with this source code. | ||
EOF; | ||
|
||
$config = PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to obey the cs rules defined here, in this file, itself. :-) Change to long array syntax here, and elsewhere in the file where short array syntax is used. |
||
'@Symfony' => true, | ||
'array_syntax' => ['syntax' => 'long'], | ||
'combine_consecutive_unsets' => true, | ||
'linebreak_after_opening_tag' => true, | ||
'header_comment' => ['header' => $header], | ||
'list_syntax' => ['syntax' => 'long'], | ||
'no_short_echo_tag' => true, | ||
'ordered_imports' => true, | ||
'php_unit_construct' => true, | ||
'php_unit_dedicate_assert' => true, | ||
'phpdoc_order' => true, | ||
]) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->name("*.php") | ||
->name("*.twig") | ||
->exclude('vendor/var') | ||
->in(__DIR__) | ||
) | ||
; |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a newline after the opening
<?php
and add our copyright, making it: