Code Duplication    Length = 7-7 lines in 2 locations

src/Parser/Internal/AbstractCommandDocBlockParser.php 1 location

@@ 117-123 (lines=7) @@
114
    /**
115
     * Store the data from an @option annotation in our option descriptions.
116
     */
117
    protected function processOptionTag($tag)
118
    {
119
        if (!$this->pregMatchOptionNameAndDescription((string)$tag->getDescription(), $match)) {
120
            return;
121
        }
122
        $this->addOptionOrArgumentTag($tag, $this->commandInfo->options(), $match);
123
    }
124
125
    protected function addOptionOrArgumentTag($tag, DefaultsWithDescriptions $set, $nameAndDescription)
126
    {

src/Parser/Internal/BespokeDocBlockParser.php 1 location

@@ 77-83 (lines=7) @@
74
    /**
75
     * Store the data from an @option annotation in our option descriptions.
76
     */
77
    protected function processOptionTag($tag)
78
    {
79
        if (!$this->pregMatchOptionNameAndDescription((string)$tag->getContent(), $match)) {
80
            return;
81
        }
82
        $this->addOptionOrArgumentTag($tag, $this->commandInfo->options(), $match);
83
    }
84
85
    protected function addOptionOrArgumentTag($tag, DefaultsWithDescriptions $set, $nameAndDescription)
86
    {