Hi,
PHP: return - Manual says:
since
returnis a language construct and not a function, the parentheses surrounding its argument are not required and their use is discouraged.
There does not seem to be a rule for this in SonarQube (I am using the latest LTS community edition).
Would it be possible to update the Sonar Way PHP rules to include a code smell warning if return($foo); is used instead of return $foo; ?