Completed
Push — 1.10.x ( 0f48ee...7b08cd )
by Angel Fernando Quiroz
165:10 queued 123:19
created
main/inc/lib/phpdocx/pdf/include/font_metrics.cls.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
    * @param string $text the text to be sized
118 118
    * @param string $font the desired font
119 119
    * @param float  $size the desired font size
120
-   * @param float  $spacing word spacing, if any
120
+   * @param integer  $spacing word spacing, if any
121 121
    * @return float
122 122
    */
123 123
   static function get_text_width($text, $font, $size, $spacing = 0) {
@@ -234,6 +234,9 @@  discard block
 block discarded – undo
234 234
     return self::$_font_lookup;
235 235
   }
236 236
 
237
+  /**
238
+   * @param string $fontname
239
+   */
237 240
   static function set_font_family($fontname, $entry) {
238 241
     self::$_font_lookup[mb_strtolower($fontname)] = $entry;
239 242
   }
Please login to merge, or discard this patch.
main/inc/lib/phpdocx/pdf/include/frame.cls.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -662,6 +662,9 @@
 block discarded – undo
662 662
 class FrameList implements IteratorAggregate {
663 663
   protected $_frame;
664 664
 
665
+  /**
666
+   * @param Frame $frame
667
+   */
665 668
   function __construct($frame) { $this->_frame = $frame; }
666 669
   function getIterator() { return new FrameListIterator($this->_frame); }
667 670
 }
Please login to merge, or discard this patch.
main/inc/lib/phpdocx/pdf/include/frame_decorator.cls.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -155,7 +155,15 @@  discard block
 block discarded – undo
155 155
   function get_id() { return $this->_frame->get_id(); }
156 156
   function get_style() { return $this->_frame->get_style(); }
157 157
   function get_original_style() { return $this->_frame->get_original_style(); }
158
+
159
+  /**
160
+   * @param string $i
161
+   */
158 162
   function get_containing_block($i = null) { return $this->_frame->get_containing_block($i); }
163
+
164
+  /**
165
+   * @param string $i
166
+   */
159 167
   function get_position($i = null) { return $this->_frame->get_position($i); }
160 168
   function get_dompdf() { return $this->_dompdf; }
161 169
 //   function get_decorator() {
@@ -173,6 +181,12 @@  discard block
 block discarded – undo
173 181
   function set_id($id) { $this->_frame->set_id($id); }
174 182
   function set_style(Style $style) { $this->_frame->set_style($style); }
175 183
 
184
+  /**
185
+   * @param double $x
186
+   * @param double $y
187
+   * @param double $w
188
+   * @param double $h
189
+   */
176 190
   function set_containing_block($x = null, $y = null, $w = null, $h = null) {
177 191
     $this->_frame->set_containing_block($x, $y, $w, $h);
178 192
   }
Please login to merge, or discard this patch.
main/inc/lib/phpdocx/pdf/include/frame_factory.cls.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -60,6 +60,10 @@
 block discarded – undo
60 60
   }
61 61
 
62 62
   // FIXME: this is admittedly a little smelly...
