else isn't needed, as the previous block returns on completion + removed call to strlen if length of padding is less than or equal 0
StringWrapper::convert() Renamed second argument  to  and fixed phpdoc
phpdoc