Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
wordpressfan committed Jun 27, 2024
1 parent 26be399 commit a4e4be3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions inc/Engine/Admin/Settings/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ public function customer_data() {
$data['license_type'] = rocket_get_license_type( $user );

if ( ! empty( $user->licence_expiration ) ) {
$data['license_class'] = time() < $user->licence_expiration ? 'wpr-isValid' : 'wpr-isInvalid';
$data['license_class'] = time() < $user->licence_expiration ? 'wpr-isValid' : 'wpr-isInvalid';
}

if ( ! empty( $user->licence_expiration ) ) {
$data['license_expiration'] = date_i18n( get_option( 'date_format' ), (int) $user->licence_expiration );
$data['license_expiration'] = date_i18n( get_option( 'date_format' ), (int) $user->licence_expiration );
}

if ( isset( $user->{'has_one-com_account'} ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ private function delete_timeout_transients() {
* @return array|WP_Error
*/
private function send_remote_request( $api_url, $method, $params, $safe ) {
error_log( 'seding request to: ' . $api_url );
if ( ! $safe ) {
return wp_remote_request( $api_url, $params );
}
Expand Down
2 changes: 1 addition & 1 deletion inc/Engine/Plugin/InformationSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class InformationSubscriber implements Subscriber_Interface {
/**
* Constructor
*
* @param array $args { Required arguments to populate the class properties.
* @param array $args { Required arguments to populate the class properties.
* @type string $plugin_file Full path to the plugin.
* @type string $api_url URL to contact to get update info.
* }
Expand Down
4 changes: 2 additions & 2 deletions inc/Engine/Plugin/UpdaterSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ class UpdaterSubscriber implements Event_Manager_Aware_Subscriber_Interface {
/**
* Constructor
*
* @param RenewalNotice $renewal_notice RenewalNotice instance.
* @param RenewalNotice $renewal_notice RenewalNotice instance.
*
* @param array $args { Required arguments to populate the class properties.
* @param array $args { Required arguments to populate the class properties.
* @type string $plugin_file Full path to the plugin.
* @type string $plugin_version Current version of the plugin.
* @type string $vendor_url URL to the plugin provider.
Expand Down
3 changes: 3 additions & 0 deletions inc/Engine/WPRocketUninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ class WPRocketUninstall {
'wp_rocket_pricing_timeout',
'wp_rocket_pricing_timeout_active',
'rocket_get_refreshed_fragments_cache',

'user_information_timeout_active',
'user_information_timeout',
];

/**
Expand Down

0 comments on commit a4e4be3

Please sign in to comment.