Code Duplication    Length = 3-3 lines in 2 locations

src/PlaygroundGame/Service/Prize.php 1 location

@@ 43-45 (lines=3) @@
40
        $form->bind($prize);
41
42
        // If the identifier has not been set, I use the title to create one.
43
        if (empty($data['identifier']) && !empty($data['title'])) {
44
            $data['identifier'] = $data['title'];
45
        }
46
        
47
        $form->setData($data);
48

src/PlaygroundGame/Service/Game.php 1 location

@@ 124-126 (lines=3) @@
121
        }
122
123
        // If the identifier has not been set, I use the title to create one.
124
        if ((! isset($data['identifier']) || empty($data['identifier'])) && isset($data['title'])) {
125
            $data['identifier'] = $data['title'];
126
        }
127
128
        $form->setData($data);
129