Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
asumaran committed Nov 30, 2023
1 parent 24bd2e4 commit 89e5760
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/woocommerce/includes/class-wc-geolocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function get_ip_address() {
* @return string
*/
public static function get_external_ip_address() {
$transient_name = null;
$transient_name = null;
$external_ip_address = '0.0.0.0';

if ( '' !== self::get_ip_address() ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function task( $item ) {
if ( ! $item || empty( $item['task'] ) ) {
return false;
}

$process_count = 0;
$process_limit = 20;

Expand Down
4 changes: 2 additions & 2 deletions plugins/woocommerce/includes/class-wc-tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -1072,9 +1072,9 @@ public static function get_block_tracker_data( $block_name, $woo_page_name ) {
* - pickup_locations_count
*/
public static function get_pickup_location_data() {
$pickup_location_enabled = false;
$pickup_location_enabled = false;
$pickup_location_pickup_locations = get_option( 'pickup_location_pickup_locations', array() );
$pickup_locations_count = is_countable( $pickup_location_pickup_locations ) ? count( $pickup_location_pickup_locations ) : 0;
$pickup_locations_count = is_countable( $pickup_location_pickup_locations ) ? count( $pickup_location_pickup_locations ) : 0;

// Get the available shipping methods.
$shipping_methods = WC()->shipping()->get_shipping_methods();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private function load_shipping_method_options() {

$data_store = WC_Data_Store::load( 'shipping-zone' );
$raw_zones = $data_store->get_zones();
$zones = [];
$zones = array();

foreach ( $raw_zones as $raw_zone ) {
$zones[] = new WC_Shipping_Zone( $raw_zone );
Expand Down

0 comments on commit 89e5760

Please sign in to comment.