src/McryptEncrypter.php
protected function addPadding($value)
    {
        $pad = $this->block - (strlen($value) % $this->block);

        return $value.str_repeat(chr($pad), $pad);
    }
protected function addPadding($value)
    {
        $pad = $this->block - (strlen($value) % $this->block);

        return $value.str_repeat(chr($pad), $pad);
    }
protected function addPadding ( $ value ) { $ pad = $ this -> block - ( strlen ( $ value ) % $ this -> block ) ; return $ value . str_repeat ( chr ( $ pad ) , $ pad ) ; }
Add PKCS7 padding to a given value.

@param  string  $value
@return string
Add PKCS7 padding to a given value .