Code Duplication    Length = 8-8 lines in 2 locations

src/think/console/output/Descriptor.php 2 locations

@@ 76-83 (lines=8) @@
73
     */
74
    protected function describeInputArgument(InputArgument $argument, array $options = [])
75
    {
76
        if (null !== $argument->getDefault()
77
            && (!is_array($argument->getDefault())
78
                || count($argument->getDefault()))
79
        ) {
80
            $default = sprintf('<comment> [default: %s]</comment>', $this->formatDefaultValue($argument->getDefault()));
81
        } else {
82
            $default = '';
83
        }
84
85
        $totalWidth   = $options['total_width'] ?? strlen($argument->getName());
86
        $spacingWidth = $totalWidth - strlen($argument->getName()) + 2;
@@ 100-107 (lines=8) @@
97
     */
98
    protected function describeInputOption(InputOption $option, array $options = [])
99
    {
100
        if ($option->acceptValue() && null !== $option->getDefault()
101
            && (!is_array($option->getDefault())
102
                || count($option->getDefault()))
103
        ) {
104
            $default = sprintf('<comment> [default: %s]</comment>', $this->formatDefaultValue($option->getDefault()));
105
        } else {
106
            $default = '';
107
        }
108
109
        $value = '';
110
        if ($option->acceptValue()) {