Jump to content

About new coding standard


admin_webs

Recommended Posts

I have read that link. But there not obviously.

 

Yes they show

if ($expr1) {
    // if body
} elseif ($expr2) {
    // elseif body
} else {
    // else body;
}

And psr 2 not allow inline structure. But prestashop have long history not use inline structure (for me is terrible but it was)

 

But psr 2 allow use camelCase and snake_case.

$foo->bar(
    $longArgument,
    $longerArgument,
    $muchLongerArgument
);

And I'm not sure will new prestashop validator allow camelCase

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...