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

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