Code Duplication    Length = 8-8 lines in 2 locations

src/Generators/AbstractGenerator.php 2 locations

@@ 234-241 (lines=8) @@
231
        // @group tag on the method overrides that on the controller
232
        $method = $controller->getMethod($method);
233
        $docBlockComment = $method->getDocComment();
234
        if ($docBlockComment) {
235
            $phpdoc = new DocBlock($docBlockComment);
236
            foreach ($phpdoc->getTags() as $tag) {
237
                if ($tag->getName() === 'group') {
238
                    return $tag->getContent();
239
                }
240
            }
241
        }
242
243
        $docBlockComment = $controller->getDocComment();
244
        if ($docBlockComment) {
@@ 244-251 (lines=8) @@
241
        }
242
243
        $docBlockComment = $controller->getDocComment();
244
        if ($docBlockComment) {
245
            $phpdoc = new DocBlock($docBlockComment);
246
            foreach ($phpdoc->getTags() as $tag) {
247
                if ($tag->getName() === 'group') {
248
                    return $tag->getContent();
249
                }
250
            }
251
        }
252
253
        return 'general';
254
    }