Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 4 | ||
Bugs | 1 | Features | 2 |
1 | <?php |
||
8 | class TrigonometryProvider |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @param $radians |
||
13 | * |
||
14 | * @return string |
||
15 | * @throws IntegrityConstraint |
||
16 | */ |
||
17 | 1 | public static function radiansToDegrees($radians) |
|
18 | { |
||
19 | 1 | $radians = Numbers::makeOrDont(Numbers::IMMUTABLE, $radians); |
|
20 | 1 | $pi = Numbers::makePi($radians->getPrecision() + 2); |
|
21 | |||
22 | 1 | return $radians->multiply(180)->divide($pi)->round($radians->getPrecision()-2)->getValue(); |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param $degrees |
||
27 | * |
||
28 | * @return string |
||
29 | * @throws IntegrityConstraint |
||
30 | */ |
||
31 | 1 | public static function degreesToRadians($degrees) |
|
37 | } |
||
38 | |||
39 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.