From e221a1eeda3d255164fe1be27547c2b209c6fa1f Mon Sep 17 00:00:00 2001 From: Edvin Hultberg Date: Mon, 23 Oct 2017 11:40:10 +0200 Subject: [PATCH] Fix phpdocs (#22) * Cell expects float as width and height, as the prefix [og variable name] suggests (flt) * Write expects height to be float as it is passed to Cell. * Image expects float or null for x and y, not just null. --- src/tFPDF/PDF.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/tFPDF/PDF.php b/src/tFPDF/PDF.php index a6d7301..d581f48 100755 --- a/src/tFPDF/PDF.php +++ b/src/tFPDF/PDF.php @@ -1287,8 +1287,8 @@ public function AcceptPageBreak() } /** - * @param $flt_width - * @param int $flt_height + * @param float $flt_width + * @param float $flt_height * @param string $str_text * @param int $int_border * @param int $int_line_number @@ -1589,8 +1589,8 @@ public function MultiCell($flt_width, $flt_height, $str_text, $int_border = 0, $ } /** - * @param $flt_height - * @param $str_text + * @param float $flt_height + * @param string $str_text * @param string $str_link */ public function Write($flt_height, $str_text, $str_link = '') @@ -1719,8 +1719,8 @@ public function Ln($flt_height = null) /** * @param $str_file - * @param null $flt_x - * @param null $flt_y + * @param float|null $flt_x + * @param float|null $flt_y * @param int $int_width * @param int $int_height * @param string $str_type @@ -3105,4 +3105,4 @@ public function configureFontWritePath($str_path) } } -} \ No newline at end of file +}