mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-06 06:48:39 +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"
|
printf "\nPHPStan checks\n\n"
|
||||||
./vendor/bin/phpstan analyse -l 9 -c Build/Config/phpstan.neon ./
|
./vendor/bin/phpstan analyse -l 9 -c Build/Config/phpstan.neon ./
|
||||||
|
|
||||||
printf "\nRector\n\n"
|
# printf "\nRector\n\n"
|
||||||
vendor/bin/rector process --config Build/Config/rector.php ./
|
# vendor/bin/rector process --config Build/Config/rector.php ./
|
||||||
|
|
||||||
printf "\nESlint checks\n\n"
|
printf "\nESlint checks\n\n"
|
||||||
npx eslint jsOMS/ -c Build/Config/.eslintrc.json
|
npx eslint jsOMS/ -c Build/Config/.eslintrc.json
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,9 @@ declare(strict_types=1);
|
||||||
|
|
||||||
function printUsage() : void
|
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" . '-d Destination/output directory.' . "\n";
|
||||||
echo "\t" . '-m Module directory.' . "\n";
|
echo "\t" . '-m Module directory.' . "\n";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ $behaviour = <<<BEHAVIOUR
|
||||||
You are a developer.
|
You are a developer.
|
||||||
BEHAVIOUR;
|
BEHAVIOUR;
|
||||||
|
|
||||||
$fileReader = function ($in, $filename)
|
$fileReader = function ($in, $filename): bool|string
|
||||||
{
|
{
|
||||||
$lines = '';
|
$lines = '';
|
||||||
$scopeStart = false;
|
$scopeStart = false;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ $behaviour = <<<BEHAVIOUR
|
||||||
You are a developer.
|
You are a developer.
|
||||||
BEHAVIOUR;
|
BEHAVIOUR;
|
||||||
|
|
||||||
$fileReader = function ($in, $filename)
|
$fileReader = function ($in, $filename): bool|string
|
||||||
{
|
{
|
||||||
$lines = '';
|
$lines = '';
|
||||||
$scopeStart = false;
|
$scopeStart = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user