src/Application/Service/GetShiftsInTimePeriod.php 1 location
|
@@ 46-51 (lines=6) @@
|
| 43 |
|
$invalid["end"] = self::INVALID_DATE_MESSAGE; |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
if (count($invalid)) { |
| 47 |
|
return $this->payload |
| 48 |
|
->setStatus(Payload::NOT_VALID) |
| 49 |
|
->setInput([$start, $end]) |
| 50 |
|
->setMessages($invalid); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
$shifts = $this->shiftMapper->findShiftsInTimePeriod($start, $end); |
| 54 |
|
|
src/Application/Service/UpdateShift.php 1 location
|
@@ 51-56 (lines=6) @@
|
| 48 |
|
$invalid["end"] = self::INVALID_DATE_MESSAGE; |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
if (count($invalid)) { |
| 52 |
|
return $this->payload |
| 53 |
|
->setStatus(Payload::NOT_VALID) |
| 54 |
|
->setInput([$start, $end]) |
| 55 |
|
->setMessages($invalid); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
$shift = $this->shiftMapper->find($shiftId); |
| 59 |
|
|