I find it incredibly hard to find the name of PHP_Codesniffer rules I'd like to use.
What I want to do right now is to make PHP_Codesniffer complain about array value alignment:
$array = [
'lorem' => 1,
'sit' => 2, // there should only be one space before "=>"
];
My coding standard looks like this (simplified):
<?xml version="1.0"?>
<ruleset name="MyRuleSet">
<rule ref="PSR12"/>
<exclude-pattern>/vendor/</exclude-pattern>
</ruleset>
How do I find the corresponding rule for this? I struggle every time I need to add rules to my coding standard. I can't find useful information neither in the documentation nor the source code.