We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
according to strictstandart, it suggests to aling multiline if like that:
if (!isset($suggestion) || (isset($suggestion) && ($suggestion->status == SuggestionDocument::STATUS_NEW || $suggestion->status == SuggestionDocument::STATUS_NO_MATCHES)) )
it doesn't look natural because of complexity of if structure. Maybe it should be aligned differently?
The text was updated successfully, but these errors were encountered:
You are right. Proper formatting should look like this:
if (!isset($suggestion) || (isset($suggestion) && ($suggestion->status == SuggestionDocument::STATUS_NEW || $suggestion->status == SuggestionDocument::STATUS_NO_MATCHES)) ) {
Or even better like this:
if (!isset($suggestion) || ( isset($suggestion) && ( $suggestion->status == SuggestionDocument::STATUS_NEW || $suggestion->status == SuggestionDocument::STATUS_NO_MATCHES ) ) ) {
In the latter variant, ONGR Strict Standard (Squiz standard) disallows hierarchical indentation and expects every line to begin with boolean operator.
Sorry, something went wrong.
No branches or pull requests
according to strictstandart, it suggests to aling multiline if like that:
it doesn't look natural because of complexity of if structure. Maybe it should be aligned differently?
The text was updated successfully, but these errors were encountered: