renamed some inline variables

This commit is contained in:
tracer 2022-09-29 19:24:22 +02:00
parent 402934f02c
commit bc1b9c1204
1 changed files with 4 additions and 4 deletions

View File

@ -34,11 +34,11 @@ class CommandGroup
echo COLOR_YELLOW . str_pad(string: $this->name, length: $longestCommandLength + 1) . COLOR_WHITE . $this->description . COLOR_DEFAULT . PHP_EOL; echo COLOR_YELLOW . str_pad(string: $this->name, length: $longestCommandLength + 1) . COLOR_WHITE . $this->description . COLOR_DEFAULT . PHP_EOL;
foreach ($this->commands as $command) { foreach ($this->commands as $command) {
echo COLOR_GREEN . str_pad(string: ' ', length: $longestCommandLength + 1, pad_type: STR_PAD_LEFT) . $this->name . ':' . $command->getName(); echo COLOR_GREEN . str_pad(string: ' ', length: $longestCommandLength + 1, pad_type: STR_PAD_LEFT) . $this->name . ':' . $command->getName();
foreach ($command->getMandatoryParameters() as $parameter) { foreach ($command->getMandatoryParameters() as $optionals) {
echo ' <' . $parameter . '>'; echo ' <' . $optionals . '>';
} }
foreach ($command->getOptionalParameters() as $parameter) { foreach ($command->getOptionalParameters() as $mandatory) {
echo ' {' . $parameter . '}'; echo ' {' . $mandatory . '}';
} }
echo COLOR_WHITE . ' ' . $command->getDescription(); echo COLOR_WHITE . ' ' . $command->getDescription();
echo COLOR_DEFAULT . PHP_EOL; echo COLOR_DEFAULT . PHP_EOL;