Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

@@ 258-267 (lines=10) @@
255
            'Meerdere filmgenres',
256
        ];
257
        $categories = array();
258
        foreach ($event->getCategories() as $category) {
259
            /* @var \Culturefeed_Cdb_Data_Category $category */
260
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
261
                $categories[] = array(
262
                    'label' => $category->getName(),
263
                    'domain' => $category->getType(),
264
                    'id' => $category->getId(),
265
                );
266
            }
267
        }
268
        $jsonLD->terms = $categories;
269
    }
270