Code Duplication    Length = 11-11 lines in 2 locations

src/Parser/Internal/AbstractCommandDocBlockParser.php 1 location

@@ 52-62 (lines=11) @@
49
        $this->reflection = $reflection;
50
    }
51
52
    protected function processAllTags($phpdoc)
53
    {
54
        // Iterate over all of the tags, and process them as necessary.
55
        foreach ($phpdoc->getTags() as $tag) {
56
            $processFn = [$this, 'processGenericTag'];
57
            if (array_key_exists($tag->getName(), $this->tagProcessors)) {
58
                $processFn = [$this, $this->tagProcessors[$tag->getName()]];
59
            }
60
            $processFn($tag);
61
        }
62
    }
63
64
    /**
65
     * Parse the docBlock comment for this command, and set the

src/Parser/Internal/BespokeDocBlockParser.php 1 location

@@ 211-221 (lines=11) @@
208
        return !empty($nextLine);
209
    }
210
211
    protected function processAllTags($tags)
212
    {
213
        // Iterate over all of the tags, and process them as necessary.
214
        foreach ($tags as $tag) {
215
            $processFn = [$this, 'processGenericTag'];
216
            if (array_key_exists($tag->getTag(), $this->tagProcessors)) {
217
                $processFn = [$this, $this->tagProcessors[$tag->getTag()]];
218
            }
219
            $processFn($tag);
220
        }
221
    }
222
}
223