Code Duplication    Length = 11-11 lines in 2 locations

src/Builder/PhpDomainBuilder.php 2 locations

@@ 141-151 (lines=11) @@
138
    /**
139
     * @param Constant $constant
140
     */
141
    private function addConstant(Constant $constant) {
142
        $this->beginPhpDomain('const', $constant->getName() . ' = ' . $constant->getValue());
143
        $docBlock = $constant->getDocBlock();
144
        $this->addDocBlockDescription($constant);
145
        if ($docBlock) {
146
            foreach ($docBlock->getTags() as $tag) {
147
                $this->addDocblockTag($tag->getName(), $docBlock);
148
            }
149
        }
150
        $this->endPhpDomain();
151
    }
152
153
    /**
154
     * @param Property[] $properties
@@ 170-180 (lines=11) @@
167
    /**
168
     * @param Property $property
169
     */
170
    private function addProperty(Property $property) {
171
        $this->beginPhpDomain('attr', $property->getName());
172
        $docBlock = $property->getDocBlock();
173
        $this->addDocBlockDescription($property);
174
        if ($docBlock) {
175
            foreach ($docBlock->getTags() as $tag) {
176
                $this->addDocblockTag($tag->getName(), $docBlock);
177
            }
178
        }
179
        $this->endPhpDomain();
180
    }
181
182
    /**
183
     * @param Interface_|Class_|Trait_ $element