Code Duplication    Length = 10-10 lines in 2 locations

src/Parser/Internal/CommandDocBlockParser2.php 1 location

@@ 116-125 (lines=10) @@
113
        $this->addOptionOrArgumentTag($tag, $this->commandInfo->options());
114
    }
115
116
    protected function addOptionOrArgumentTag($tag, DefaultsWithDescriptions $set)
117
    {
118
        if (!$this->pregMatchNameAndDescription($tag->getDescription(), $match)) {
119
            return;
120
        }
121
        $variableName = $this->commandInfo->findMatchingOption($match['name']);
122
        $desc = $match['description'];
123
        $description = static::removeLineBreaks($desc);
124
        $set->add($variableName, $description);
125
    }
126
127
    /**
128
     * Store the data from a @default annotation in our argument or option store,

src/Parser/Internal/CommandDocBlockParser3.php 1 location

@@ 130-139 (lines=10) @@
127
        $this->addOptionOrArgumentTag($tag, $this->commandInfo->options());
128
    }
129
130
    protected function addOptionOrArgumentTag($tag, DefaultsWithDescriptions $set)
131
    {
132
        if (!$this->pregMatchNameAndDescription((string)$tag->getDescription(), $match)) {
133
            return;
134
        }
135
        $variableName = $this->commandInfo->findMatchingOption($match['name']);
136
        $desc = $match['description'];
137
        $description = static::removeLineBreaks($desc);
138
        $set->add($variableName, $description);
139
    }
140
141
    /**
142
     * Store the data from a @default annotation in our argument or option store,