Code Duplication    Length = 10-10 lines in 2 locations

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
}

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

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