Code Duplication    Length = 9-9 lines in 2 locations

Protocol/Parser/AtomParser.php 1 location

@@ 167-175 (lines=9) @@
164
     * @param SimpleXMLElement $element
165
     * @param ItemInInterface $item
166
     */
167
    protected function parseCategories(SimpleXMLElement $element, ItemInInterface $item)
168
    {
169
        foreach ($element->category as $xmlCategory) {
170
            $category = new Category();
171
            $category->setName($this->getAttributeValue($xmlCategory, 'term'));
172
173
            $item->addCategory($category);
174
        }
175
    }
176
}
177

Protocol/Parser/RssParser.php 1 location

@@ 191-199 (lines=9) @@
188
     * @param SimpleXMLElement $element
189
     * @param ItemInInterface $item
190
     */
191
    protected function parseCategories(SimpleXMLElement $element, ItemInInterface $item)
192
    {
193
        foreach ($element->category as $xmlCategory) {
194
            $category = new Category();
195
            $category->setName((string) $xmlCategory);
196
197
            $item->addCategory($category);
198
        }
199
    }
200
201
    /**
202
     * Parse author: