Skip to content

Refactor from switch statement to match statement for dropdown blade component#1509

Merged
taylorotwell merged 3 commits intolaravel:5.xfrom
phingoc1:5.x
Jul 2, 2024
Merged

Refactor from switch statement to match statement for dropdown blade component#1509
taylorotwell merged 3 commits intolaravel:5.xfrom
phingoc1:5.x

Conversation

@phingoc1
Copy link
Contributor

@phingoc1 phingoc1 commented Jul 2, 2024

Refactored the switch statements to match statements in dropdown blade component (livewire stack) to make it slimmer and more readable.

I have removed default value from the $alignmentClasses match statement since all usage of this component have align="right" out of the box.

@github-actions
Copy link

github-actions bot commented Jul 2, 2024

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@phingoc1 phingoc1 marked this pull request as ready for review July 2, 2024 19:29
@taylorotwell taylorotwell merged commit 121122c into laravel:5.x Jul 2, 2024
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.

2 participants