Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Pad a string to a certain length with another string
<?php str_pad(    string $string,    int $length,    string $pad_string = " ",    int $pad_type = STR_PAD_RIGHT): string
<?php     {

        $expression = $this->formatCronExpression($event->expression, $expressionSpacing);



        $repeatExpression = str_pad($this->getRepeatExpression($event), $repeatExpressionSpacing);



        $command = $event->command ?? '';
<?php         $expressions = preg_split("/\s+/", $expression);



        return collect($spacing)

            ->map(fn ($length, $index) => str_pad($expressions[$index], $length))

            ->implode(' ');

    }