From 4299a71df51e95009aea1e2b763ddd033d5af656 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 2 May 2021 10:18:47 +0100 Subject: [PATCH] refactor: run rector `DEAD_CODE` ruleset --- src/admin/class-wysiwyg.php | 16 ++-------------- src/admin/layout/class-engine.php | 3 +-- src/includes/class-convert.php | 2 -- src/includes/class-settings.php | 2 +- src/public/class-parser.php | 7 +------ 5 files changed, 5 insertions(+), 25 deletions(-) diff --git a/src/admin/class-wysiwyg.php b/src/admin/class-wysiwyg.php index ad3e572..9495d1a 100644 --- a/src/admin/class-wysiwyg.php +++ b/src/admin/class-wysiwyg.php @@ -25,16 +25,6 @@ use footnotes\includes as Includes; */ class WYSIWYG { - /** - * The ID of this plugin. - * - * @access private - * @var string $plugin_name The ID of this plugin. - * - * @since 2.8.0 - */ - private $plugin_name; - /** * Initialize the class and set its properties. * @@ -42,10 +32,8 @@ class WYSIWYG { * * @since 2.8.0 */ - public function __construct( $plugin_name ) { - - $this->plugin_name = $plugin_name; - + public function __construct() + { } /** diff --git a/src/admin/layout/class-engine.php b/src/admin/layout/class-engine.php index 534da19..5e1d543 100644 --- a/src/admin/layout/class-engine.php +++ b/src/admin/layout/class-engine.php @@ -47,7 +47,7 @@ abstract class Engine { * * @since 1.5.0 */ - protected $a_str_sub_page_hook = null; + protected $a_str_sub_page_hook; /** * Stores all Sections for the child sub-page. @@ -286,7 +286,6 @@ abstract class Engine { echo '