| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | abstract class PhpWordHelper |
||
| 8 | { |
||
| 9 | public static function mmToTwip(int|float $mm) : int |
||
| 10 | { |
||
| 11 | return round(Converter::cmToTwip($mm / 10)); |
||
|
|
|||
| 12 | } |
||
| 13 | |||
| 14 | public static function mmToPoint(int|float $mm) : int |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Convert percentage to fiftieths (1/50) of a percent (1% = 50 unit). |
||
| 21 | * |
||
| 22 | * @param int|float $percent |
||
| 23 | * @return int|float |
||
| 24 | */ |
||
| 25 | public static function percentToPct(int|float $percent) : int|float |
||
| 28 | } |
||
| 29 | } |
||
| 30 |