You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2018. It is now read-only.
This is a very minor, mostly stylistic issue, but using braces for all conditional statements- even if they only contain one statement- is in my opinion more consistent and readable. It is not necessary to use braces in PHP, but many style guides call for it, and some IDEs consider not using braces an error (e.g. NetBeans). It's also a bit easier to debug, as the code blocks are clearly delimited.
What I mean is replace
if (foo == true)
do_something();
else
do_something_else();
This is a very minor, mostly stylistic issue, but using braces for all conditional statements- even if they only contain one statement- is in my opinion more consistent and readable. It is not necessary to use braces in PHP, but many style guides call for it, and some IDEs consider not using braces an error (e.g. NetBeans). It's also a bit easier to debug, as the code blocks are clearly delimited.
What I mean is replace
with
The text was updated successfully, but these errors were encountered: