1 | <?php |
||
12 | class MiscHelper |
||
13 | { |
||
14 | /** |
||
15 | * Get the hash of the current git HEAD. |
||
16 | * |
||
17 | * @param string $branch The git branch to check |
||
18 | * |
||
19 | * @return mixed Either the hash or a boolean false |
||
20 | */ |
||
21 | public static function get_current_git_commit($branch = 'master') |
||
27 | |||
28 | public static function sendDiscord($content) |
||
32 | |||
33 | public static function sendTelegram($content) |
||
42 | |||
43 | public static function array_diff_assoc_recursive($array1, $array2) |
||
63 | |||
64 | public static function getPopularity($views, $max) |
||
74 | |||
75 | /** |
||
76 | * @param int $size |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | public static function getReadableBytes($size) |
||
93 | } |
||
94 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.