From 79d1958e9b4bdb73786b1aa735f56cd3fd2d53c0 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 20 Nov 2020 16:13:45 +0100 Subject: [PATCH] fix typo --- lib/Controller/PrinterController.php | 2 +- lib/Service/Printer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Controller/PrinterController.php b/lib/Controller/PrinterController.php index f827d27..8999a13 100644 --- a/lib/Controller/PrinterController.php +++ b/lib/Controller/PrinterController.php @@ -64,7 +64,7 @@ class PrinterController extends Controller return new JSONResponse($notAllowed); } - if (!$this->printer->isValidOrirentation($orientation)) { + if (!$this->printer->isValidOrientation($orientation)) { return new JSONResponse($error); } diff --git a/lib/Service/Printer.php b/lib/Service/Printer.php index 3150e11..6f20930 100644 --- a/lib/Service/Printer.php +++ b/lib/Service/Printer.php @@ -34,7 +34,7 @@ class Printer /** * Validates an orientation. */ - public function isValidOrirentation(string $orientation): bool + public function isValidOrientation(string $orientation): bool { return in_array($orientation, [ 'landscape',