Code Duplication    Length = 3-3 lines in 4 locations

src/Entity/MemoryCard.php 1 location

@@ 335-337 (lines=3) @@
332
            $this->description = $data['description'];
333
        }
334
335
        if (isset($data['jsonData']) && $data['jsonData'] !== null) {
336
            $this->jsonData = $data['jsonData'];
337
        }
338
339
        if (!empty($data['image'])) {
340
            $this->image = $data['image'];

src/Entity/QuizAnswer.php 1 location

@@ 350-352 (lines=3) @@
347
            $this->explanation = $data['explanation'];
348
        }
349
350
        if (isset($data['jsonData']) && $data['jsonData'] !== null) {
351
            $this->jsonData = $data['jsonData'];
352
        }
353
354
        if (isset($data['type']) && $data['type'] !== null) {
355
            $this->type = $data['type'];

src/Entity/QuizQuestion.php 1 location

@@ 578-580 (lines=3) @@
575
            $this->hint = $data['hint'];
576
        }
577
578
        if (isset($data['jsonData']) && $data['jsonData'] !== null) {
579
            $this->jsonData = $data['jsonData'];
580
        }
581
582
        if (isset($data['type']) && $data['type'] !== null) {
583
            $this->type = $data['type'];

src/Entity/TradingCardModel.php 1 location

@@ 530-532 (lines=3) @@
527
            $this->description = $data['description'];
528
        }
529
530
        if (isset($data['jsonData']) && $data['jsonData'] !== null) {
531
            $this->jsonData = $data['jsonData'];
532
        }
533
534
        if (isset($data['distribution']) && $data['distribution'] !== null) {
535
            $this->distribution = $data['distribution'];