Code Duplication    Length = 8-8 lines in 2 locations

src/Tools/Generator.php 2 locations

@@ 225-232 (lines=8) @@
222
    {
223
        // @group tag on the method overrides that on the controller
224
        $docBlockComment = $method->getDocComment();
225
        if ($docBlockComment) {
226
            $phpdoc = new DocBlock($docBlockComment);
227
            foreach ($phpdoc->getTags() as $tag) {
228
                if ($tag->getName() === 'group') {
229
                    return $tag->getContent();
230
                }
231
            }
232
        }
233
234
        $docBlockComment = $controller->getDocComment();
235
        if ($docBlockComment) {
@@ 235-242 (lines=8) @@
232
        }
233
234
        $docBlockComment = $controller->getDocComment();
235
        if ($docBlockComment) {
236
            $phpdoc = new DocBlock($docBlockComment);
237
            foreach ($phpdoc->getTags() as $tag) {
238
                if ($tag->getName() === 'group') {
239
                    return $tag->getContent();
240
                }
241
            }
242
        }
243
244
        return 'general';
245
    }