Code Duplication    Length = 3-3 lines in 2 locations

src/Entity/PrizeCategory.php 1 location

@@ 240-242 (lines=3) @@
237
            $this->identifier = $data['identifier'];
238
        }
239
240
        if (isset($data['active']) && $data['active'] !== null) {
241
            $this->active = $data['active'];
242
        }
243
244
        if (isset($data['picto']) && $data['picto'] !== null) {
245
            $this->picto = $data['picto'];

src/Entity/Game.php 1 location

@@ 1640-1642 (lines=3) @@
1637
            $this->secondImage = $data['secondImage'];
1638
        }
1639
1640
        if (isset($data['active']) && $data['active'] !== null) {
1641
            $this->active = $data['active'];
1642
        }
1643
1644
        $this->layout           = (isset($data['layout'])) ? $data['layout'] : null;
1645
        $this->stylesheet       = (isset($data['stylesheet'])) ? $data['stylesheet'] : null;