I have updated my phpcs rules in my phpcs.xml
to include:
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="2" />
</properties>
</rule>
which works perfectly, however if I were to have:
function test($x) {
$string = 'Hello';
return $string . $x;
}
No error appears, but it does appear if there is no indentation. I can't figure out what seems to be the issue.