Code Duplication    Length = 10-10 lines in 2 locations

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

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

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