-
Notifications
You must be signed in to change notification settings - Fork 461
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 #560 from barbushin/develop
Next release after 4.1.0
- Loading branch information
Showing
19 changed files
with
619 additions
and
180 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 |
---|---|---|
@@ -1,38 +1,43 @@ | ||
<?php | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'array_syntax' => [ | ||
'syntax' => 'short' | ||
], | ||
'ordered_imports' => true, | ||
'phpdoc_to_comment' => false, | ||
'no_superfluous_phpdoc_tags' => true, | ||
'declare_strict_types' => true, | ||
'void_return' => true, | ||
'ordered_class_elements' => true, | ||
'global_namespace_import' => [ | ||
'import_classes' => true, | ||
'import_constants' => true, | ||
'import_functions' => false, | ||
], | ||
'native_constant_invocation' => true, | ||
'native_function_invocation' => true, | ||
'php_unit_test_case_static_method_calls' => [ | ||
'call_type' => 'this', | ||
], | ||
'php_unit_method_casing' => true, | ||
'php_unit_dedicate_assert' => [ | ||
'target' => 'newest', | ||
], | ||
]) | ||
declare(strict_types=1); | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__.'/src') | ||
->in(__DIR__.'/tests') | ||
->in(__DIR__.'/examples') | ||
->append([__FILE__]); | ||
|
||
$config = new PhpCsFixer\Config(); | ||
$config->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'array_syntax' => [ | ||
'syntax' => 'short', | ||
], | ||
'ordered_imports' => true, | ||
'phpdoc_to_comment' => false, | ||
'no_superfluous_phpdoc_tags' => true, | ||
'declare_strict_types' => true, | ||
'void_return' => true, | ||
'ordered_class_elements' => true, | ||
'global_namespace_import' => [ | ||
'import_classes' => true, | ||
'import_constants' => true, | ||
'import_functions' => false, | ||
], | ||
'native_constant_invocation' => true, | ||
'native_function_invocation' => true, | ||
'php_unit_test_case_static_method_calls' => [ | ||
'call_type' => 'this', | ||
], | ||
'php_unit_method_casing' => true, | ||
'php_unit_dedicate_assert' => [ | ||
'target' => 'newest', | ||
], | ||
]) | ||
->setRiskyAllowed(true) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->in(__DIR__.'/src') | ||
->in(__DIR__.'/tests') | ||
->in(__DIR__.'/examples') | ||
) | ||
->setFinder($finder) | ||
; | ||
|
||
return $config; |
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
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.