Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

@@ 562-571 (lines=10) @@
559
            'Meerdere filmgenres'
560
        ];
561
        $categories = array();
562
        foreach ($event->getCategories() as $category) {
563
            /* @var \Culturefeed_Cdb_Data_Category $category */
564
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
565
                $categories[] = array(
566
                    'label' => $category->getName(),
567
                    'domain' => $category->getType(),
568
                    'id' => $category->getId(),
569
                );
570
            }
571
        }
572
        $jsonLD->terms = $categories;
573
    }
574