Completed
Pull Request — master (#5)
by
unknown
02:44
created
src/Statistics.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
      *
174 174
      * @param array $values The input values
175 175
      * @param bool $sample Whether or not to compensate for small samples (n - 1), defaults to true
176
-     * @return float|int The variance of values as an integer or float
176
+     * @return double The variance of values as an integer or float
177 177
      * @throws \Oefenweb\Statistics\StatisticsError
178 178
      */
179 179
     public static function variance($values, $sample = true)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 
163 163
         if (!is_int($mean) && !is_float($mean))
164 164
         {
165
-          throw new StatisticsError('This function requires the second arguement to be an integer or a float');
165
+            throw new StatisticsError('This function requires the second arguement to be an integer or a float');
166 166
         }
167 167
 
168 168
         return pow($value - $mean, 2);
Please login to merge, or discard this patch.