Skip to content
Snippets Groups Projects
Commit 92b9e919 authored by Erick Hitter's avatar Erick Hitter
Browse files

PHPCS

parent 24496036
Branches
Tags
1 merge request!1Initial release
Pipeline #5144 passed
......@@ -47,7 +47,7 @@ class Plugin {
public static function get_instance(): Plugin {
if ( ! is_a( self::$_instance, __CLASS__ ) ) {
self::$_instance = new self();
self::$_instance->setup();
self::$_instance->_setup();
}
return self::$_instance;
......@@ -56,14 +56,16 @@ class Plugin {
/**
* Silence is golden!
*/
private function __construct() {}
private function __construct() {
// Add nothing here.
}
/**
* Register hooks.
*
* @return void
*/
private function setup(): void {
private function _setup(): void {
add_action( 'init', [ $this, 'action_init' ] );
add_filter(
'oembed_fetch_url',
......
......@@ -26,7 +26,9 @@
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
<config name="minimum_supported_wp_version" value="4.7"/>
<rule ref="WordPress" />
<rule ref="WordPress">
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
</rule>
<rule ref="WordPressVIPMinimum" />
<rule ref="WordPress-VIP-Go" />
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment