Code Duplication    Length = 3-3 lines in 2 locations

src/Entity/QuizAnswer.php 1 location

@@ 362-364 (lines=3) @@
359
            $this->position = $data['position'];
360
        }
361
362
        if (isset($data['image']) && $data['image'] !== null) {
363
            $this->image = $data['image'];
364
        }
365
366
        if (isset($data['video']) && $data['video'] !== null) {
367
            $this->video = $data['video'];

src/Entity/QuizQuestion.php 1 location

@@ 594-596 (lines=3) @@
591
            $this->weight = $data['weight'];
592
        }
593
594
        if (isset($data['image']) && $data['image'] !== null) {
595
            $this->image = $data['image'];
596
        }
597
598
        if (isset($data['video']) && $data['video'] !== null) {
599
            $this->video = $data['video'];