Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

@@ 137-146 (lines=10) @@
134
    {
135
        $themeBlacklist = [];
136
        $categories = array();
137
        foreach ($actor->getCategories() as $category) {
138
            /* @var \Culturefeed_Cdb_Data_Category $category */
139
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
140
                $categories[] = array(
141
                    'label' => $category->getName(),
142
                    'domain' => $category->getType(),
143
                    'id' => $category->getId(),
144
                );
145
            }
146
        }
147
        $jsonLD->terms = $categories;
148
    }
149
}