src/TerminalObject/Helper/StringLength.php
protected function padArray($arr, $final_length, $padding_side = 'right')
    {
        foreach ($arr as $key => $value) {
            $arr[$key] = $this->pad($value, $final_length, $padding_side);
        }

        return $arr;
    }
protected function padArray($arr, $final_length, $padding_side = 'right')
    {
        foreach ($arr as $key => $value) {
            $arr[$key] = $this->pad($value, $final_length, $padding_side);
        }

        return $arr;
    }
protected function padArray ( $ arr , $ final_length , $ padding_side = 'right' ) { foreach ( $ arr as $ key => $ value ) { $ arr [ $ key ] = $ this -> pad ( $ value , $ final_length , $ padding_side ) ; } return $ arr ; }
Apply padding to an array of strings

@param  array $arr
@param  integer $final_length
@param string $padding_side

@return array
Apply padding to an array of strings