src/PlaygroundGame/Service/Game.php 2 locations
|
@@ 120-122 (lines=3) @@
|
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
// If the identifier has not been set, I use the title to create one. |
| 120 |
|
if (empty($data['identifier']) && ! empty($data['title'])) { |
| 121 |
|
$data['identifier'] = $data['title']; |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
$form->setData($data); |
| 125 |
|
|
|
@@ 309-311 (lines=3) @@
|
| 306 |
|
$data['publicationDate'] = $data['startDate']; |
| 307 |
|
} |
| 308 |
|
|
| 309 |
|
if ((! isset($data['identifier']) || empty($data['identifier'])) && isset($data['title'])) { |
| 310 |
|
$data['identifier'] = $data['title']; |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
$form->setData($data); |
| 314 |
|
|
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 |
|
|