I am trying to create my own ruleset for PHPCS extending the WordPress standard. My goal is to define that a opening brace starts as the same line as the function name.
public function __construct() {
self::$instance = $this;
}
So I added this to my ruleset
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration">
<properties>
<property name="opening_brace" value="same"/>
<property name="closing_brace" value="next_line"/>
<severity>5</severity>
</properties>
</rule>
But the sniffer still shows me the error:
Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
I just found this codesnippet, but I have no idea how to find the correct propertynames. How do I get the correct rule + property and value?