Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class Helper |
||
17 | { |
||
18 | /** |
||
19 | * round a number to nearest even number |
||
20 | * |
||
21 | * @param float $number |
||
22 | * @return int |
||
23 | */ |
||
24 | public static function roundToEven(float $number): int |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param int $length |
||
31 | * @return bool|string |
||
32 | */ |
||
33 | public static function randomString($length = 10) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param $word |
||
41 | * @return bool|string |
||
42 | */ |
||
43 | public static function appendSlash($word) |
||
49 | } |
||
50 | } |