diff --git a/composer.json b/composer.json index 74ab5eb..9ffce5c 100644 --- a/composer.json +++ b/composer.json @@ -50,7 +50,8 @@ "symfony/polyfill-php81": "^1.31.0", "symfony/polyfill-php82": "^1.31.0", "symfony/polyfill-php83": "^1.31.0", - "symfony/polyfill-php84": "^1.31.0" + "symfony/polyfill-php84": "^1.31.0", + "ext-curl": "*" }, "require-dev": { "composer/installers": "^1.9.0", diff --git a/inc/class-dashboard-statistics.php b/inc/class-dashboard-statistics.php index 97cd397..de60059 100644 --- a/inc/class-dashboard-statistics.php +++ b/inc/class-dashboard-statistics.php @@ -73,7 +73,7 @@ class Dashboard_Statistics { * @since 2.0.0 * @return void. */ - public function init() {} + public function init(): void {} /** * Main function to call the get data functions based on the array of types. diff --git a/inc/compat/class-domain-mapping-compat.php b/inc/compat/class-domain-mapping-compat.php index 60094fb..acc7951 100644 --- a/inc/compat/class-domain-mapping-compat.php +++ b/inc/compat/class-domain-mapping-compat.php @@ -29,6 +29,6 @@ class Domain_Mapping_Compat { * @since 2.0.0 * @return void */ - public function init() { + public function init(): void { } } diff --git a/inc/database/engine/class-enum.php b/inc/database/engine/class-enum.php index 0a14138..c9485e4 100644 --- a/inc/database/engine/class-enum.php +++ b/inc/database/engine/class-enum.php @@ -36,7 +36,7 @@ abstract class Enum { /** * @var string */ - private $value = ''; + private $value; /** * Constructor method. Takes the value you want to set. diff --git a/inc/duplication/log.php b/inc/duplication/log.php index f21e1e4..480c4bb 100644 --- a/inc/duplication/log.php +++ b/inc/duplication/log.php @@ -24,12 +24,12 @@ if ( ! class_exists('MUCD_Log') ) { /** * @var string */ - private $log_dir_path = ''; + private $log_dir_path; /** * @var string */ - private $log_file_name = ''; + private $log_file_name; /** * Constructor diff --git a/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php b/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php index 3a888e9..e699ff8 100644 --- a/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php +++ b/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php @@ -74,12 +74,12 @@ class CPanel_API { /** * @var integer */ - private $port = 2083; + private $port; /** * @var boolean */ - private $log = false; + private $log; /** * Creates the CPanel_API Object. diff --git a/inc/limits/class-trial-limits.php b/inc/limits/class-trial-limits.php index d19f494..4c55617 100644 --- a/inc/limits/class-trial-limits.php +++ b/inc/limits/class-trial-limits.php @@ -27,7 +27,7 @@ class Trial_Limits { * @since 2.0.0 * @return void */ - public function init() { + public function init(): void { } /** diff --git a/inc/list-tables/class-membership-list-table-widget.php b/inc/list-tables/class-membership-list-table-widget.php index 7e92329..461536d 100644 --- a/inc/list-tables/class-membership-list-table-widget.php +++ b/inc/list-tables/class-membership-list-table-widget.php @@ -277,5 +277,5 @@ class Membership_List_Table_Widget extends Base_List_Table { * @since 2.0.0 * @return void */ - public function _js_vars() {} + public function _js_vars(): void {} } diff --git a/inc/list-tables/class-payment-list-table-widget.php b/inc/list-tables/class-payment-list-table-widget.php index 7969366..042f1bc 100644 --- a/inc/list-tables/class-payment-list-table-widget.php +++ b/inc/list-tables/class-payment-list-table-widget.php @@ -241,5 +241,5 @@ class Payment_List_Table_Widget extends Base_List_Table { * @since 2.0.0 * @return void */ - public function _js_vars() {} + public function _js_vars(): void {} } diff --git a/inc/managers/class-job-manager.php b/inc/managers/class-job-manager.php index a342bbe..fbdf3ae 100644 --- a/inc/managers/class-job-manager.php +++ b/inc/managers/class-job-manager.php @@ -31,6 +31,6 @@ class Job_Manager { * @since 2.0.0 * @return void */ - public function init() { + public function init(): void { } } diff --git a/inc/models/class-broadcast.php b/inc/models/class-broadcast.php index d3844ce..31d79d2 100644 --- a/inc/models/class-broadcast.php +++ b/inc/models/class-broadcast.php @@ -244,7 +244,7 @@ class Broadcast extends Post_Base_Model { * @param string $type The type being set. * @return void */ - public function set_type($type) { + public function set_type($type): void { if ( ! in_array($type, $this->allowed_types, true)) { $type = 'broadcast_notice'; @@ -261,7 +261,7 @@ class Broadcast extends Post_Base_Model { * @param string $status The status being set. * @return void */ - public function set_status($status) { + public function set_status($status): void { if ( ! in_array($status, $this->allowed_status, true)) { $status = 'publish'; diff --git a/inc/models/class-membership.php b/inc/models/class-membership.php index ac6b235..38cfc1e 100644 --- a/inc/models/class-membership.php +++ b/inc/models/class-membership.php @@ -482,7 +482,7 @@ class Membership extends Base_Model { if ($plan && ($plan->get_duration() !== $this->get_duration() || $plan->get_duration_unit() !== $this->get_duration_unit())) { $variation = $plan->get_as_variation($this->get_duration(), $this->get_duration_unit()); - $plan = ($variation ?: null) ?? $plan; + $plan = ($variation ? $variation : null) ?? $plan; } return $plan; diff --git a/inc/objects/class-limitations.php b/inc/objects/class-limitations.php index c1bb242..54fa025 100644 --- a/inc/objects/class-limitations.php +++ b/inc/objects/class-limitations.php @@ -11,8 +11,6 @@ namespace WP_Ultimo\Objects; -use WP_Ultimo\Objects\Limitations; - // Exit if accessed directly defined('ABSPATH') || exit; diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a3dcd47..2f08435 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -7,8 +7,5 @@ ./tests/ - - utils/rector/tests -