Passed
Push — master ( 8f5e6a...061d3e )
by Felipe
03:26
created
src/graph/RadarGraph.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@  discard block
 block discarded – undo
39 39
         $this->yscale->ticks->SupressMinorTickMarks(!$aFlag);
40 40
     }
41 41
 
42
+    /**
43
+     * @param string $axtype
44
+     */
42 45
     public function SetScale($axtype, $ymin = 1, $ymax = 1, $dummy1 = null, $dumy2 = null)
43 46
     {
44 47
         if ($axtype != 'lin' && $axtype != 'log') {
@@ -72,6 +75,9 @@  discard block
 block discarded – undo
72 75
         $this->SetSize($aSize);
73 76
     }
74 77
 
78
+    /**
79
+     * @param integer $densy
80
+     */
75 81
     public function SetTickDensity($densy = TICKD_NORMAL, $dummy1 = null)
76 82
     {
77 83
         $this->ytick_factor = 25;
@@ -113,6 +119,9 @@  discard block
 block discarded – undo
113 119
         }
114 120
     }
115 121
 
122
+    /**
123
+     * @param integer[] $aColor
124
+     */
116 125
     public function SetColor($aColor)
117 126
     {
118 127
         $this->SetMarginColor($aColor);
Please login to merge, or discard this patch.
src/graph/RectPattern.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
     protected $linespacing; // Line spacing in pixels
20 20
     protected $iBackgroundColor = -1; // Default is no background fill
21 21
 
22
+    /**
23
+     * @param string $aColor
24
+     */
22 25
     public function __construct($aColor, $aWeight = 1)
23 26
     {
24 27
         $this->color  = $aColor;
Please login to merge, or discard this patch.
src/graph/WindroseGraph.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
         parent::AddText($aTxt);
74 74
     }
75 75
 
76
+    /**
77
+     * @param string $c
78
+     */
76 79
     public function SetColor($c)
77 80
     {
78 81
         $this->SetMarginColor($c);
Please login to merge, or discard this patch.
src/image/Image.php 2 patches
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.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,18 +38,18 @@
 block discarded – undo
38 38
     // for __get, __set
39 39
     private $_left_margin = 30, $_right_margin = 30, $_top_margin = 20, $_bottom_margin = 30;
40 40
     //private $_plotwidth=0,$_plotheight=0;
41
-    private $_width       = 0, $_height       = 0;
41
+    private $_width       = 0, $_height = 0;
42 42
     private $_line_weight = 1;
43 43
 
44 44
     protected $expired           = true;
45
-    protected $lastx             = 0, $lasty             = 0;
45
+    protected $lastx             = 0, $lasty = 0;
46 46
     protected $obs_list          = [];
47
-    protected $font_size         = 12, $font_family         = FF_DEFAULT, $font_style         = FS_NORMAL;
47
+    protected $font_size         = 12, $font_family = FF_DEFAULT, $font_style = FS_NORMAL;
48 48
     protected $font_file         = '';
49
-    protected $text_halign       = "left", $text_valign       = "bottom";
49
+    protected $text_halign       = "left", $text_valign = "bottom";
50 50
     protected $use_anti_aliasing = false;
51 51
     protected $quality           = null;
52
-    protected $colorstack        = [], $colorstackidx        = 0;
52
+    protected $colorstack        = [], $colorstackidx = 0;
53 53
     protected $canvascolor       = 'white';
54 54
     protected $langconv          = null;
55 55
     protected $iInterlace        = false;
Please login to merge, or discard this patch.
src/image/ImgStreamCache.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -26,12 +26,22 @@  discard block
 block discarded – undo
26 26
     // timeout value it will be overwritten with a newer version.
27 27
     // If timeout is set to 0 this is the same as infinite large timeout and if
28 28
     // timeout is set to -1 this is the same as infinite small timeout
29
+
30
+    /**
31
+     * @param integer $aTimeout
32
+     */
29 33
     public function SetTimeout($aTimeout)
30 34
     {
31 35
         $this->timeout = $aTimeout;
32 36
     }
33 37
 
34 38
     // Output image to browser and also write it to the cache
39
+
40
+    /**
41
+     * @param Image $aImage
42
+     * @param boolean $aInline
43
+     * @param string $aStrokeFileName
44
+     */
35 45
     public function PutAndStream($aImage, $aCacheFileName, $aInline, $aStrokeFileName)
36 46
     {
37 47
 
@@ -169,6 +179,11 @@  discard block
 block discarded – undo
169 179
     // Check if a given image is in cache and in that case
170 180
     // pass it directly on to web browser. Return false if the
171 181
     // image file doesn't exist or exists but is to old
182
+
183
+    /**
184
+     * @param Image $aImage
185
+     * @param string $aCacheFileName
186
+     */
172 187
     public function GetAndStream($aImage, $aCacheFileName)
173 188
     {
174 189
         if ($this->Isvalid($aCacheFileName)) {
@@ -181,6 +196,10 @@  discard block
 block discarded – undo
181 196
     //---------------
182 197
     // PRIVATE METHODS
183 198
     // Create all necessary directories in a path
199
+
200
+    /**
201
+     * @param string $aFile
202
+     */
184 203
     public function MakeDirs($aFile)
185 204
     {
186 205
         $dirs = array();
Please login to merge, or discard this patch.
src/image/ImgTrans.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -220,6 +220,10 @@
 block discarded – undo
220 220
     // * $aBorder, if set to anything besides false this will draw a
221 221
     //   a border of the speciied color around the image
222 222
     // --------------------------------------------------------------------
223
+
224
+    /**
225
+     * @param integer $aDir
226
+     */
223 227
     public function Skew3D($aHorizon = 120, $aSkewDist = 150, $aDir = SKEW3D_DOWN, $aHiQuality = false, $aMinSize = true, $aFillColor = '#FFFFFF', $aBorder = false)
224 228
     {
225 229
         return $this->_Skew3D($this->gdImg, $aHorizon, $aSkewDist, $aDir, $aHiQuality,
Please login to merge, or discard this patch.
src/image/LinkArrow.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -18,6 +18,10 @@  discard block
 block discarded – undo
18 18
     private $iSize = ARROW_S2;
19 19
     private $iColor     = 'black';
20 20
 
21
+    /**
22
+     * @param integer $x
23
+     * @param integer $aDirection
24
+     */
21 25
     public function __construct($x, $y, $aDirection, $aType = ARROWT_SOLID, $aSize = ARROW_S2)
22 26
     {
23 27
         $this->iDirection = $aDirection;
@@ -27,6 +31,9 @@  discard block
 block discarded – undo
27 31
         $this->iy         = $y;
28 32
     }
29 33
 
34
+    /**
35
+     * @param string $aColor
36
+     */
30 37
     public function SetColor($aColor)
31 38
     {
32 39
         $this->iColor = $aColor;
Please login to merge, or discard this patch.
src/image/RotImage.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
     public $transy = 0;
16 16
     private $m = array();
17 17
 
18
+    /**
19
+     * @param string $aFormat
20
+     */
18 21
     public function __construct($aWidth, $aHeight, $a = 0, $aFormat = DEFAULT_GFORMAT, $aSetAutoMargin = true)
19 22
     {
20 23
         parent::__construct($aWidth, $aHeight, $aFormat, $aSetAutoMargin);
@@ -23,6 +26,10 @@  discard block
 block discarded – undo
23 26
         $this->SetAngle($a);
24 27
     }
25 28
 
29
+    /**
30
+     * @param double $dx
31
+     * @param double $dy
32
+     */
26 33
     public function SetCenter($dx, $dy)
27 34
     {
28 35
         $old_dx   = $this->dx;
@@ -70,6 +77,11 @@  discard block
 block discarded – undo
70 77
         parent::Circle($xc, $yc, $r);
71 78
     }
72 79
 
80
+    /**
81
+     * @param integer $xc
82
+     * @param integer $yc
83
+     * @param integer $r
84
+     */
73 85
     public function FilledCircle($xc, $yc, $r)
74 86
     {
75 87
         list($xc, $yc) = $this->Rotate($xc, $yc);
@@ -112,6 +124,10 @@  discard block
 block discarded – undo
112 124
         }
113 125
     }
114 126
 
127
+    /**
128
+     * @param integer $fromX
129
+     * @param integer $fromY
130
+     */
115 131
     public function CopyMerge($fromImg, $toX, $toY, $fromX, $fromY, $toWidth, $toHeight, $fromWidth = -1, $fromHeight = -1, $aMix = 100)
116 132
     {
117 133
         list($toX, $toY) = $this->Rotate($toX, $toY);
Please login to merge, or discard this patch.
src/plot/Gradient.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
         $this->img = $img;
29 29
     }
30 30
 
31
+    /**
32
+     * @param integer $aNum
33
+     */
31 34
     public function SetNumColors($aNum)
32 35
     {
33 36
         $this->numcolors = $aNum;
@@ -328,6 +331,11 @@  discard block
 block discarded – undo
328 331
     // Please note that this is NOT a generic gradient polygon fill
329 332
     // routine. It assumes that the bottom is flat (like a drawing
330 333
     // of a mountain)
334
+
335
+    /**
336
+     * @param string $from_color
337
+     * @param string $to_color
338
+     */
331 339
     public function FilledFlatPolygon($pts, $from_color, $to_color)
332 340
     {
333 341
         if (count($pts) == 0) {
Please login to merge, or discard this patch.