mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-08 22:51:08 +00:00
Chore(scripts): Simplification and documentation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user