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

@@ 201-211 (lines=11) @@
198
        $this->commandInfo->setHelp($help);
199
    }
200
201
    protected function processAllTags($tags)
202
    {
203
        // Iterate over all of the tags, and process them as necessary.
204
        foreach ($tags as $tag) {
205
            $processFn = [$this, 'processGenericTag'];
206
            if (array_key_exists($tag->getTag(), $this->tagProcessors)) {
207
                $processFn = [$this, $this->tagProcessors[$tag->getTag()]];
208
            }
209
            $processFn($tag);
210
        }
211
    }
212
}
213