Passed
Pull Request — master (#23)
by Felipe
03:41
created
src/graph/MGraph.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -200,6 +200,10 @@  discard block
 block discarded – undo
200 200
         $this->_gdImgHandle($aGraph->Stroke(_IMG_HANDLER), $x, $y, $fx = 0, $fy = 0, $w, $h);
201 201
     }
202 202
 
203
+    /**
204
+     * @param integer $x
205
+     * @param integer $y
206
+     */
203 207
     public function _gdImgHandle($agdCanvas, $x, $y, $fx = 0, $fy = 0, $w = 0, $h = 0, $mix = 100)
204 208
     {
205 209
         if ($w == 0) {
@@ -245,6 +249,9 @@  discard block
 block discarded – undo
245 249
         $this->footer->iRightMargin += $aShadowWidth;
246 250
     }
247 251
 
252
+    /**
253
+     * @param Image\Image $image
254
+     */
248 255
     public function StrokeTitle($image, $w, $h)
249 256
     {
250 257
         // Stroke title
Please login to merge, or discard this patch.
src/graph/PieGraph.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
         $this->pieaa = $aFlg;
74 74
     }
75 75
 
76
+    /**
77
+     * @param integer[] $c
78
+     */
76 79
     public function SetColor($c)
77 80
     {
78 81
         $this->SetMarginColor($c);
Please login to merge, or discard this patch.
src/graph/PolarGraph.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
18 18
         $this->SetMarginColor('white');
19 19
     }
20 20
 
21
+    /**
22
+     * @param integer $aDense
23
+     */
21 24
     public function SetDensity($aDense)
22 25
     {
23 26
         $this->SetTickDensity(TICKD_NORMAL, $aDense);
Please login to merge, or discard this patch.
src/graph/PolarLogScale.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -6,6 +6,10 @@
 block discarded – undo
6 6
     private $graph;
7 7
     public $clockwise = false;
8 8
 
9
+    /**
10
+     * @param integer $aMax
11
+     * @param PolarGraph $graph
12
+     */
9 13
     public function __construct($aMax, $graph, $aClockwise = false)
10 14
     {
11 15
         parent::__construct(0, $aMax, 'x');
Please login to merge, or discard this patch.
src/graph/PolarScale.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -6,6 +6,11 @@  discard block
 block discarded – undo
6 6
     private $graph;
7 7
     public $clockwise = false;
8 8
 
9
+    /**
10
+     * @param integer $aMax
11
+     * @param PolarGraph $graph
12
+     * @param boolean $aClockwise
13
+     */
9 14
     public function __construct($aMax, $graph, $aClockwise)
10 15
     {
11 16
         parent::__construct(0, $aMax, 'x');
@@ -18,6 +23,9 @@  discard block
 block discarded – undo
18 23
         $this->clockwise = $aFlg;
19 24
     }
20 25
 
26
+    /**
27
+     * @param integer $v
28
+     */
21 29
     public function _Translate($v)
22 30
     {
23 31
         return parent::Translate($v);
Please login to merge, or discard this patch.
src/graph/RadarAxis.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -11,6 +11,10 @@  discard block
 block discarded – undo
11 11
     private $title_color = 'navy';
12 12
     private $len         = 0;
13 13
 
14
+    /**
15
+     * @param \Amenadiel\JpGraph\Image\RotImage $img
16
+     * @param LinearScale $aScale
17
+     */
14 18
     public function __construct($img, $aScale, $color = array(0, 0, 0))
15 19
     {
16 20
         parent::__construct($img, $aScale, $color);
@@ -25,6 +29,11 @@  discard block
 block discarded – undo
25 29
     // $aAxisAngle = Axis angle
26 30
     // $grid   = Returns an array with positions used to draw the grid
27 31
     // $lf   = Label flag, TRUE if the axis should have labels
32
+
33
+    /**
34
+     * @param double $aAxisAngle
35
+     * @param boolean $lf
36
+     */
28 37
     public function Stroke($pos, $aAxisAngle, &$grid, $title, $lf)
29 38
     {
30 39
         $this->img->SetColor($this->color);
@@ -72,6 +81,9 @@  discard block
 block discarded – undo
72 81
         $this->_StrokeAxisTitle($pos, $aAxisAngle, $title);
73 82
     }
74 83
 
84
+    /**
85
+     * @param double $pos
86
+     */
75 87
     public function _StrokeAxisTitle($pos, $aAxisAngle, $title)
76 88
     {
77 89
         $this->title->Set($title);
Please login to merge, or discard this patch.
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/RadarGrid.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
         $this->show = $aShowMajor;
53 53
     }
54 54
 
55
+    /**
56
+     * @param \Amenadiel\JpGraph\Image\RotImage $img
57
+     */
55 58
     public function Stroke($img, $grid)
56 59
     {
57 60
         if (!$this->show) {
@@ -138,6 +141,9 @@  discard block
 block discarded – undo
138 141
         $this->weight = $w;
139 142
     }
140 143
 
144
+    /**
145
+     * @param boolean $aColor
146
+     */
141 147
     public function SetFillColor($aColor)
142 148
     {
143 149
         $this->fill_color = $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.