From f10b92eac6833aff595dbe7b40a7ea09bd58acd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 5 Oct 2021 15:00:59 +0200 Subject: Add default argument and type hints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Controller/TemplatesController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') 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); -- cgit v1.2.3