refactor: run rector DEAD_CODE
ruleset
This commit is contained in:
parent
35745a7623
commit
4299a71df5
5 changed files with 5 additions and 25 deletions
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 '<h2 class="nav-tab-wrapper">';
|
||||
// Iterate through all register sections.
|
||||
foreach ( $this->a_arr_sections as $l_str_id => $l_arr_description ) {
|
||||
$l_str_tab_active = ( $l_str_id === $l_arr_active_section['id'] ) ? ' nav-tab-active' : '';
|
||||
echo sprintf(
|
||||
'<a class="nav-tab%s" href="?page=%s&t=%s">%s</a>',
|
||||
( $l_str_id === $l_arr_active_section['id'] ) ? ' nav-tab-active' : '',
|
||||
|
|
Reference in a new issue