Code Duplication    Length = 8-8 lines in 2 locations

src/Generators/Generator.php 2 locations

@@ 148-155 (lines=8) @@
145
    {
146
        // @group tag on the method overrides that on the controller
147
        $docBlockComment = $method->getDocComment();
148
        if ($docBlockComment) {
149
            $phpdoc = new DocBlock($docBlockComment);
150
            foreach ($phpdoc->getTags() as $tag) {
151
                if ($tag->getName() === 'group') {
152
                    return $tag->getContent();
153
                }
154
            }
155
        }
156
157
        $docBlockComment = $controller->getDocComment();
158
        if ($docBlockComment) {
@@ 158-165 (lines=8) @@
155
        }
156
157
        $docBlockComment = $controller->getDocComment();
158
        if ($docBlockComment) {
159
            $phpdoc = new DocBlock($docBlockComment);
160
            foreach ($phpdoc->getTags() as $tag) {
161
                if ($tag->getName() === 'group') {
162
                    return $tag->getContent();
163
                }
164
            }
165
        }
166
167
        return 'general';
168
    }