| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public static function getHumanReadableBytes($value) |
||
| 15 | { |
||
| 16 | static $unit = array('B', 'KB', 'MB', 'GB', 'TB'); |
||
| 17 | |||
| 18 | $i = floor(log($value, 1024)); |
||
| 19 | $i = min($i, 4); // Only go up to TB |
||
| 20 | |||
| 21 | return array( |
||
| 22 | 'value' => $value / pow(1024, $i), |
||
| 23 | 'unit' => $unit[$i], |
||
| 24 | ); |
||
| 25 | } |
||
| 26 | } |
||
| 27 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.