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

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