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

@@ 146-155 (lines=10) @@
143
    {
144
        $themeBlacklist = [];
145
        $categories = array();
146
        foreach ($actor->getCategories() as $category) {
147
            /* @var \Culturefeed_Cdb_Data_Category $category */
148
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
149
                $categories[] = array(
150
                    'label' => $category->getName(),
151
                    'domain' => $category->getType(),
152
                    'id' => $category->getId(),
153
                );
154
            }
155
        }
156
        $jsonLD->terms = $categories;
157
    }
158
}