Code Duplication    Length = 10-10 lines in 2 locations

src/Task/Development/GenerateMarkdownDoc.php 2 locations

@@ 572-581 (lines=10) @@
569
        if ($this->processMethod === false) {
570
            return "";
571
        }
572
        if (is_callable($this->filterMethods)) {
573
            $ret = call_user_func($this->filterMethods, $reflectedMethod);
574
            if (!$ret) {
575
                return "";
576
            }
577
        } else {
578
            if (!$reflectedMethod->isPublic()) {
579
                return "";
580
            }
581
        }
582
583
        $signature = $this->documentMethodSignature($reflectedMethod);
584
        $docblock = $this->documentMethodDocBlock($reflectedMethod);
@@ 602-611 (lines=10) @@
599
        if ($this->processProperty === false) {
600
            return "";
601
        }
602
        if (is_callable($this->filterProperties)) {
603
            $ret = call_user_func($this->filterProperties, $reflectedProperty);
604
            if (!$ret) {
605
                return "";
606
            }
607
        } else {
608
            if (!$reflectedProperty->isPublic()) {
609
                return "";
610
            }
611
        }
612
        $signature = $this->documentPropertySignature($reflectedProperty);
613
        $docblock = $this->documentPropertyDocBlock($reflectedProperty);
614
        $propertyDoc = $signature . $docblock;