-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use php-cs-fixer for formatting (#29)
* fix(build): rm key:generate in check-env target The docker container is guaranteed to not be running at this point. keygen happens last in the process. * qa: switch from pint to php-cs-fixer * ci: use make in run-checks action * ci: run checks directly on the gh runner instance * ci: use shivammathur/setup-php@v2 * style: run make fix * ci: add unit tests to run-checks action
- Loading branch information
1 parent
f2860d4
commit c19c1c0
Showing
20 changed files
with
1,328 additions
and
122 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 |
---|---|---|
|
@@ -16,6 +16,7 @@ Homestead.yaml | |
auth.json | ||
npm-debug.log | ||
yarn-error.log | ||
/.cache | ||
/.fleet | ||
/.idea | ||
/.vscode | ||
|
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,21 @@ | ||
<?php | ||
|
||
$finder = (new PhpCsFixer\Finder) | ||
->in(__DIR__) | ||
->exclude([ | ||
'vendor', | ||
'storage', | ||
'bootstrap', | ||
]) | ||
->notPath([ | ||
// 'dump.php', | ||
// 'src/exception_file.php', | ||
]); | ||
|
||
return (new PhpCsFixer\Config) | ||
->setRules([ | ||
'@PER-CS' => true, | ||
'@PHP83Migration' => true, | ||
]) | ||
->setFinder($finder) | ||
->setCacheFile(__DIR__.'/.cache/.php_cs.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
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.