| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function detectDegreePrecision( float $degree ): float { |
||
| 16 | $minutes = $degree * 60; |
||
| 17 | $split = explode( '.', (string)round( $minutes, 6 ) ); |
||
| 18 | |||
| 19 | if ( isset( $split[1] ) ) { |
||
| 20 | return $this->dmsPrecisionDetector->detectDegreePrecision( $degree ); |
||
| 21 | } |
||
| 22 | |||
| 23 | return 1 / 60; |
||
| 24 | } |
||
| 25 | |||
| 27 |