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

@@ 1661-1663 (lines=3) @@
1658
            $this->secondImage = $data['secondImage'];
1659
        }
1660
1661
        if (isset($data['active']) && $data['active'] !== null) {
1662
            $this->active = $data['active'];
1663
        }
1664
1665
        $this->layout           = (isset($data['layout'])) ? $data['layout'] : null;
1666
        $this->stylesheet       = (isset($data['stylesheet'])) ? $data['stylesheet'] : null;