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

Small PHP adjustments in Chisel methods #415

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JakubSzajna
Copy link
Contributor

Hey :)

As I was recently working with Chisel on a bigger project I've noticed two small adjustments I would add to the code.

The "default value" adjustments could be simplified to return $value ?? $default_value; but our x5view does not use php7 by default yet and this would fail on the preview.

@JakubSzajna
Copy link
Contributor Author

I've also changed JS className function definition to be consistent with the PHP one (thanks to @jakub300 suggestion), but I did not test it.

@luboskmetko
Copy link
Member

thanks @JakubSzajna

@jakub300 @marcinkrzeminski could you please review this so we can merge it?

for (let i = 0; i < args.length; i += 1) {
el = args[i];
let modifiers;
if(args[0] instanceof Array) {
Copy link
Member

Choose a reason for hiding this comment

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

@JakubSzajna just a missing space after if

@luboskmetko luboskmetko removed the request for review from marcinkrzeminski June 28, 2019 05:49
@jakub300 jakub300 removed their request for review September 11, 2024 08: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.

2 participants