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

@@ 1807-1809 (lines=3) @@
1804
            $this->secondImage = $data['secondImage'];
1805
        }
1806
1807
        if (isset($data['active']) && $data['active'] !== null) {
1808
            $this->active = $data['active'];
1809
        }
1810
1811
        $this->layout           = (isset($data['layout'])) ? $data['layout'] : null;
1812
        $this->stylesheet       = (isset($data['stylesheet'])) ? $data['stylesheet'] : null;