public function getDescription()
{
$commandMethodReflection = $this->getCommandMethodReflection();
$lines = explode(chr(10), $commandMethodReflection->getDescription());
array_shift($lines);
$descriptionLines = [];
foreach ($lines as $line) {
$trimmedLine = trim($line);
if ($descriptionLines !== [] || $trimmedLine !== '') {
$descriptionLines[] = $trimmedLine;
}
}
$description = implode(chr(10), $descriptionLines);
if ($commandMethodReflection->getDeclaringClass()->implementsInterface(DescriptionAwareCommandControllerInterface::class)) {
$description = call_user_func([$this->controllerClassName, 'processDescription'], $this->controllerCommandName, $description, $this->objectManager);
}
return $description;
}