Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

@@ 389-398 (lines=10) @@
386
            'Meerdere filmgenres'
387
        ];
388
        $categories = array();
389
        foreach ($event->getCategories() as $category) {
390
            /* @var \Culturefeed_Cdb_Data_Category $category */
391
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
392
                $categories[] = array(
393
                    'label' => $category->getName(),
394
                    'domain' => $category->getType(),
395
                    'id' => $category->getId(),
396
                );
397
            }
398
        }
399
        $jsonLD->terms = $categories;
400
    }
401