-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Small refactoring to better code readability #16010
Small refactoring to better code readability #16010
Conversation
$dependsJson = $this->_getDependsJson(); | ||
$configOptions = $this->_configOptions ? $this->_jsonEncoder->encode($this->_configOptions) : null; | ||
$configOptionsStr = $configOptions ? ', ' . $configOptions : ''; | ||
$paramsStr = $dependsJson . $configOptionsStr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO readability could be slightly improved if you do like this:
$params = $this->_getDependsJson();
if ($this->_configOptions) {
$params .= ', ' . $this->_configOptions;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orlangur, Absolutely agree with you. I updated pull request according to your suggestion.
Hi @orlangur, thank you for the review. |
Hi @likemusic. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
Small refactoring to better code readability
Contribution checklist