Code Duplication    Length = 3-3 lines in 2 locations

src/UI/Help/AbstractHelp.php 2 locations

@@ 89-91 (lines=3) @@
86
        $name = '<c1><'.$argument->getName().'></c1>';
87
        $defaultValue = $argument->getDefaultValue();
88
89
        if (null !== $defaultValue && (!is_array($defaultValue) || count($defaultValue))) {
90
            $description .= sprintf(' <b>(default: %s)</b>', $this->formatValue($defaultValue));
91
        }
92
93
        $layout->add(new LabeledParagraph($name, $description));
94
    }
@@ 159-161 (lines=3) @@
156
            $name .= sprintf(' (%s)', $alternativeName);
157
        }
158
159
        if ($option->acceptsValue() && null !== $defaultValue && (!is_array($defaultValue) || count($defaultValue))) {
160
            $description .= sprintf(' <b>(default: %s)</b>', $this->formatValue($defaultValue));
161
        }
162
163
        if ($option->isMultiValued()) {
164
            $description .= ' <b>(multiple values allowed)</b>';