Code Duplication    Length = 11-11 lines in 2 locations

src/Builder/PhpDomainBuilder.php 2 locations

@@ 132-142 (lines=11) @@
129
    /**
130
     * @param Constant $constant
131
     */
132
    private function addConstant(Constant $constant) {
133
        $this->beginPhpDomain('const', $constant->getName() . ' = ' . $constant->getValue());
134
        $docBlock = $constant->getDocBlock();
135
        $this->addDocBlockDescription($constant);
136
        if ($docBlock) {
137
            foreach ($docBlock->getTags() as $tag) {
138
                $this->addDocblockTag($tag->getName(), $docBlock);
139
            }
140
        }
141
        $this->endPhpDomain();
142
    }
143
144
    /**
145
     * @param Property[] $properties
@@ 161-171 (lines=11) @@
158
    /**
159
     * @param Property $property
160
     */
161
    private function addProperty(Property $property) {
162
        $this->beginPhpDomain('attr', $property->getName());
163
        $docBlock = $property->getDocBlock();
164
        $this->addDocBlockDescription($property);
165
        if ($docBlock) {
166
            foreach ($docBlock->getTags() as $tag) {
167
                $this->addDocblockTag($tag->getName(), $docBlock);
168
            }
169
        }
170
        $this->endPhpDomain();
171
    }
172
173
    /**
174
     * @param Interface_|Class_|Trait_ $element