Code Duplication    Length = 3-3 lines in 7 locations

src/Entity/MemoryCard.php 1 location

@@ 331-333 (lines=3) @@
328
            $this->title = $data['title'];
329
        }
330
331
        if (isset($data['description']) && $data['description'] !== null) {
332
            $this->description = $data['description'];
333
        }
334
335
        if (isset($data['jsonData']) && $data['jsonData'] !== null) {
336
            $this->jsonData = $data['jsonData'];

src/Entity/Prize.php 1 location

@@ 373-375 (lines=3) @@
370
            $this->title = $data['title'];
371
        }
372
373
        if (isset($data['qty']) && $data['qty'] !== null) {
374
            $this->qty = $data['qty'];
375
        }
376
377
        if (isset($data['identifier']) && $data['identifier'] !== null) {
378
            $this->identifier = $data['identifier'];

src/Entity/QuizAnswer.php 1 location

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

src/Entity/QuizQuestion.php 2 locations

@@ 574-576 (lines=3) @@
571
            $this->question = $data['question'];
572
        }
573
574
        if (isset($data['hint']) && $data['hint'] !== null) {
575
            $this->hint = $data['hint'];
576
        }
577
578
        if (isset($data['jsonData']) && $data['jsonData'] !== null) {
579
            $this->jsonData = $data['jsonData'];
@@ 582-584 (lines=3) @@
579
            $this->jsonData = $data['jsonData'];
580
        }
581
582
        if (isset($data['type']) && $data['type'] !== null) {
583
            $this->type = $data['type'];
584
        }
585
586
        if (isset($data['position']) && $data['position'] !== null) {
587
            $this->position = $data['position'];

src/Entity/TradingCardModel.php 2 locations

@@ 526-528 (lines=3) @@
523
            $this->title = $data['title'];
524
        }
525
526
        if (isset($data['description']) && $data['description'] !== null) {
527
            $this->description = $data['description'];
528
        }
529
530
        if (isset($data['jsonData']) && $data['jsonData'] !== null) {
531
            $this->jsonData = $data['jsonData'];
@@ 538-540 (lines=3) @@
535
            $this->distribution = $data['distribution'];
536
        }
537
538
        if (isset($data['type']) && $data['type'] !== null) {
539
            $this->type = $data['type'];
540
        }
541
542
        if (isset($data['family']) && $data['family'] !== null) {
543
            $this->family = $data['family'];