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

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