Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

@@ 525-534 (lines=10) @@
522
            'Meerdere filmgenres'
523
        ];
524
        $categories = array();
525
        foreach ($event->getCategories() as $category) {
526
            /* @var \Culturefeed_Cdb_Data_Category $category */
527
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
528
                $categories[] = array(
529
                    'label' => $category->getName(),
530
                    'domain' => $category->getType(),
531
                    'id' => $category->getId(),
532
                );
533
            }
534
        }
535
        $jsonLD->terms = $categories;
536
    }
537