Chore(scripts): Simplification and documentation

This commit is contained in:
2023-05-10 02:07:27 +03:00
parent 3fce0ac4dc
commit e7578e4905
6 changed files with 147 additions and 141 deletions

View File

@@ -10,6 +10,14 @@ $fsCharLenght = 0;
$quota = shell_exec("quota -w");
/**
* Pad string
*
* @param string $i Input string
* @param int $n Length
* @param string $p Padding string
* @return string
*/
function pad($i, $n = 3, $p = ' ')
{
return str_pad($i, $n, $p, STR_PAD_LEFT);