mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 19:58:41 +00:00
automated phpcs fixes
This commit is contained in:
parent
153d304b34
commit
cf4e186e62
|
|
@ -18,8 +18,8 @@ printf "\nPHPCS checks\n\n"
|
|||
printf "\nPHPStan checks\n\n"
|
||||
./vendor/bin/phpstan analyse -l 9 -c Build/Config/phpstan.neon ./
|
||||
|
||||
printf "\nRector\n\n"
|
||||
vendor/bin/rector process --config Build/Config/rector.php ./
|
||||
# printf "\nRector\n\n"
|
||||
# vendor/bin/rector process --config Build/Config/rector.php ./
|
||||
|
||||
printf "\nESlint checks\n\n"
|
||||
npx eslint jsOMS/ -c Build/Config/.eslintrc.json
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@ declare(strict_types=1);
|
|||
|
||||
function printUsage() : void
|
||||
{
|
||||
echo 'Usage: -d <DESTINATION_PATH> -m <PATH>' . "\n\n";
|
||||
echo 'Usage: -d <DESTINATION_PATH> -m <PATH>
|
||||
|
||||
';
|
||||
echo "\t" . '-d Destination/output directory.' . "\n";
|
||||
echo "\t" . '-m Module directory.' . "\n";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ $behaviour = <<<BEHAVIOUR
|
|||
You are a developer.
|
||||
BEHAVIOUR;
|
||||
|
||||
$fileReader = function ($in, $filename)
|
||||
$fileReader = function ($in, $filename): bool|string
|
||||
{
|
||||
$lines = '';
|
||||
$scopeStart = false;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ $behaviour = <<<BEHAVIOUR
|
|||
You are a developer.
|
||||
BEHAVIOUR;
|
||||
|
||||
$fileReader = function ($in, $filename)
|
||||
$fileReader = function ($in, $filename): bool|string
|
||||
{
|
||||
$lines = '';
|
||||
$scopeStart = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user