diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-10-05 16:00:59 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-10-05 16:00:59 +0300 |
commit | f10b92eac6833aff595dbe7b40a7ea09bd58acd5 (patch) | |
tree | 7ebd5dc5cf15a0cb87345d28b5014f5ee473c5b6 /lib | |
parent | 26ddaea1e218572f77ef010586304e3d76f40b8f (diff) |
Add default argument and type hints
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/TemplatesController.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Controller/TemplatesController.php b/lib/Controller/TemplatesController.php index 1724f660..e59a0396 100644 --- a/lib/Controller/TemplatesController.php +++ b/lib/Controller/TemplatesController.php @@ -195,11 +195,11 @@ class TemplatesController extends Controller { */ private function fetchPreview( Node $node, - $x, - $y, - $a = false, - $forceIcon = true, - string $mode): Http\Response { + int $x, + int $y, + bool $a = false, + bool $forceIcon = true, + string $mode = IPreview::MODE_FILL): Http\Response { if (!($node instanceof Node) || (!$forceIcon && !$this->preview->isAvailable($node))) { return new DataResponse([], Http::STATUS_NOT_FOUND); |