Passed
Push — master ( e62a8d...f6e622 )
by Felipe
04:35 queued 02:04
created
src/Histogram/AbstractHistogram.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      *
100 100
      * @access  public
101 101
      * @param   int $type one of HISTOGRAM_SIMPLE or HISTOGRAM_CUMMULATIVE
102
-     * @return  mixed   boolean true on success, a PEAR_Error object otherwise
102
+     * @return  boolean   boolean true on success, a PEAR_Error object otherwise
103 103
      */
104 104
     public function setType($type)
105 105
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      *
118 118
      * @access  public
119 119
      * @param   array   $binOptions associative array of bin options
120
-     * @return  mixed   true on succcess, a PEAR_Error object otherwise
120
+     * @return  boolean   true on succcess, a PEAR_Error object otherwise
121 121
      */
122 122
     public function setBinOptions($binOptions)
123 123
     {
Please login to merge, or discard this patch.
src/Histogram/Histogram.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @access  public
69 69
      * @param   array   $data   the numeric array
70
-     * @return  mixed   boolean true on success, a \PEAR_Error object otherwise
70
+     * @return  boolean   boolean true on success, a \PEAR_Error object otherwise
71 71
      *
72 72
      * @see _clear()
73 73
      * @see Math_AbstractHistogram::getData()
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      *
107 107
      * @access  public
108 108
      * @param   optional    $statsMode  calculate basic statistics (STATS_BASIC) or full (STATS_FULL)
109
-     * @return  mixed   boolean true on success, a \PEAR_Error object otherwise
109
+     * @return  boolean   boolean true on success, a \PEAR_Error object otherwise
110 110
      *
111 111
      * @see Math_Stats
112 112
      */
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      * @deprecated
271 271
      * @access  public
272 272
      * @param   optional    int $mode   one of HISTOGRAM_LO_BINS, HISTOGRAM_MID_BINS, or HISTOGRAM_HI_BINS (default)
273
-     * @return  mixed   a string on success, a \PEAR_Error object otherwise
273
+     * @return  string   a string on success, a \PEAR_Error object otherwise
274 274
      */
275 275
     public function printHistogram($mode = self::HISTOGRAM_HI_BINS)
276 276
     {
Please login to merge, or discard this patch.
src/Histogram/Histogram3D.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
  * Sets the binning options. Overrides parent's method.
44 44
  *
45 45
  * @access  public
46
- * @param   array $binOptions  an array of options for binning the data
47
- * @return  void
46
+ * @param   string $binOptions  an array of options for binning the data
47
+ * @return  boolean
48 48
  */
49 49
 
50 50
     public function setBinOptions($binOptions)
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @access  public
66 66
      * @param   array   $data   the numeric array
67
-     * @return  mixed   boolean true on success, a \PEAR_Error object otherwise
67
+     * @return  boolean   boolean true on success, a \PEAR_Error object otherwise
68 68
      *
69 69
      * @see _clear()
70 70
      * @see Math_AbstractHistogram::getData()
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      * array
249 249
      *
250 250
      * @access  private
251
-     * @param   array   $elem
251
+     * @param   string   $elem
252 252
      * @return  array   of values: array(min, max)
253 253
      */
254 254
     public function _getMinMax($elem)
Please login to merge, or discard this patch.
src/Histogram/Histogram4D.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
      * Sets the binning options. Overrides parent's method.
43 43
      *
44 44
      * @access  public
45
-     * @param   array $binOptions  an array of options for binning the data
46
-     * @return  void
45
+     * @param   string $binOptions  an array of options for binning the data
46
+     * @return  boolean
47 47
      */
48 48
     public function setBinOptions($binOptions)
49 49
     {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @access  public
64 64
      * @param   array   $data   the numeric array
65
-     * @return  mixed   boolean true on success, a \PEAR_Error object otherwise
65
+     * @return  boolean   boolean true on success, a \PEAR_Error object otherwise
66 66
      *
67 67
      * @see _clear()
68 68
      * @see Math_AbstractHistogram::getData()
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      * array
266 266
      *
267 267
      * @access  private
268
-     * @param   array   $elem
268
+     * @param   string   $elem
269 269
      * @return  array   of values: array(min, max)
270 270
      */
271 271
     public function _getMinMax($elem)
Please login to merge, or discard this patch.
src/Histogram/Printer/Common.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *              Common options:
57 57
      *              'useHTTPHeaders' (default = false), whether to output HTTP headers when using printOutput()
58 58
      *              'outputStatistics' (default = false), whether to include histogram statistics when generating the output
59
-     * @return  boolean TRUE on success, FALSE otherwise
59
+     * @return  boolean|null TRUE on success, FALSE otherwise
60 60
      */
61 61
     public function setOptions($options)
62 62
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *
143 143
      * @static
144 144
      * @access private
145
-     * @param object $printer An instance of a Histogram_Printer_* class
145
+     * @param Text $printer An instance of a Histogram_Printer_* class
146 146
      * @param object Histogram $hist A Histogram instance
147 147
      * @param array $options An array of options for the printer object
148 148
      * @return boolean|PEAR_Error TRUE on success, a \PEAR_Error otherwise
Please login to merge, or discard this patch.
src/Histogram/Printer/Text.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * Returns a string representation of a Histogram plot
17 17
      *
18 18
      * @access public
19
-     * @return string|PEAR_Error A string on succcess, a \PEAR_Error otherwise
19
+     * @return string A string on succcess, a \PEAR_Error otherwise
20 20
      */
21 21
     public function generateOutput()
22 22
     {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * Prints out a graphic representation of a Histogram
65 65
      *
66 66
      * @access public
67
-     * @return boolean|PEAR_Error TRUE on success, a \PEAR_Error otherwise
67
+     * @return string|null TRUE on success, a \PEAR_Error otherwise
68 68
      */
69 69
     public function printOutput()
70 70
     {
Please login to merge, or discard this patch.
src/Math/Stats.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * @access public
121 121
      * @param   array   $arr    the data set
122 122
      * @param   optional    int $opt    data format: STATS_DATA_CUMMULATIVE or STATS_DATA_SIMPLE (default)
123
-     * @return  mixed   true on success, a PEAR_Error object otherwise
123
+     * @return  boolean   true on success, a PEAR_Error object otherwise
124 124
      */
125 125
     public function setData($arr, $opt = self::STATS_DATA_SIMPLE)
126 126
     {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * Must be called before assigning a new data set containing null values
171 171
      *
172 172
      * @access  public
173
-     * @return  mixed   true on success, a PEAR_Error object otherwise
173
+     * @return  boolean   true on success, a PEAR_Error object otherwise
174 174
      * @see _validate()
175 175
      */
176 176
     public function setNullOption($nullOption)
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
      * Handles cummulative data sets correctly
482 482
      *
483 483
      * @access  public
484
-     * @param   numeric $n  the exponent
484
+     * @param   integer $n  the exponent
485 485
      * @return  mixed   the sum on success, a PEAR_Error object otherwise
486 486
      * @see calc()
487 487
      * @see sum()
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
      * Handles cummulative data sets correctly
537 537
      *
538 538
      * @access  public
539
-     * @param   numeric $n  the exponent
539
+     * @param   integer $n  the exponent
540 540
      * @return  numeric|array|PEAR_Error  the product as a number or an array of numbers
541 541
      *                                    (if there is numeric overflow) on success,
542 542
      *                                    a PEAR_Error object otherwise
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
      *
732 732
      * @access  public
733 733
      * @param   numeric $mean   the fixed mean value
734
-     * @return  mixed   the variance on success, a PEAR_Error object otherwise
734
+     * @return  double   the variance on success, a PEAR_Error object otherwise
735 735
      * @see __sumdiff()
736 736
      * @see count()
737 737
      * @see variance()
@@ -1502,7 +1502,7 @@  discard block
 block discarded – undo
1502 1502
      * @todo need to double check generality of the algorithm
1503 1503
      *
1504 1504
      * @access public
1505
-     * @param numeric $p the percentile to estimate, e.g. 25 for 25th percentile
1505
+     * @param integer $p the percentile to estimate, e.g. 25 for 25th percentile
1506 1506
      * @return mixed a numeric value on success, a PEAR_Error otherwise
1507 1507
      * @see quartiles()
1508 1508
      * @see median()
@@ -1540,7 +1540,7 @@  discard block
 block discarded – undo
1540 1540
      * Utility function to calculate: SUM { (xi - mean)^n }
1541 1541
      *
1542 1542
      * @access private
1543
-     * @param   numeric $power  the exponent
1543
+     * @param   integer $power  the exponent
1544 1544
      * @param   optional    double   $mean   the data set mean value
1545 1545
      * @return  mixed   the sum on success, a PEAR_Error object otherwise
1546 1546
      *
@@ -1678,7 +1678,7 @@  discard block
 block discarded – undo
1678 1678
      *
1679 1679
      * @access private
1680 1680
      * @param mixed $v value to be formatted
1681
-     * @param boolean $returnErrorObject whether the raw PEAR_Error (when true, default),
1681
+     * @param boolean $useErrorObject whether the raw PEAR_Error (when true, default),
1682 1682
      *                  or only the error message will be returned (when false)
1683 1683
      * @return mixed if the value is a PEAR_Error object, and $useErrorObject
1684 1684
      *              is false, then a string with the error message will be returned,
@@ -1699,7 +1699,7 @@  discard block
 block discarded – undo
1699 1699
      * according to the current null handling option
1700 1700
      *
1701 1701
      * @access  private
1702
-     * @return  mixed true on success, a PEAR_Error object otherwise
1702
+     * @return  boolean true on success, a PEAR_Error object otherwise
1703 1703
      *
1704 1704
      * @see setData()
1705 1705
      */
Please login to merge, or discard this patch.