private function zeroPad(array $number, $right)
    {
        $log = (int) log($this->target->getRadix(), $this->source->getRadix());

        if ($log > 1 && count($number) % $log) {
            $pad = count($number) + ($log - count($number) % $log);
            $number = array_pad($number, $right ? $pad : -$pad, $this->source->getDigit(0));
        }

        return $number;
    }
private function zeroPad(array $number, $right)
    {
        $log = (int) log($this->target->getRadix(), $this->source->getRadix());

        if ($log > 1 && count($number) % $log) {
            $pad = count($number) + ($log - count($number) % $log);
            $number = array_pad($number, $right ? $pad : -$pad, $this->source->getDigit(0));
        }

        return $number;
    }
private function zeroPad ( array $ number , $ right ) { $ log = ( int ) log ( $ this -> target -> getRadix ( ) , $ this -> source -> getRadix ( ) ) ; if ( $ log > 1 && count ( $ number ) % $ log ) { $ pad = count ( $ number ) + ( $ log - count ( $ number ) % $ log ) ; $ number = array_pad ( $ number , $ right ? $ pad : - $ pad , $ this -> source -> getDigit ( 0 ) ) ; } return $ number ; }
Pads the digits to correct count for string replacement.
@param array $number Array of digits to pad
@param bool $right True to pad from right, false to pad from left
@return array Padded array of digits
Pads the digits to correct count for string replacement .