-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: code style and error handling
- Loading branch information
1 parent
7e154d9
commit abb338b
Showing
94 changed files
with
10,378 additions
and
11,917 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,3 @@ | ||
#!/bin/sh | ||
|
||
docker run --rm -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix src | ||
docker-compose run --rm lint |
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,23 @@ | ||
<?php | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@PSR1' => true, | ||
'@PSR2' => true, | ||
'@PSR12' => true, | ||
'@PhpCsFixer' => true, | ||
'array_indentation' => true, | ||
'trailing_comma_in_multiline' => ['elements' => ['arrays']], | ||
'no_whitespace_before_comma_in_array' => true, | ||
'whitespace_after_comma_in_array' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'binary_operator_spaces' => [ | ||
'default' => 'single_space', | ||
'operators' => ['=>' => null], | ||
], | ||
'multiline_whitespace_before_semicolons' => false, | ||
]) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
); |
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.