forked from atgp/factur-x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benjamin Dieleman
committed
Oct 24, 2023
1 parent
c38cc20
commit a5ccab2
Showing
4 changed files
with
40 additions
and
38 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,3 +1,5 @@ | ||
/vendor | ||
/composer.lock | ||
.idea | ||
|
||
.php-cs-fixer.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 |
---|---|---|
@@ -1,30 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* Adapted from config file distributed on php-cs-fixer vendor. | ||
*/ | ||
return PhpCsFixer\Config::create() | ||
->setRules(array( | ||
$finder = (new PhpCsFixer\Finder()) | ||
->in(['src/', 'tests/']) | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'array_syntax' => array('syntax' => 'long'), | ||
'combine_consecutive_unsets' => true, | ||
'no_superfluous_phpdoc_tags' => false, | ||
'phpdoc_separation' => false, | ||
'phpdoc_types_order' => false, | ||
'native_function_invocation' => false, | ||
'single_line_throw' => false, | ||
'heredoc_to_nowdoc' => true, | ||
'no_extra_consecutive_blank_lines' => array( | ||
'no_extra_blank_lines' => ['tokens' => [ | ||
'break', 'continue', 'extra', 'return', 'throw', 'use', | ||
'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block', | ||
), | ||
]], | ||
'no_unreachable_default_argument_value' => true, | ||
'no_useless_else' => true, | ||
'no_useless_return' => true, | ||
'ordered_class_elements' => true, | ||
'ordered_imports' => true, | ||
'phpdoc_add_missing_param_annotation' => true, | ||
'phpdoc_order' => true, | ||
'psr4' => true, | ||
)) | ||
'psr_autoloading' => true, | ||
'visibility_required' => ['elements' => ['property', 'method']], | ||
]) | ||
->setRiskyAllowed(true) | ||
->setUsingCache(false) | ||
// If we want to use cache for performance purposes, for now it's disabled | ||
->setCacheFile('app/cache/.php_cs.cache') | ||
->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