Passed
Pull Request — master (#23)
by Felipe
03:41
created
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.
src/plot/Plot.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -188,6 +188,9 @@
 block discarded – undo
188 188
         $this->legendcsimalt       = $aCSIMAlt;
189 189
     }
190 190
 
191
+    /**
192
+     * @param integer $aWeight
193
+     */
191 194
     public function SetWeight($aWeight)
192 195
     {
193 196
         $this->weight = $aWeight;
Please login to merge, or discard this patch.
src/plot/PlotMark.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -57,6 +57,10 @@  discard block
 block discarded – undo
57 57
 
58 58
     //---------------
59 59
     // PUBLIC METHODS
60
+
61
+    /**
62
+     * @param integer $aType
63
+     */
60 64
     public function SetType($aType, $aFileName = '', $aScale = 1.0)
61 65
     {
62 66
         $this->type = $aType;
@@ -82,11 +86,17 @@  discard block
 block discarded – undo
82 86
         return $this->type;
83 87
     }
84 88
 
89
+    /**
90
+     * @param string $aColor
91
+     */
85 92
     public function SetColor($aColor)
86 93
     {
87 94
         $this->color = $aColor;
88 95
     }
89 96
 
97
+    /**
98
+     * @param string $aFillColor
99
+     */
90 100
     public function SetFillColor($aFillColor)
91 101
     {
92 102
         $this->fill_color = $aFillColor;
@@ -103,6 +113,9 @@  discard block
 block discarded – undo
103 113
         $this->width = $aWidth;
104 114
     }
105 115
 
116
+    /**
117
+     * @param integer $aWidth
118
+     */
106 119
     public function SetWidth($aWidth)
107 120
     {
108 121
         $this->width = $aWidth;
@@ -157,6 +170,9 @@  discard block
 block discarded – undo
157 170
         return $this->csimareas;
158 171
     }
159 172
 
173
+    /**
174
+     * @param double[] $aPts
175
+     */
160 176
     public function AddCSIMPoly($aPts)
161 177
     {
162 178
         $coords = round($aPts[0]) . ", " . round($aPts[1]);
Please login to merge, or discard this patch.
src/plot/RadarPlot.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@
 block discarded – undo
54 54
         $this->weight = $w;
55 55
     }
56 56
 
57
+    /**
58
+     * @param boolean $aColor
59
+     */
57 60
     public function SetFillColor($aColor)
58 61
     {
59 62
         $this->fill_color = $aColor;
Please login to merge, or discard this patch.