Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | 15 | protected function detectDegreePrecision( float $degree ): float { |
|
16 | 15 | $minutes = $degree * 60; |
|
17 | 15 | $split = explode( '.', (string)round( $minutes, 6 ) ); |
|
18 | |||
19 | 15 | if ( isset( $split[1] ) ) { |
|
20 | 9 | return $this->dmsPrecisionDetector->detectDegreePrecision( $degree ); |
|
|
|||
21 | } |
||
22 | |||
23 | 6 | return 1 / 60; |
|
24 | } |
||
25 | |||
27 |
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.