| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 1 | public static function degreesToRadians($degrees) |
|
| 32 | { |
||
| 33 | 1 | $degrees = Numbers::makeOrDont(Numbers::IMMUTABLE, $degrees); |
|
| 34 | 1 | $pi = Numbers::makePi($degrees->getPrecision() + 1); |
|
| 35 | |||
| 36 | 1 | return $degrees->multiply($pi)->divide(180)->round($degrees->getPrecision())->getValue(); |
|
| 37 | } |
||
| 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.