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