mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-17 04:13:46 +09:00
Updates to vendors etc
This commit is contained in:
@@ -92,7 +92,7 @@ class ReStructuredTextDescriptor extends Descriptor
|
||||
protected function describeInputDefinition(InputDefinition $definition, array $options = []): void
|
||||
{
|
||||
if ($showArguments = ((bool) $definition->getArguments())) {
|
||||
$this->write("Arguments\n".str_repeat($this->subsubsectionChar, 9))."\n\n";
|
||||
$this->write("Arguments\n".str_repeat($this->subsubsectionChar, 9));
|
||||
foreach ($definition->getArguments() as $argument) {
|
||||
$this->write("\n\n");
|
||||
$this->describeInputArgument($argument);
|
||||
@@ -167,7 +167,7 @@ class ReStructuredTextDescriptor extends Descriptor
|
||||
return 'Console Tool';
|
||||
}
|
||||
if ('UNKNOWN' !== $application->getVersion()) {
|
||||
return sprintf('%s %s', $application->getName(), $application->getVersion());
|
||||
return \sprintf('%s %s', $application->getName(), $application->getVersion());
|
||||
}
|
||||
|
||||
return $application->getName();
|
||||
@@ -209,7 +209,7 @@ class ReStructuredTextDescriptor extends Descriptor
|
||||
$commands = $this->removeAliasesAndHiddenCommands($commands);
|
||||
|
||||
$this->write("\n\n");
|
||||
$this->write(implode("\n", array_map(static fn ($commandName) => sprintf('- `%s`_', $commandName), array_keys($commands))));
|
||||
$this->write(implode("\n", array_map(static fn ($commandName) => \sprintf('- `%s`_', $commandName), array_keys($commands))));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -217,6 +217,7 @@ class ReStructuredTextDescriptor extends Descriptor
|
||||
{
|
||||
$globalOptions = [
|
||||
'help',
|
||||
'silent',
|
||||
'quiet',
|
||||
'verbose',
|
||||
'version',
|
||||
@@ -226,7 +227,7 @@ class ReStructuredTextDescriptor extends Descriptor
|
||||
$nonDefaultOptions = [];
|
||||
foreach ($definition->getOptions() as $option) {
|
||||
// Skip global options.
|
||||
if (!\in_array($option->getName(), $globalOptions)) {
|
||||
if (!\in_array($option->getName(), $globalOptions, true)) {
|
||||
$nonDefaultOptions[] = $option;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user