Passed
Pull Request — master (#21)
by Felipe
06:48 queued 03:16
created
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/Contour.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -136,10 +136,10 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * Determine if the specified isobar crosses the horizontal edge specified by its row and column
138 138
      *
139
-     * @param $aRow Row index of edge to be checked
140
-     * @param $aCol Col index of edge to be checked
139
+     * @param integer $aRow Row index of edge to be checked
140
+     * @param integer $aCol Col index of edge to be checked
141 141
      * @param $aIsobar Isobar value
142
-     * @return true if the isobar is crossing this edge
142
+     * @return boolean if the isobar is crossing this edge
143 143
      */
144 144
     public function isobarHCrossing($aRow, $aCol, $aIsobar)
145 145
     {
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
     /**
162 162
      * Determine if the specified isobar crosses the vertical edge specified by its row and column
163 163
      *
164
-     * @param $aRow Row index of edge to be checked
165
-     * @param $aCol Col index of edge to be checked
164
+     * @param integer $aRow Row index of edge to be checked
165
+     * @param integer $aCol Col index of edge to be checked
166 166
      * @param $aIsobar Isobar value
167
-     * @return true if the isobar is crossing this edge
167
+     * @return boolean if the isobar is crossing this edge
168 168
      */
169 169
     public function isobarVCrossing($aRow, $aCol, $aIsobar)
170 170
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * Determine all edges, horizontal and vertical that the specified isobar crosses. The crossings
188 188
      * are recorded in the two edge matrices.
189 189
      *
190
-     * @param $aIsobar The value of the isobar to be checked
190
+     * @param integer $aIsobar The value of the isobar to be checked
191 191
      */
192 192
     public function determineIsobarEdgeCrossings($aIsobar)
193 193
     {
@@ -214,9 +214,9 @@  discard block
 block discarded – undo
214 214
      * isobar- The crossing is simpy detrmined with a linear interpolation between the two vertices
215 215
      * on each side of the edge and the value of the isobar
216 216
      *
217
-     * @param $aRow Row of edge
218
-     * @param $aCol Column of edge
219
-     * @param $aEdgeDir Determine if this is a horizontal or vertical edge
217
+     * @param integer $aRow Row of edge
218
+     * @param integer $aCol Column of edge
219
+     * @param integer $aEdgeDir Determine if this is a horizontal or vertical edge
220 220
      * @param $ib The isobar value
221 221
      * @return unknown_type
222 222
      */
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.
src/plot/IconPlot.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -167,6 +167,10 @@
 block discarded – undo
167 167
         return $this->_Stroke($dummy, null, null, true);
168 168
     }
169 169
 
170
+    /**
171
+     * @param double $x
172
+     * @param double $y
173
+     */
170 174
     public function _Stroke($aImg, $x = null, $y = null, $aReturnWidthHeight = false)
171 175
     {
172 176
         if ($this->iFile != '' && $this->iCountryFlag != '') {
Please login to merge, or discard this patch.
src/plot/PiePlot.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -144,6 +144,11 @@  discard block
 block discarded – undo
144 144
         return $this->csimareas;
145 145
     }
146 146
 
147
+    /**
148
+     * @param integer $i
149
+     * @param double $xc
150
+     * @param double $yc
151
+     */
147 152
     public function AddSliceToCSIM($i, $xc, $yc, $radius, $sa, $ea)
148 153
     {
149 154
         //Slice number, ellipse centre (x,y), height, width, start angle, end angle
@@ -1007,6 +1012,9 @@  discard block
 block discarded – undo
1007 1012
         }
1008 1013
     }
1009 1014
 
1015
+    /**
1016
+     * @param double $yc
1017
+     */
1010 1018
     public function StrokeAllLabels($img, $xc, $yc, $radius)
1011 1019
     {
1012 1020
         // First normalize all angles for labels
Please login to merge, or discard this patch.
src/plot/PiePlot3D.php 1 patch
Doc Comments   +33 added lines patch added patch discarded remove patch
@@ -87,6 +87,15 @@  discard block
 block discarded – undo
87 87
         }
88 88
     }
89 89
 
90
+    /**
91
+     * @param integer $i
92
+     * @param double $xc
93
+     * @param double $yc
94
+     * @param double $height
95
+     * @param double $width
96
+     * @param double $sa
97
+     * @param double $ea
98
+     */
90 99
     public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
91 100
     {
92 101
         //Slice number, ellipse centre (x,y), height, width, start angle, end angle
@@ -201,6 +210,10 @@  discard block
 block discarded – undo
201 210
     }
202 211
 
203 212
     // Draw one 3D pie slice at position ($xc,$yc) with height $z
213
+
214
+    /**
215
+     * @param double $h
216
+     */
204 217
     public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
205 218
     {
206 219
 
@@ -413,6 +426,13 @@  discard block
 block discarded – undo
413 426
     }
414 427
 
415 428
     // Draw a 3D Pie
429
+
430
+    /**
431
+     * @param integer $aaoption
432
+     * @param double $yc
433
+     * @param integer $angle
434
+     * @param double $z
435
+     */
416 436
     public function Pie3D($aaoption, $img, $data, $colors, $xc, $yc, $d, $angle, $z,
417 437
         $shadow = 0.65, $startangle = 0, $edgecolor = "", $edgeweight = 1)
418 438
     {
@@ -746,6 +766,13 @@  discard block
 block discarded – undo
746 766
         $img->PopColor();
747 767
     }
748 768
 
769
+    /**
770
+     * @param double $sa
771
+     * @param double $ea
772
+     * @param double $h
773
+     * @param string $edgecolor
774
+     * @param boolean $fulledge
775
+     */
749 776
     public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
750 777
     {
751 778
         $step = 0.02;
@@ -905,6 +932,12 @@  discard block
 block discarded – undo
905 932
     // PRIVATE METHODS
906 933
 
907 934
     // Position the labels of each slice
935
+
936
+    /**
937
+     * @param double $a
938
+     * @param double $xp
939
+     * @param double $yp
940
+     */
908 941
     public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
909 942
     {
910 943
         $this->value->halign = "left";
Please login to merge, or discard this patch.
src/plot/PiePlotC.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -186,6 +186,11 @@
 block discarded – undo
186 186
         }
187 187
     }
188 188
 
189
+    /**
190
+     * @param double $xc
191
+     * @param double $yc
192
+     * @param double $r
193
+     */
189 194
     public function AddMiddleCSIM($xc, $yc, $r)
190 195
     {
191 196
         $xc = round($xc);
Please login to merge, or discard this patch.