src/Helpers/ArrayFunctionsHelperMethods.php
public function pad(int $length, $value = null)
    {
        $this->setData(
            array_pad($this->getData(), $length, $value)
        );

        return $this;
    }
public function pad(int $length, $value = null)
    {
        $this->setData(
            array_pad($this->getData(), $length, $value)
        );

        return $this;
    }
public function pad ( int $ length , $ value = null ) { $ this -> setData ( array_pad ( $ this -> getData ( ) , $ length , $ value ) ) ; return $ this ; }
Pads out an array to a specified length

Note that PHP has an upper limit of 1048576 elements that can be added to
an array {@see http://php.net/manual/en/function.array-pad.php}

@param int $length - The length add to the array
@param mixed $value - The default value to add to the array
@return self
Pads out an array to a specified length