...
 
Commits (3)
......@@ -24,11 +24,13 @@ trait Singleton {
* @return object
*/
public static function instance() {
// phpcs:disable WordPressVIPMinimum.Variables.VariableAnalysis.StaticOutsideClass
if ( ! isset( static::$instance ) ) {
static::$instance = new static();
static::$instance->setup();
}
return static::$instance;
// phpcs:enable WordPressVIPMinimum.Variables.VariableAnalysis.StaticOutsideClass
}
/**
......
......@@ -19,7 +19,11 @@
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/</exclude-pattern>
<rule ref="WordPress" />
<rule ref="WordPress">
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="WordPress.PHP.DisallowShortTernary" />
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
</rule>
<rule ref="WordPressVIPMinimum" />
<!--<rule ref="WordPress-VIP-Go" />-->
......