Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class Angle |
||
8 | { |
||
9 | /** |
||
10 | * DEGREES. |
||
11 | * |
||
12 | * Returns the result of builtin function rad2deg after validating args. |
||
13 | * |
||
14 | * @param mixed $number Should be numeric |
||
15 | * |
||
16 | * @return float|string Rounded number |
||
17 | */ |
||
18 | 8 | public static function toDegrees($number) |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * RADIANS. |
||
31 | * |
||
32 | * Returns the result of builtin function deg2rad after validating args. |
||
33 | * |
||
34 | * @param mixed $number Should be numeric |
||
35 | * |
||
36 | * @return float|string Rounded number |
||
37 | */ |
||
38 | 10 | public static function toRadians($number) |
|
49 |