63
+
64
+  /**
65
+   * @param DOMPDF $dompdf
66
+   */
63 67
   static function decorate_frame(Frame $frame, $dompdf) {
64 68
     if ( is_null($dompdf) )
65 69
       throw new Exception("foo");
Please login to merge, or discard this patch.
main/inc/lib/phpdocx/pdf/include/functions.inc.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -305,6 +305,10 @@  discard block
 block discarded – undo
305 305
  */
306 306
 
307 307
 if ( !function_exists("mb_convert_encoding") ) {
308
+
309
+  /**
310
+   * @param string|null $to_encoding
311
+   */
308 312
   function mb_convert_encoding($data, $to_encoding, $from_encoding='UTF-8') {
309 313
     if (str_replace('-', '', strtolower($to_encoding)) == 'utf8') {
310 314
       return utf8_encode($data);
@@ -327,6 +331,10 @@  discard block
 block discarded – undo
327 331
 }
328 332
 
329 333
 if ( !function_exists("mb_internal_encoding") ) {
334
+
335
+  /**
336
+   * @param string $encoding
337
+   */
330 338
   function mb_internal_encoding($encoding=NULL) {
331 339
     if (isset($encoding)) {
332 340
       return true;
@@ -365,6 +373,10 @@  discard block
 block discarded – undo
365 373
 }
366 374
 
367 375
 if ( !function_exists("mb_strtoupper") ) {
376
+
377
+  /**
378
+   * @param string $str
379
+   */
368 380
   function mb_strtoupper($str) {
369 381
     return strtoupper($str);
370 382
   }
@@ -380,6 +392,10 @@  discard block
 block discarded – undo
380 392
 }
381 393
 
382 394
 if ( !function_exists("mb_substr_count") ) {
395
+
396
+  /**
397
+   * @param string $needle
398
+   */
383 399
   function mb_substr_count($haystack, $needle) {
384 400
     return substr_count($haystack, $needle);
385 401
   }
@@ -442,6 +458,7 @@  discard block
 block discarded – undo
442 458
  * Print debug messages
443 459
  *
444 460
  * @param string $type  The type of debug messages to print
461
+ * @param string $msg
445 462
  */
446 463
 function dompdf_debug($type, $msg) {
447 464
   global $_DOMPDF_DEBUG_TYPES;
Please login to merge, or discard this patch.
main/inc/lib/phpdocx/pdf/include/gd_adapter.cls.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
    *
97 97
    * @param mixed  $size         The size of image to create: array(x1,y1,x2,y2) or "letter", "legal", etc.
98 98
    * @param string $orientation  The orientation of the document (either 'landscape' or 'portrait')
99
-   * @param float  $aa_factor    Anti-aliasing factor, 1 for no AA
99
+   * @param integer  $aa_factor    Anti-aliasing factor, 1 for no AA
100 100
    * @param array  $bg_color     Image background color: array(r,g,b,a), 0 <= r,g,b,a <= 1
101 101
    */
102 102
   function __construct($size, $orientation = "portrait", $aa_factor = 1, $bg_color = array(1,1,1,0) ) {
@@ -536,8 +536,8 @@  discard block
 block discarded – undo
536 536
    * @param string $font the font file to use
537 537
    * @param float $size the font size, in points
538 538
    * @param array $color
539
-   * @param float $adjust word spacing adjustment
540
-   * @param float $angle Text angle
539
+   * @param integer $adjust word spacing adjustment
540
+   * @param integer $angle Text angle
541 541
    */
542 542
   function text($x, $y, $text, $font, $size, $color = array(0,0,0), $adjust = 0, $angle = 0) {
543 543
 
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
    * @param string $text the text to be sized
591 591
    * @param string $font the desired font
592 592
    * @param float  $size the desired font size
593
-   * @param float  $spacing word spacing, if any
593
+   * @param integer  $spacing word spacing, if any
594 594
    * @return float
595 595
    */
596 596
   function get_text_width($text, $font, $size, $spacing = 0) {    
Please login to merge, or discard this patch.
main/inc/lib/phpdocx/pdf/include/list_bullet_image_frame_decorator.cls.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
   /**
110 110
    * Return the bullet's width
111 111
    *
112
-   * @return int
112
+   * @return double
113 113
    */
114 114
   function get_width() {
115 115
     //ignore image width, use same width as on predefined bullet List_Bullet_Frame_Decorator
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
   /**
160 160
    * Override get_margin_height()
161 161
    *
162
-   * @return int
162
+   * @return double
163 163
    */
164 164
   function get_margin_height() {
165 165
     //Hits only on "inset" lists items, to increase height of box
Please login to merge, or discard this patch.
main/inc/lib/phpdocx/pdf/include/page_cache.cls.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -70,12 +70,19 @@
 block discarded – undo
70 70
   
71 71
   function __construct() { throw new Exception("Can not create instance of Page_Class.  Class is static."); }
72 72
 
73
+  /**
74
+   * @param string $sql
75
+   */
73 76
   private static function __query($sql) {
74 77
     if ( !($res = pg_query(self::$__connection, $sql)) )
75 78
       throw new Exception(pg_last_error(self::$__connection));
76 79
     return $res;
77 80
   }
78 81
   
82
+  /**
83
+   * @param integer $page_num
84
+   * @param string|null $data
85
+   */
79 86
   static function store_page($id, $page_num, $data) {
80 87
     $where = "WHERE id='" . pg_escape_string($id) . "' AND ".
81 88
       "page_num=". pg_escape_string($page_num);
Please login to merge, or discard this patch.
main/inc/lib/phpdocx/pdf/include/page_frame_decorator.cls.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
    * @link http://www.w3.org/TR/CSS21/page.html#forced
172 172
    *
173 173
    * @param Frame $frame the frame to check
174
-   * @return bool true if a page break occured
174
+   * @return null|boolean true if a page break occured
175 175
    */
176 176
   function check_forced_page_break(Frame $frame) {
177 177
 
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
    * correct location.
427 427
    *
428 428
    * @param Frame $frame the frame to check
429
-   * @return Frame the frame following the page break
429
+   * @return boolean the frame following the page break
430 430
    */
431 431
   function check_page_break(Frame $frame) {
432 432
     // Do not split if we have already
Please login to merge, or discard this patch.