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',