Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 504-513 (lines=10) @@
501
            'Meerdere filmgenres'
502
        ];
503
        $categories = array();
504
        foreach ($event->getCategories() as $category) {
505
            /* @var \Culturefeed_Cdb_Data_Category $category */
506
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
507
                $categories[] = array(
508
                    'label' => $category->getName(),
509
                    'domain' => $category->getType(),
510
                    'id' => $category->getId(),
511
                );
512
            }
513
        }
514
        $jsonLD->terms = $categories;
515
    }
516

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

@@ 162-171 (lines=10) @@
159
    {
160
        $themeBlacklist = [];
161
        $categories = array();
162
        foreach ($actor->getCategories() as $category) {
163
            /* @var \Culturefeed_Cdb_Data_Category $category */
164
            if ($category && !in_array($category->getName(), $themeBlacklist)) {
165
                $categories[] = array(
166
                    'label' => $category->getName(),
167
                    'domain' => $category->getType(),
168
                    'id' => $category->getId(),
169
                );
170
            }
171
        }
172
        $jsonLD->terms = $categories;
173
    }
174