Skip to content

Commit

Permalink
Remove apparently unused getProcessedHelp()
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Dec 16, 2024
1 parent 4a8d0dc commit 863133f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Command/CommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,26 +130,6 @@ public function getVisibleAliases(): array
return array_diff($this->getAliases(), $this->hiddenAliases);
}

/**
* {@inheritdoc}
*
* Overrides the default method so that the description is not repeated
* twice.
*/
public function getProcessedHelp(): string
{
$help = $this->getHelp();
if ($help === '') {
return $help;
}
$name = $this->getName();

$placeholders = ['%command.name%', '%command.full_name%'];
$replacements = [$name, $this->config->get('application.executable') . ' ' . $name];

return str_replace($placeholders, $replacements, $help);
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 863133f

Please sign in to comment.