Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
simmstein committed Nov 20, 2020
1 parent 44c2705 commit 79d1958
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/PrinterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function printfile(string $sourcefile, string $orientation): JSONResponse
return new JSONResponse($notAllowed);
}

if (!$this->printer->isValidOrirentation($orientation)) {
if (!$this->printer->isValidOrientation($orientation)) {
return new JSONResponse($error);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Service/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function print(string $file, string $orientation)
/**
* Validates an orientation.
*/
public function isValidOrirentation(string $orientation): bool
public function isValidOrientation(string $orientation): bool
{
return in_array($orientation, [
'landscape',
Expand Down

0 comments on commit 79d1958

Please sign in to comment.