According to PSR example all conditions in if clauses have no space before or after the expressions. In your case then
if (!true) {
return false;
}
would be a case. Remember that with short expressions you can always use ternary operator and if you have complex condition to be checked, consider to put it into variable.
According to PSR example all conditions in
ifclauses have no space before or after the expressions. In your case thenwould be a case. Remember that with short expressions you can always use ternary operator and if you have complex condition to be checked, consider to put it into variable.