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

perf: Simplify logic with dedicated helper function 'blank' #104

Conversation

Ar-Monta
Copy link

Description

This commit improves the performance of the code by enhancing a dedicated helper function named blank.

Motivation and context

The function now uses a PHP built-in function named empty instead of the logic that was previously handled by two conditions. This refactoring reduces code duplication and improves readability.

How has this been tested?

This function is verified to produce the same output for all valid inputs.

Types of changes

Commits are special refactor changes, that improve performance.

Conclusion:

  • I have created a branch for this patch/feature.
  • Each individual commit in the pull request is meaningful.

Copy link

Thank you for your pull request. However, you have submitted this PR on the Illuminate organization which is a read-only sub split of laravel/framework. Please submit your PR on the https://github.com/laravel/framework repository.

Thanks!

@github-actions github-actions bot closed this Mar 30, 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.

1 participant