File tree Expand file tree Collapse file tree 5 files changed +16
-17
lines changed
Expand file tree Collapse file tree 5 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 22# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
33
44# Ignore all test and documentation with "export-ignore".
5- /.editorconfig export-ignore
6- /.gitattributes export-ignore
7- /.github export-ignore
8- /.gitignore export-ignore
9- /.php_cs .dist export-ignore
10- /example export-ignore
11- /phpunit.xml.dist export-ignore
12- /tests export-ignore
5+ /.editorconfig export-ignore
6+ /.gitattributes export-ignore
7+ /.github export-ignore
8+ /.gitignore export-ignore
9+ /.php-cs-fixer .dist.php export-ignore
10+ /example export-ignore
11+ /phpunit.xml.dist export-ignore
12+ /tests export-ignore
1313
1414# All test snapshots and text stubs must have LF line endings
1515tests /** /__snapshots__ /** text eol =lf
Original file line number Diff line number Diff line change 1515 - name : Run PHP CS Fixer
1616 uses : docker://oskarstark/php-cs-fixer-ga
1717 with :
18- args : --config=.php_cs .dist --allow-risky=yes
18+ args : --config=.php-cs-fixer .dist.php --allow-risky=yes
1919
2020 - name : Commit changes
2121 uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change 11.idea
2- .php_cs
3- .php_cs.cache
2+ .php-cs-fixer.cache
43.phpunit.result.cache
54build
65composer.lock
Original file line number Diff line number Diff line change 11<?php
22
3- $ finder = Symfony \ Component \ Finder \Finder::create ()
3+ $ finder = PhpCsFixer \Finder::create ()
44 ->in ([
55 __DIR__ . '/src ' ,
66 __DIR__ . '/tests ' ,
1010 ->ignoreDotFiles (true )
1111 ->ignoreVCS (true );
1212
13- return PhpCsFixer \Config:: create ( )
13+ return ( new PhpCsFixer \Config () )
1414 ->setRules ([
1515 '@PSR2 ' => true ,
1616 'array_syntax ' => ['syntax ' => 'short ' ],
17- 'ordered_imports ' => ['sortAlgorithm ' => 'alpha ' ],
17+ 'ordered_imports ' => ['sort_algorithm ' => 'alpha ' ],
1818 'no_unused_imports ' => true ,
1919 'not_operator_with_successor_space ' => true ,
20- 'trailing_comma_in_multiline_array ' => true ,
20+ 'trailing_comma_in_multiline ' => [ ' elements ' => [ ' arrays ' ]] ,
2121 'phpdoc_scalar ' => true ,
2222 'unary_operator_spaces ' => true ,
2323 'binary_operator_spaces ' => true ,
2828 'phpdoc_var_without_name ' => true ,
2929 'class_attributes_separation ' => [
3030 'elements ' => [
31- 'method ' ,
31+ 'method ' => ' one ' ,
3232 ],
3333 ],
3434 'method_argument_space ' => [
Original file line number Diff line number Diff line change 44
55class Filename
66{
7- static public function cleanFilename (string $ raw ): string
7+ public static function cleanFilename (string $ raw ): string
88 {
99 // Remove anything which isn't a word, whitespace, number
1010 // or any of the following caracters -_~,;[]().
You can’t perform that action at this time.
0 commit comments