Skip to content

Commit

Permalink
Fix phpdocs (#22)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
hultberg authored and kazsaj committed Oct 23, 2017
1 parent 7adc7c1 commit e221a1e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/tFPDF/PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = '')
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -3105,4 +3105,4 @@ public function configureFontWritePath($str_path)
}
}

}
}

0 comments on commit e221a1e

Please sign in to comment.