Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 336-345 (lines=10) @@
333
            'Meerdere filmgenres'
334
        ];
335
        $categories = array();
336
        foreach ($event->getCategories() as $category) {
337
            /* @var \Culturefeed_Cdb_Data_Category $category */
338
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
339
                $categories[] = array(
340
                    'label' => $category->getName(),
341
                    'domain' => $category->getType(),
342
                    'id' => $category->getId(),
343
                );
344
            }
345
        }
346
        $jsonLD->terms = $categories;
347
    }
348

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

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