@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public static function sum($values) |
| 22 | 22 | { |
| 23 | - if(!is_array($values)) |
|
| 23 | + if (!is_array($values)) |
|
| 24 | 24 | { |
| 25 | 25 | throw new InputError('This function requires an array as an arguement'); |
| 26 | 26 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public static function min($values) |
| 39 | 39 | { |
| 40 | - if(!is_array($values)) |
|
| 40 | + if (!is_array($values)) |
|
| 41 | 41 | { |
| 42 | 42 | throw new InputError('This function requires an array as an arguement'); |
| 43 | 43 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public static function max($values) |
| 56 | 56 | { |
| 57 | - if(!is_array($values)) |
|
| 57 | + if (!is_array($values)) |
|
| 58 | 58 | { |
| 59 | 59 | throw new InputError('This function requires an array as an arguement'); |
| 60 | 60 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public static function mean($values) |
| 73 | 73 | { |
| 74 | - if(!is_array($values)) |
|
| 74 | + if (!is_array($values)) |
|
| 75 | 75 | { |
| 76 | 76 | throw new InputError('This function requires an array as an arguement'); |
| 77 | 77 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | public static function frequency($values) |
| 92 | 92 | { |
| 93 | - if(!is_array($values)) |
|
| 93 | + if (!is_array($values)) |
|
| 94 | 94 | { |
| 95 | 95 | throw new InputError('This function requires an array as an arguement'); |
| 96 | 96 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | public static function mode($values) |
| 127 | 127 | { |
| 128 | - if(!is_array($values)) |
|
| 128 | + if (!is_array($values)) |
|
| 129 | 129 | { |
| 130 | 130 | throw new InputError('This function requires an array as an arguement'); |
| 131 | 131 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | public static function variance($values, $sample = true) |
| 171 | 171 | { |
| 172 | - if(!is_array($values)) |
|
| 172 | + if (!is_array($values)) |
|
| 173 | 173 | { |
| 174 | 174 | throw new InputError('This function requires an array as an arguement'); |
| 175 | 175 | } |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | */ |
| 203 | 203 | public static function standardDeviation($values, $sample = true) |
| 204 | 204 | { |
| 205 | - if(!is_array($values)) |
|
| 205 | + if (!is_array($values)) |
|
| 206 | 206 | { |
| 207 | 207 | throw new InputError('This function requires an array as an arguement'); |
| 208 | 208 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | public static function range($values) |
| 220 | 220 | { |
| 221 | - if(!is_array($values)) |
|
| 221 | + if (!is_array($values)) |
|
| 222 | 222 | { |
| 223 | 223 | throw new InputError('This function requires an array as an arguement'); |
| 224 | 224 | } |