Code Duplication    Length = 3-3 lines in 2 locations

src/PlaygroundGame/Service/Game.php 1 location

@@ 154-156 (lines=3) @@
151
        }
152
153
        // If the identifier has not been set, I use the title to create one.
154
        if ((! isset($data['identifier']) || empty($data['identifier'])) && isset($data['title'])) {
155
            $data['identifier'] = $data['title'];
156
        }
157
158
        $form->setData($data);
159

src/PlaygroundGame/Service/Prize.php 1 location

@@ 54-56 (lines=3) @@
51
        $form->bind($prize);
52
53
        // If the identifier has not been set, I use the title to create one.
54
        if (empty($data['identifier']) && !empty($data['title'])) {
55
            $data['identifier'] = $data['title'];
56
        }
57
        
58
        $form->setData($data);
59