Code Duplication    Length = 10-10 lines in 2 locations

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

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

@@ 539-548 (lines=10) @@
536
            'Meerdere filmgenres'
537
        ];
538
        $categories = array();
539
        foreach ($event->getCategories() as $category) {
540
            /* @var \Culturefeed_Cdb_Data_Category $category */
541
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
542
                $categories[] = array(
543
                    'label' => $category->getName(),
544
                    'domain' => $category->getType(),
545
                    'id' => $category->getId(),
546
                );
547
            }
548
        }
549
        $jsonLD->terms = $categories;
550
    }
551