chore: lint code

This commit is contained in:
Ben Goldsworthy 2021-05-02 20:12:47 +01:00
parent c25bd7d8a2
commit 8bb41c7a7a
9 changed files with 49 additions and 50 deletions

View file

@ -48,11 +48,11 @@ class Init {
/** /**
* Initializes all WordPress hooks for the Plugin Settings. * Initializes all WordPress hooks for the Plugin Settings.
* *
*
* @since 1.5.0 * @since 1.5.0
* @since 2.8.0 Added `$plugin_name` parameter. * @since 2.8.0 Added `$plugin_name` parameter.
*/ */
public function __construct( /** public function __construct(
/**
* The ID of this plugin. * The ID of this plugin.
* *
* @access private * @access private
@ -60,7 +60,8 @@ class Init {
* *
* @since 2.8.0 * @since 2.8.0
*/ */
private string $plugin_name ) { private string $plugin_name
) {
$this->load_dependencies(); $this->load_dependencies();
$this->settings_page = new Settings( $this->plugin_name ); $this->settings_page = new Settings( $this->plugin_name );

View file

@ -54,7 +54,7 @@ class Core {
* *
* @var Loader $loader Maintains and registers all hooks for the plugin. * @var Loader $loader Maintains and registers all hooks for the plugin.
*/ */
protected ?\footnotes\includes\Loader $loader = null; protected \footnotes\includes\Loader $loader;
/** /**
* The unique identifier of this plugin * The unique identifier of this plugin

View file

@ -1109,7 +1109,6 @@ class Settings {
/** /**
* Stores a singleton reference of this class. * Stores a singleton reference of this class.
* *
*
* @since 1.5.0 * @since 1.5.0
*/ */
private static ?\footnotes\includes\Settings $a_obj_instance = null; private static ?\footnotes\includes\Settings $a_obj_instance = null;
@ -1344,7 +1343,6 @@ class Settings {
/** /**
* Returns a singleton of this class. * Returns a singleton of this class.
* *
*
* @since 1.5.0 * @since 1.5.0
* @todo Remove? * @todo Remove?
*/ */