Skip to content

Commit

Permalink
added/fixed some PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPGangsta authored and bsweeney committed Nov 11, 2018
1 parent dc68bcb commit aacedb7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Adapter/PDFLib.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class PDFLib implements Canvas
/**
* Instance of PDFLib class
*
* @var \PDFlib
* @var \PDFLib
*/
private $_pdf;

Expand Down Expand Up @@ -200,7 +200,7 @@ class PDFLib implements Canvas
/**
* Class constructor
*
* @param mixed $paper The size of paper to use either a string (see {@link Dompdf\Adapter\CPDF::$PAPER_SIZES}) or
* @param string|array $paper The size of paper to use either a string (see {@link Dompdf\Adapter\CPDF::$PAPER_SIZES}) or
* an array(xmin,ymin,xmax,ymax)
* @param string $orientation The orientation of the document (either 'landscape' or 'portrait')
* @param Dompdf $dompdf
Expand Down
2 changes: 1 addition & 1 deletion src/Css/Stylesheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ private function _specificity($selector, $origin = self::ORIG_AUTHOR)
* @param bool $first_pass
*
* @throws Exception
* @return string
* @return array
*/
private function _css_selector_to_xpath($selector, $first_pass = false)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Dompdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class Dompdf
/**
* Desired paper size ('letter', 'legal', 'A4', etc.)
*
* @var string
* @var string|array
*/
private $paperSize;

Expand Down Expand Up @@ -397,8 +397,8 @@ public function loadHtmlFile($file)
}

/**
* @param $str
* @param null $encoding
* @param string $str
* @param string $encoding
* @deprecated
*/
public function load_html($str, $encoding = 'UTF-8')
Expand Down Expand Up @@ -1030,7 +1030,7 @@ public function set_paper($size, $orientation = "portrait")
/**
* Sets the paper size & orientation
*
* @param string $size 'letter', 'legal', 'A4', etc. {@link Dompdf\Adapter\CPDF::$PAPER_SIZES}
* @param string|array $size 'letter', 'legal', 'A4', etc. {@link Dompdf\Adapter\CPDF::$PAPER_SIZES}
* @param string $orientation 'portrait' or 'landscape'
* @return $this
*/
Expand Down
1 change: 1 addition & 0 deletions src/FrameDecorator/AbstractFrameDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ function remove_child(Frame $child, $update_node = true)
}

/**
* @param bool $use_cache
* @return AbstractFrameDecorator
*/
function get_parent($use_cache = true)
Expand Down
1 change: 1 addition & 0 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ public static function cmyk_to_rgb($c, $m = null, $y = null, $k = null)
* getimagesize doesn't give a good size for 32bit BMP image v5
*
* @param string $filename
* @param resource $context
* @return array The same format as getimagesize($filename)
*/
public static function dompdf_getimagesize($filename, $context = null)
Expand Down

0 comments on commit aacedb7

Please sign in to comment.