This commit is contained in:
Javier Casares 2026-03-28 09:59:03 +00:00
commit b8e17df2db
17 changed files with 1145 additions and 732 deletions

View file

@ -34,7 +34,7 @@ class Two_Factor_Extended {
* @since 0.1.0
* @var string
*/
private string $version = '1.0.0';
private string $version = '1.0.1';
/**
* Plugin directory path.
@ -147,9 +147,9 @@ class Two_Factor_Extended {
* @since 0.1.0
*/
private function __construct() {
$this->plugin_path = plugin_dir_path( dirname( __FILE__ ) );
$this->plugin_url = plugin_dir_url( dirname( __FILE__ ) );
$this->plugin_basename = plugin_basename( dirname( dirname( __FILE__ ) ) . '/two-factor-extended.php' );
$this->plugin_path = plugin_dir_path( __DIR__ );
$this->plugin_url = plugin_dir_url( __DIR__ );
$this->plugin_basename = plugin_basename( dirname( __DIR__ ) . '/two-factor-extended.php' );
$this->init();
}
@ -253,9 +253,9 @@ class Two_Factor_Extended {
*
* @since 0.1.0
*
* @return Two_Factor_Extended_Settings Settings instance.
* @return Two_Factor_Extended_Settings|null Settings instance or null if not initialized.
*/
public function get_settings(): Two_Factor_Extended_Settings {
public function get_settings(): ?Two_Factor_Extended_Settings {
return $this->settings;
}
@ -264,9 +264,9 @@ class Two_Factor_Extended {
*
* @since 0.1.0
*
* @return Two_Factor_Extended_Enforcement Enforcement instance.
* @return Two_Factor_Extended_Enforcement|null Enforcement instance or null if not initialized.
*/
public function get_enforcement(): Two_Factor_Extended_Enforcement {
public function get_enforcement(): ?Two_Factor_Extended_Enforcement {
return $this->enforcement;
}
@ -275,9 +275,9 @@ class Two_Factor_Extended {
*
* @since 0.1.0
*
* @return Two_Factor_Extended_Provider_Filter Provider filter instance.
* @return Two_Factor_Extended_Provider_Filter|null Provider filter instance or null if not initialized.
*/
public function get_provider_filter(): Two_Factor_Extended_Provider_Filter {
public function get_provider_filter(): ?Two_Factor_Extended_Provider_Filter {
return $this->provider_filter;
}
@ -286,9 +286,9 @@ class Two_Factor_Extended {
*
* @since 0.1.0
*
* @return Two_Factor_Extended_Network_Settings Network settings instance.
* @return Two_Factor_Extended_Network_Settings|null Network settings instance or null if not initialized.
*/
public function get_network_settings(): Two_Factor_Extended_Network_Settings {
public function get_network_settings(): ?Two_Factor_Extended_Network_Settings {
return $this->network_settings;
}
@ -297,9 +297,9 @@ class Two_Factor_Extended {
*
* @since 0.1.0
*
* @return Two_Factor_Extended_Audit_Log Audit log instance.
* @return Two_Factor_Extended_Audit_Log|null Audit log instance or null if not initialized.
*/
public function get_audit_log(): Two_Factor_Extended_Audit_Log {
public function get_audit_log(): ?Two_Factor_Extended_Audit_Log {
return $this->audit_log;
}
@ -308,9 +308,9 @@ class Two_Factor_Extended {
*
* @since 0.1.0
*
* @return Two_Factor_Extended_Compliance_Report Compliance report instance.
* @return Two_Factor_Extended_Compliance_Report|null Compliance report instance or null if not initialized.
*/
public function get_compliance_report(): Two_Factor_Extended_Compliance_Report {
public function get_compliance_report(): ?Two_Factor_Extended_Compliance_Report {
return $this->compliance_report;
}
@ -319,9 +319,9 @@ class Two_Factor_Extended {
*
* @since 0.1.0
*
* @return Two_Factor_Extended_Bulk_Actions Bulk actions instance.
* @return Two_Factor_Extended_Bulk_Actions|null Bulk actions instance or null if not initialized.
*/
public function get_bulk_actions(): Two_Factor_Extended_Bulk_Actions {
public function get_bulk_actions(): ?Two_Factor_Extended_Bulk_Actions {
return $this->bulk_actions;
}
@ -330,9 +330,9 @@ class Two_Factor_Extended {
*
* @since 0.1.0
*
* @return Two_Factor_Extended_REST_API REST API instance.
* @return Two_Factor_Extended_REST_API|null REST API instance or null if not initialized.
*/
public function get_rest_api(): Two_Factor_Extended_REST_API {
public function get_rest_api(): ?Two_Factor_Extended_REST_API {
return $this->rest_api;
}