Code Duplication    Length = 3-3 lines in 2 locations

src/PlaygroundGame/Entity/QuizAnswer.php 1 location

@@ 355-357 (lines=3) @@
352
            $this->position = $data['position'];
353
        }
354
355
        if (isset($data['image']) && $data['image'] !== null) {
356
            $this->image = $data['image'];
357
        }
358
359
        if (isset($data['video']) && $data['video'] !== null) {
360
            $this->video = $data['video'];

src/PlaygroundGame/Entity/QuizQuestion.php 1 location

@@ 586-588 (lines=3) @@
583
            $this->weight = $data['weight'];
584
        }
585
586
        if (isset($data['image']) && $data['image'] !== null) {
587
            $this->image = $data['image'];
588
        }
589
590
        if (isset($data['video']) && $data['video'] !== null) {
591
            $this->video = $data['video'];