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

Version 2.0.0 released and ready for test and deploy #15

Merged
merged 3 commits into from
Feb 15, 2016

Conversation


else {
$width = '';
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use a ternary operator in this case.

$width = ($size == 'large' || $size == 'medium') ? sprintf('data-pin-width="%s" ', $size) : '';

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, good point. As I said here I just followed your codebase and made some copy/paste/mods but if you want improve it, I can only agree :)

@deshack deshack self-assigned this Feb 15, 2016
@deshack deshack added this to the v2.0.0 milestone Feb 15, 2016
@deshack
Copy link
Owner

deshack commented Feb 15, 2016

This is the patch I created replacing long string concatenations with sprintf(). I'll let you apply this in order to keep reviewing it.

patch.txt

@deshack deshack merged commit bca4ebd into deshack:dev Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants