| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public static function binary($value){ |
||
| 18 | $pos = strpos($value, '.'); |
||
| 19 | $scaleLen = $pos === false ? 0 : strlen($value) - $pos - 1; |
||
| 20 | $value *= pow(10, $scaleLen); |
||
| 21 | $higher = ($value & 0xffffffff00000000) >> 32; |
||
| 22 | $lower = $value & 0x00000000ffffffff; |
||
| 23 | $binary = pack('NNN', $scaleLen, $higher, $lower); |
||
| 24 | return $binary; |
||
| 25 | } |
||
| 26 | |||
| 46 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.