Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to specify character in pad function #141

Merged

Conversation

ProjektGopher
Copy link
Contributor

@ProjektGopher ProjektGopher commented Apr 26, 2024

This PR adds the ability to specify the character used to pad strings in the DrawsBoxes trait. By using a default value of [SPACE] as an optional third parameter, this is fully backward compatible, and the test suite shows that no existing functionality is broken as a result.

This will allow the pad() method to be used with box characters, or whatever else might be needed.

@ProjektGopher ProjektGopher marked this pull request as draft April 26, 2024 22:30
@ProjektGopher
Copy link
Contributor Author

Marked as draft, but this is ready to go once reviewed.

@driesvints
Copy link
Member

@ProjektGopher draft PR's aren't reviewed. Please mark this as ready if you need one.

@ProjektGopher
Copy link
Contributor Author

ProjektGopher commented Apr 29, 2024

Thx @driesvints, I thought marking as draft was part of Larave's process for this repo since my other PR got marked as draft without comment. Thx for the heads-up.

@ProjektGopher ProjektGopher marked this pull request as ready for review April 29, 2024 15:29
@taylorotwell taylorotwell merged commit f041b97 into laravel:main Apr 29, 2024
4 checks passed
@ProjektGopher ProjektGopher deleted the feature/specify_char_in_pad branch April 29, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants