Code Duplication    Length = 3-3 lines in 2 locations

src/Entity/PrizeCategory.php 1 location

@@ 236-238 (lines=3) @@
233
            $this->title = $data['title'];
234
        }
235
236
        if (isset($data['identifier']) && $data['identifier'] !== null) {
237
            $this->identifier = $data['identifier'];
238
        }
239
240
        if (isset($data['active']) && $data['active'] !== null) {
241
            $this->active = $data['active'];

src/Entity/Prize.php 1 location

@@ 377-379 (lines=3) @@
374
            $this->qty = $data['qty'];
375
        }
376
377
        if (isset($data['identifier']) && $data['identifier'] !== null) {
378
            $this->identifier = $data['identifier'];
379
        }
380
381
        if (isset($data['unitPrice']) && $data['unitPrice'] !== null) {
382
            $this->unitPrice = $data['unitPrice'];