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