diff options
author | Joas Schilling <coding@schilljs.com> | 2022-08-05 09:59:41 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-08-05 09:59:41 +0300 |
commit | 74e64c8ecc1870d8b44f01cb44c96681f8f99645 (patch) | |
tree | d855bcfb771715a6f17f17d22d599366b7a33d26 | |
parent | 3a3c4c4f6c96f55bd452c772bf48c00189080a12 (diff) |
Fix coding style
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Controller/BookingController.php | 2 | ||||
-rw-r--r-- | lib/Service/Appointments/BookingService.php | 2 | ||||
-rw-r--r-- | lib/Service/Appointments/MailService.php | 2 | ||||
-rw-r--r-- | tests/php/unit/Controller/BookingControllerTest.php | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/Controller/BookingController.php b/lib/Controller/BookingController.php index 181b0d16..a8a564c2 100644 --- a/lib/Controller/BookingController.php +++ b/lib/Controller/BookingController.php @@ -184,7 +184,7 @@ class BookingController extends Controller { try { $booking = $this->bookingService->book($config, $start, $end, $timeZone, $displayName, $email, $description); } catch (NoSlotFoundException $e) { - $this->logger->warning('No slot available for start: ' . $start . ', end: ' . $end . ', config id: ' . $appointmentConfigId , ['exception' => $e]); + $this->logger->warning('No slot available for start: ' . $start . ', end: ' . $end . ', config id: ' . $appointmentConfigId, ['exception' => $e]); return JsonResponse::fail(null, Http::STATUS_NOT_FOUND); } catch (InvalidArgumentException $e) { $this->logger->warning($e->getMessage(), ['exception' => $e]); diff --git a/lib/Service/Appointments/BookingService.php b/lib/Service/Appointments/BookingService.php index debc86f7..e1ce8852 100644 --- a/lib/Service/Appointments/BookingService.php +++ b/lib/Service/Appointments/BookingService.php @@ -121,7 +121,7 @@ class BookingService { /** * @throws ServiceException|DbException|NoSlotFoundException|InvalidArgumentException */ - public function book(AppointmentConfig $config,int $start, int $end, string $timeZone, string $displayName, string $email, ?string $description = null): Booking { + public function book(AppointmentConfig $config, int $start, int $end, string $timeZone, string $displayName, string $email, ?string $description = null): Booking { $bookingSlot = current($this->getAvailableSlots($config, $start, $end)); if (!$bookingSlot) { diff --git a/lib/Service/Appointments/MailService.php b/lib/Service/Appointments/MailService.php index 062cf253..8e8050e2 100644 --- a/lib/Service/Appointments/MailService.php +++ b/lib/Service/Appointments/MailService.php @@ -156,7 +156,7 @@ class MailService { 'long', 'short', new \DateTimeZone($booking->getTimezone()), - $this->lFactory->get('calendar',$l) + $this->lFactory->get('calendar', $l) ); $template->addBodyListItem($relativeDateTime, $l10n->t('Date:')); diff --git a/tests/php/unit/Controller/BookingControllerTest.php b/tests/php/unit/Controller/BookingControllerTest.php index 0c6bd02a..529cc2f4 100644 --- a/tests/php/unit/Controller/BookingControllerTest.php +++ b/tests/php/unit/Controller/BookingControllerTest.php @@ -144,7 +144,7 @@ class BookingControllerTest extends TestCase { ->method('getAvailableSlots') ->with($apptConfg, $sDT, $eDT); - $this->controller->getBookableSlots($apptConfg->getId(), $start,'Europe/Berlin'); + $this->controller->getBookableSlots($apptConfg->getId(), $start, 'Europe/Berlin'); } public function testGetBookableSlotsInvalidTimezone(): void { @@ -179,7 +179,7 @@ class BookingControllerTest extends TestCase { $this->logger->expects(self::once()) ->method('warning'); - $this->controller->getBookableSlots($apptConfg->getId(), $start,'Europe/Berlin'); + $this->controller->getBookableSlots($apptConfg->getId(), $start, 'Europe/Berlin'); } public function testBook(): void { |