-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/service and testing update (#18)
* Update packages, fix more stuff * Update more packages, re-add doctrine/common for ClassUtils * Update code style * Update PHPUnit config, services and more * Remove pure from abstract event * Add some more things * Use update instead of install to not respect lock (only for caching purposes) * Update dependency injection test package * Fix test? * Update more stuff * QC fix * QC fix * Move to newer service configuration for 5.4+ services * CS fix * Update kernel config * Update GH Actions * Prevent tests from running in parallel for some reason it breaks stuff * Fix composer caches? --------- Co-authored-by: Paweł Kąkol <pk@tksolutions.pl>
- Loading branch information
Showing
66 changed files
with
2,000 additions
and
2,162 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
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,65 +1,49 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
$finder = (new PhpCsFixer\Finder()) | ||
->in(__DIR__) | ||
->exclude('assets') | ||
->exclude('var') | ||
->exclude('bin') | ||
->exclude('config') | ||
->exclude('docker') | ||
->exclude('files') | ||
->exclude('public') | ||
->exclude('scripts') | ||
->exclude('templates') | ||
->exclude('tools') | ||
->exclude('translations') | ||
->exclude('var') | ||
->exclude('vendor'); | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@PSR2' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'no_superfluous_phpdoc_tags' => false, | ||
'ternary_to_null_coalescing' => true, | ||
'no_useless_else' => true, | ||
'no_useless_return' => true, | ||
'@Symfony' => true, | ||
'blank_line_before_statement' => [ | ||
'statements' => [ | ||
'declare', | ||
'return', | ||
'throw', | ||
'try', | ||
'if', | ||
'for', | ||
'while', | ||
'foreach', | ||
], | ||
], | ||
'cast_spaces' => ['space' => 'none'], | ||
'constant_case' => ['case' => 'lower'], | ||
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], | ||
'phpdoc_align' => false, | ||
'single_line_throw' => false, | ||
'yoda_style' => true, | ||
'trailing_comma_in_multiline' => ['elements' => ['arrays']], | ||
'array_indentation' => true, | ||
'no_unused_imports' => true, | ||
'ordered_imports' => ['sort_algorithm' => 'alpha'], | ||
'single_line_after_imports' => true, | ||
'single_import_per_statement' => true, | ||
'blank_line_after_opening_tag' => true, | ||
'compact_nullable_typehint' => true, | ||
'clean_namespace' => true, | ||
'cast_spaces' => ['space' => 'single'], | ||
'constant_case' => ['case' => 'lower'], | ||
'full_opening_tag' => true, | ||
'indentation_type' => true, | ||
'lowercase_cast' => true, | ||
'native_function_casing' => true, | ||
'no_alternative_syntax' => true, | ||
'new_with_braces' => true, | ||
'no_empty_statement' => true, | ||
'no_blank_lines_after_phpdoc' => true, | ||
'no_closing_tag' => true, | ||
'no_short_bool_cast' => true, | ||
'no_trailing_whitespace' => true, | ||
'no_unset_cast' => true, | ||
'phpdoc_align' => ['align' => 'left'], | ||
'phpdoc_indent' => true, | ||
'phpdoc_annotation_without_dot' => true, | ||
'phpdoc_trim' => true, | ||
'single_blank_line_at_eof' => true, | ||
'short_scalar_cast' => true, | ||
'single_class_element_per_statement' => true, | ||
'return_type_declaration' => ['space_before' => 'none'], | ||
'visibility_required' => true, | ||
'PedroTroller/line_break_between_method_arguments' => ['max-args' => false, 'max-length' => 1, 'automatic-argument-merge' => false], | ||
'phpdoc_to_comment' => false, | ||
'phpdoc_types_order' => false, | ||
'phpdoc_scalar' => false, | ||
'phpdoc_types' => false, | ||
'increment_style' => false, | ||
'ordered_class_elements' => true, | ||
'fully_qualified_strict_types' => false, | ||
'nullable_type_declaration_for_default_null_value' => false, | ||
'nullable_type_declaration' => ['syntax' => 'union'], | ||
'ordered_types' => ['sort_algorithm' => 'none', 'null_adjustment' => 'always_last'], | ||
'PedroTroller/line_break_between_method_arguments' => [ | ||
'max-args' => false, | ||
'max-length' => 1, | ||
'automatic-argument-merge' => false, | ||
'inline-attributes' => true, | ||
], | ||
]) | ||
->setFinder($finder) | ||
->registerCustomFixers(new PedroTroller\CS\Fixer\Fixers()) | ||
; | ||
->registerCustomFixers(new \PedroTroller\CS\Fixer\Fixers()); |
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.