Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 516-525 (lines=10) @@
513
            'Meerdere filmgenres'
514
        ];
515
        $categories = array();
516
        foreach ($event->getCategories() as $category) {
517
            /* @var \Culturefeed_Cdb_Data_Category $category */
518
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
519
                $categories[] = array(
520
                    'label' => $category->getName(),
521
                    'domain' => $category->getType(),
522
                    'id' => $category->getId(),
523
                );
524
            }
525
        }
526
        $jsonLD->terms = $categories;
527
    }
528

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

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