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

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