Passed
Push — master ( 8f5e6a...061d3e )
by Felipe
03:26
created
src/image/Image.php 1 patch
Doc Comments   +54 added lines patch added patch discarded remove patch
@@ -241,6 +241,9 @@  discard block
 block discarded – undo
241 241
         return $img;
242 242
     }
243 243
 
244
+    /**
245
+     * @param null|resource $aHdl
246
+     */
244 247
     public function SetCanvasH($aHdl)
245 248
     {
246 249
         $this->img      = $aHdl;
@@ -635,12 +638,21 @@  discard block
 block discarded – undo
635 638
     }
636 639
 
637 640
     // Set text alignment
641
+
642
+    /**
643
+     * @param string $halign
644
+     */
638 645
     public function SetTextAlign($halign, $valign = "bottom")
639 646
     {
640 647
         $this->text_halign = $halign;
641 648
         $this->text_valign = $valign;
642 649
     }
643 650
 
651
+    /**
652
+     * @param double $x
653
+     * @param double $y
654
+     * @param string $paragraph_align
655
+     */
644 656
     public function _StrokeBuiltinFont($x, $y, $txt, $dir, $paragraph_align, &$aBoundingBox, $aDebug = false)
645 657
     {
646 658
 
@@ -741,6 +753,10 @@  discard block
 block discarded – undo
741 753
         return $a;
742 754
     }
743 755
 
756
+    /**
757
+     * @param integer $size
758
+     * @param string $fontfile
759
+     */
744 760
     public function imagettfbbox_fixed($size, $angle, $fontfile, $text)
745 761
     {
746 762
 
@@ -837,6 +853,9 @@  discard block
 block discarded – undo
837 853
         return $bbox;
838 854
     }
839 855
 
856
+    /**
857
+     * @return double
858
+     */
840 859
     public function GetBBoxTTF($aTxt, $aAngle = 0)
841 860
     {
842 861
         // Normalize the bounding box to become a minimum
@@ -904,6 +923,11 @@  discard block
 block discarded – undo
904 923
         return $box[2] - $box[0] + 1;
905 924
     }
906 925
 
926
+    /**
927
+     * @param double $x
928
+     * @param double $y
929
+     * @param string $paragraph_align
930
+     */
907 931
     public function _StrokeTTF($x, $y, $txt, $dir, $paragraph_align, &$aBoundingBox, $debug = false)
908 932
     {
909 933
 
@@ -1176,6 +1200,9 @@  discard block
 block discarded – undo
1176 1200
         $this->current_color_name = $this->colorstack[--$this->colorstackidx];
1177 1201
     }
1178 1202
 
1203
+    /**
1204
+     * @param integer $weight
1205
+     */
1179 1206
     public function SetLineWeight($weight)
1180 1207
     {
1181 1208
         $old = $this->line_weight;
@@ -1190,6 +1217,10 @@  discard block
 block discarded – undo
1190 1217
         $this->lasty = round($y);
1191 1218
     }
1192 1219
 
1220
+    /**
1221
+     * @param integer $s
1222
+     * @param integer $e
1223
+     */
1193 1224
     public function Arc($cx, $cy, $w, $h, $s, $e)
1194 1225
     {
1195 1226
         // GD Arc doesn't like negative angles
@@ -1297,6 +1328,10 @@  discard block
 block discarded – undo
1297 1328
     }
1298 1329
 
1299 1330
     // Set line style dashed, dotted etc
1331
+
1332
+    /**
1333
+     * @param string $s
1334
+     */
1300 1335
     public function SetLineStyle($s)
1301 1336
     {
1302 1337
         if (is_numeric($s)) {
@@ -1516,6 +1551,13 @@  discard block
 block discarded – undo
1516 1551
         $this->FilledPolygon([$xl, $yu, $xr, $yu, $xr, $yl, $xl, $yl]);
1517 1552
     }
1518 1553
 
1554
+    /**
1555
+     * @param integer $xl
1556
+     * @param integer $yu
1557
+     * @param integer $yl
1558
+     * @param string $color1
1559
+     * @param string $color2
1560
+     */
1519 1561
     public function FilledRectangle2($xl, $yu, $xr, $yl, $color1, $color2, $style = 1)
1520 1562
     {
1521 1563
         // Fill a rectangle with lines of two colors
@@ -1549,6 +1591,10 @@  discard block
 block discarded – undo
1549 1591
         }
1550 1592
     }
1551 1593
 
1594
+    /**
1595
+     * @param integer $xl
1596
+     * @param integer $yu
1597
+     */
1552 1598
     public function ShadowRectangle($xl, $yu, $xr, $yl, $fcolor = false, $shadow_width = 4, $shadow_color = 'darkgray', $useAlpha = true)
1553 1599
     {
1554 1600
         // This is complicated by the fact that we must also handle the case where
@@ -1586,6 +1632,10 @@  discard block
 block discarded – undo
1586 1632
         }
1587 1633
     }
1588 1634
 
1635
+    /**
1636
+     * @param double $xr
1637
+     * @param double $yl
1638
+     */
1589 1639
     public function FilledRoundedRectangle($xt, $yt, $xr, $yl, $r = 5)
1590 1640
     {
1591 1641
         if ($r == 0) {
@@ -1618,6 +1668,10 @@  discard block
 block discarded – undo
1618 1668
 
1619 1669
     }
1620 1670
 
1671
+    /**
1672
+     * @param double $xr
1673
+     * @param double $yl
1674
+     */
1621 1675
     public function RoundedRectangle($xt, $yt, $xr, $yl, $r = 5)
1622 1676
     {
1623 1677
 
Please login to merge, or discard this patch.