Code Duplication    Length = 8-8 lines in 2 locations

src/Generators/Generator.php 2 locations

@@ 183-190 (lines=8) @@
180
    {
181
        // @group tag on the method overrides that on the controller
182
        $docBlockComment = $method->getDocComment();
183
        if ($docBlockComment) {
184
            $phpdoc = new DocBlock($docBlockComment);
185
            foreach ($phpdoc->getTags() as $tag) {
186
                if ($tag->getName() === 'group') {
187
                    return $tag->getContent();
188
                }
189
            }
190
        }
191
192
        $docBlockComment = $controller->getDocComment();
193
        if ($docBlockComment) {
@@ 193-200 (lines=8) @@
190
        }
191
192
        $docBlockComment = $controller->getDocComment();
193
        if ($docBlockComment) {
194
            $phpdoc = new DocBlock($docBlockComment);
195
            foreach ($phpdoc->getTags() as $tag) {
196
                if ($tag->getName() === 'group') {
197
                    return $tag->getContent();
198
                }
199
            }
200
        }
201
202
        return 'general';
203
    }