|
@@ 406-409 (lines=4) @@
|
| 403 |
|
$roles = array(); |
| 404 |
|
for($i = 0; $i < $count; $i++) |
| 405 |
|
{ |
| 406 |
|
if(isset($entities[$i]['status']) && ($entities[$i]['status'] === 'filled' || $entities[$i]['status'] === 'pending')) |
| 407 |
|
{ |
| 408 |
|
continue; |
| 409 |
|
} |
| 410 |
|
if(!isset($roles[$entities[$i]['roleID']])) |
| 411 |
|
{ |
| 412 |
|
$roles[$entities[$i]['roleID']] = new \VolunteerRole($entities[$i]['roleID']); |
|
@@ 453-457 (lines=5) @@
|
| 450 |
|
$uuid = $this->genUUID(); |
| 451 |
|
for($i = 0; $i < $count; $i++) |
| 452 |
|
{ |
| 453 |
|
if(isset($entities[$i]['status']) && ($entities[$i]['status'] === 'filled' || $entities[$i]['status'] === 'pending')) |
| 454 |
|
{ |
| 455 |
|
$entities[$i] = false; |
| 456 |
|
continue; |
| 457 |
|
} |
| 458 |
|
if((string)$entities[$i]['_id'] === (string)new \MongoDB\BSON\ObjectId($myShift)) |
| 459 |
|
{ |
| 460 |
|
$entities[$i]['participant'] = $this->user->uid; |