Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Sqrt |
||
8 | { |
||
9 | /** |
||
10 | * SQRT. |
||
11 | * |
||
12 | * Returns the result of builtin function sqrt after validating args. |
||
13 | * |
||
14 | * @param mixed $number Should be numeric |
||
15 | * |
||
16 | * @return float|string square roor |
||
17 | */ |
||
18 | 12 | public static function sqrt($number) |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * SQRTPI. |
||
31 | * |
||
32 | * Returns the square root of (number * pi). |
||
33 | * |
||
34 | * @param float $number Number |
||
35 | * |
||
36 | * @return float|string Square Root of Number * Pi, or a string containing an error |
||
37 | */ |
||
38 | 19 | public static function pi($number) |
|
50 |