automated phpcs fixes

This commit is contained in:
Dennis Eichhorn 2023-05-31 13:21:46 +00:00
parent 153d304b34
commit cf4e186e62
4 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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";
}

View File

@ -15,7 +15,7 @@ $behaviour = <<<BEHAVIOUR
You are a developer.
BEHAVIOUR;
$fileReader = function ($in, $filename)
$fileReader = function ($in, $filename): bool|string
{
$lines = '';
$scopeStart = false;

View File

@ -15,7 +15,7 @@ $behaviour = <<<BEHAVIOUR
You are a developer.
BEHAVIOUR;
$fileReader = function ($in, $filename)
$fileReader = function ($in, $filename): bool|string
{
$lines = '';
$scopeStart = false;