Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from jeromegamez/composer-2
Add support for Composer ^2.0
- Loading branch information
Showing
22 changed files
with
286 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ composer.lock | |
composer.phar | ||
|
||
# CS | ||
.php_cs | ||
.php_cs.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
$header = <<<EOF | ||
This file is part of the composer-changelogs project. | ||
(c) Loïck Piera <pyrech@gmail.com> | ||
For the full copyright and license information, please view the LICENSE | ||
file that was distributed with this source code. | ||
EOF; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in([__DIR__]) | ||
; | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'array_syntax' => ['syntax' => 'short'], // Replace array() by [] | ||
'blank_line_after_opening_tag' => true, // Force new line after <?php | ||
'concat_space' => ['spacing' => 'one'], // Force space around concatenation operator | ||
'header_comment' => ['header' => $header], // Add the provided header comment ($header) | ||
'heredoc_to_nowdoc' => false, // Do not convert heredoc to nowdoc | ||
'no_superfluous_phpdoc_tags' => false, // Ensure complete PHPDoc annotations for all params | ||
'phpdoc_order' => true, // Order "use" statements alphabetically | ||
'simplified_null_return' => false, // Keep return null; | ||
'single_line_throw' => false, // Allow throwing exceptions in more than one row | ||
'strict_comparison' => true, // Strict comparison | ||
'strict_param' => true, // Functions should use $strict param | ||
'yoda_style' => null, // Ignore comparison style checks | ||
]) | ||
->setUsingCache(true) | ||
->setFinder($finder) | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.