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

@@ 339-348 (lines=10) @@
336
            'Meerdere filmgenres'
337
        ];
338
        $categories = array();
339
        foreach ($event->getCategories() as $category) {
340
            /* @var \Culturefeed_Cdb_Data_Category $category */
341
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
342
                $categories[] = array(
343
                    'label' => $category->getName(),
344
                    'domain' => $category->getType(),
345
                    'id' => $category->getId(),
346
                );
347
            }
348
        }
349
        $jsonLD->terms = $categories;
350
    }
351