Code Duplication    Length = 10-10 lines in 2 locations

src/Place/ReadModel/JSONLD/CdbXMLImporter.php 1 location

@@ 171-180 (lines=10) @@
168
    {
169
        $themeBlacklist = [];
170
        $categories = array();
171
        foreach ($actor->getCategories() as $category) {
172
            /* @var \Culturefeed_Cdb_Data_Category $category */
173
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
174
                $categories[] = array(
175
                    'label' => $category->getName(),
176
                    'domain' => $category->getType(),
177
                    'id' => $category->getId(),
178
                );
179
            }
180
        }
181
        $jsonLD->terms = $categories;
182
    }
183
}

src/Event/ReadModel/JSONLD/CdbXMLImporter.php 1 location

@@ 385-394 (lines=10) @@
382
            'Meerdere filmgenres'
383
        ];
384
        $categories = array();
385
        foreach ($event->getCategories() as $category) {
386
            /* @var \Culturefeed_Cdb_Data_Category $category */
387
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
388
                $categories[] = array(
389
                    'label' => $category->getName(),
390
                    'domain' => $category->getType(),
391
                    'id' => $category->getId(),
392
                );
393
            }
394
        }
395
        $jsonLD->terms = $categories;
396
    }
397