src/Service/Prize.php 1 location
|
@@ 56-58 (lines=3) @@
|
| 53 |
|
$form->bind($prize); |
| 54 |
|
|
| 55 |
|
// If the identifier has not been set, I use the title to create one. |
| 56 |
|
if (empty($data['identifier']) && !empty($data['title'])) { |
| 57 |
|
$data['identifier'] = $data['title']; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
$form->setData($data); |
| 61 |
|
|
src/Service/Game.php 1 location
|
@@ 169-171 (lines=3) @@
|
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
// If the identifier has not been set, I use the title to create one. |
| 169 |
|
if ((! isset($data['identifier']) || empty($data['identifier'])) && isset($data['title'])) { |
| 170 |
|
$data['identifier'] = $data['title']; |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
$form->setData($data); |
| 174 |
|
|