Skip to content

Commit

Permalink
remove complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
nextgenthemes committed Dec 24, 2024
1 parent 70d3c26 commit 6c77bfa
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions php/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ class Base {
private Settings $settings_instance;
private \WP_Error $errors;

/** @readonly */
private array $settings_data;

public function __construct() {
$this->settings_data = settings_data();
$this->errors = new \WP_Error();
$this->settings_instance = new Settings(
array(
'namespace' => __NAMESPACE__,
'settings' => settings( 'settings_page', $this->settings_data ),
'settings' => settings( 'settings_page' ),
'sections' => settings_sections(),
'premium_sections' => PREMIUM_SECTIONS,
'premium_url_prefix' => PREMIUM_URL_PREFIX,
Expand All @@ -37,10 +33,6 @@ public function get_settings_instance(): Settings {
return $this->settings_instance;
}

public function get_settings_data(): array {
return $this->settings_data;
}

public function get_errors(): \WP_Error {
return $this->errors;
}
Expand Down

0 comments on commit 6c77bfa

Please sign in to comment.