Skip to content

Commit

Permalink
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Sep 2, 2016
1 parent 0516e96 commit d4e3faf
Show file tree
Hide file tree
Showing 63 changed files with 153 additions and 153 deletions.
2 changes: 1 addition & 1 deletion apigen/hook-docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private static function get_files( $pattern, $flags = 0, $path = '' ) {

if ( $dir == '\\' || $dir == '/' ) { $dir = ''; } // End IF Statement

return self::get_files(basename( $pattern ), $flags, $dir . '/' );
return self::get_files( basename( $pattern ), $flags, $dir . '/' );

} // End IF Statement

Expand Down
4 changes: 2 additions & 2 deletions includes/abstracts/abstract-wc-payment-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function get_return_url( $order = null ) {
$return_url = wc_get_endpoint_url( 'order-received', '', wc_get_page_permalink( 'checkout' ) );
}

if ( is_ssl() || get_option('woocommerce_force_ssl_checkout' ) == 'yes' ) {
if ( is_ssl() || get_option( 'woocommerce_force_ssl_checkout' ) == 'yes' ) {
$return_url = str_replace( 'http:', 'https:', $return_url );
}

Expand Down Expand Up @@ -379,7 +379,7 @@ public function credit_card_form( $args = array(), $fields = array() ) {
public function tokenization_script() {
wp_enqueue_script(
'woocommerce-tokenization-form',
plugins_url( '/assets/js/frontend/tokenization-form' . ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min' ) . '.js', WC_PLUGIN_FILE ),
plugins_url( '/assets/js/frontend/tokenization-form' . ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min' ) . '.js', WC_PLUGIN_FILE ),
array( 'jquery' ),
WC()->version
);
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-wc-admin-api-keys-table-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function column_description( $key ) {
$row_actions[] = '<span class="' . esc_attr( $action ) . '">' . $link . '</span>';
}

$output .= '<div class="row-actions">' . implode( ' | ', $row_actions ) . '</div>';
$output .= '<div class="row-actions">' . implode( ' | ', $row_actions ) . '</div>';

return $output;
}
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-wc-admin-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static function add_notices() {
$notices = self::get_notices();

if ( ! empty( $notices ) ) {
wp_enqueue_style( 'woocommerce-activation', plugins_url( '/assets/css/activation.css', WC_PLUGIN_FILE ) );
wp_enqueue_style( 'woocommerce-activation', plugins_url( '/assets/css/activation.css', WC_PLUGIN_FILE ) );
foreach ( $notices as $notice ) {
if ( ! empty( self::$core_notices[ $notice ] ) && apply_filters( 'woocommerce_show_admin_notice', true, $notice ) ) {
add_action( 'admin_notices', array( __CLASS__, self::$core_notices[ $notice ] ) );
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/class-wc-admin-permalink-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function settings_init() {
public function product_category_slug_input() {
$permalinks = get_option( 'woocommerce_permalinks' );
?>
<input name="woocommerce_product_category_slug" type="text" class="regular-text code" value="<?php if ( isset( $permalinks['category_base'] ) ) echo esc_attr( $permalinks['category_base'] ); ?>" placeholder="<?php echo esc_attr_x('product-category', 'slug', 'woocommerce' ) ?>" />
<input name="woocommerce_product_category_slug" type="text" class="regular-text code" value="<?php if ( isset( $permalinks['category_base'] ) ) echo esc_attr( $permalinks['category_base'] ); ?>" placeholder="<?php echo esc_attr_x( 'product-category', 'slug', 'woocommerce' ) ?>" />
<?php
}

Expand All @@ -75,7 +75,7 @@ public function product_category_slug_input() {
public function product_tag_slug_input() {
$permalinks = get_option( 'woocommerce_permalinks' );
?>
<input name="woocommerce_product_tag_slug" type="text" class="regular-text code" value="<?php if ( isset( $permalinks['tag_base'] ) ) echo esc_attr( $permalinks['tag_base'] ); ?>" placeholder="<?php echo esc_attr_x('product-tag', 'slug', 'woocommerce' ) ?>" />
<input name="woocommerce_product_tag_slug" type="text" class="regular-text code" value="<?php if ( isset( $permalinks['tag_base'] ) ) echo esc_attr( $permalinks['tag_base'] ); ?>" placeholder="<?php echo esc_attr_x( 'product-tag', 'slug', 'woocommerce' ) ?>" />
<?php
}

Expand Down
10 changes: 5 additions & 5 deletions includes/admin/class-wc-admin-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -932,9 +932,9 @@ public function product_sorting_link( $views ) {
}

$class = ( isset( $wp_query->query['orderby'] ) && $wp_query->query['orderby'] == 'menu_order title' ) ? 'current' : '';
$query_string = remove_query_arg(array( 'orderby', 'order' ) );
$query_string = add_query_arg( 'orderby', urlencode('menu_order title' ), $query_string );
$query_string = add_query_arg( 'order', urlencode('ASC' ), $query_string );
$query_string = remove_query_arg( array( 'orderby', 'order' ) );
$query_string = add_query_arg( 'orderby', urlencode( 'menu_order title' ), $query_string );
$query_string = add_query_arg( 'order', urlencode( 'ASC' ), $query_string );
$views['byorder'] = '<a href="' . esc_url( $query_string ) . '" class="' . esc_attr( $class ) . '">' . __( 'Sort Products', 'woocommerce' ) . '</a>';

return $views;
Expand Down Expand Up @@ -1108,7 +1108,7 @@ private function quick_edit_save( $post_id, $product ) {
update_post_meta( $post_id, '_tax_class', wc_clean( $_REQUEST['_tax_class'] ) );
}

if ( $product->is_type('simple' ) || $product->is_type('external' ) ) {
if ( $product->is_type( 'simple' ) || $product->is_type( 'external' ) ) {

if ( isset( $_REQUEST['_regular_price'] ) ) {
$new_regular_price = $_REQUEST['_regular_price'] === '' ? '' : wc_format_decimal( $_REQUEST['_regular_price'] );
Expand Down Expand Up @@ -1162,7 +1162,7 @@ private function quick_edit_save( $post_id, $product ) {
}

// Handle stock
if ( ! $product->is_type('grouped' ) ) {
if ( ! $product->is_type( 'grouped' ) ) {
if ( isset( $_REQUEST['_manage_stock'] ) ) {
update_post_meta( $post_id, '_manage_stock', 'yes' );
wc_update_product_stock( $post_id, wc_stock_amount( $_REQUEST['_stock'] ) );
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-wc-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ class="<?php echo esc_attr( isset( $value['class'] ) ? $value['class'] : '' ); ?
?><tr valign="top" class="single_select_page">
<th scope="row" class="titledesc"><?php echo esc_html( $value['title'] ) ?> <?php echo $tooltip_html; ?></th>
<td class="forminp">
<?php echo str_replace(' id=', " data-placeholder='" . esc_attr__( 'Select a page&hellip;', 'woocommerce' ) . "' style='" . $value['css'] . "' class='" . $value['class'] . "' id=", wp_dropdown_pages( $args ) ); ?> <?php echo $description; ?>
<?php echo str_replace( ' id=', " data-placeholder='" . esc_attr__( 'Select a page&hellip;', 'woocommerce' ) . "' style='" . $value['css'] . "' class='" . $value['class'] . "' id=", wp_dropdown_pages( $args ) ); ?> <?php echo $description; ?>
</td>
</tr><?php
break;
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-wc-admin-webhooks-table-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function column_title( $webhook ) {
$row_actions[] = '<span class="' . esc_attr( $action ) . '">' . $link . '</span>';
}

$output .= '<div class="row-actions">' . implode( ' | ', $row_actions ) . '</div>';
$output .= '<div class="row-actions">' . implode( ' | ', $row_actions ) . '</div>';

return $output;
}
Expand Down
6 changes: 3 additions & 3 deletions includes/admin/importers/class-wc-tax-rate-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function import( $file ) {
* Performs post-import cleanup of files and the cache.
*/
public function import_end() {
echo '<p>' . __( 'All done!', 'woocommerce' ) . ' <a href="' . admin_url('admin.php?page=wc-settings&tab=tax' ) . '">' . __( 'View Tax Rates', 'woocommerce' ) . '</a>' . '</p>';
echo '<p>' . __( 'All done!', 'woocommerce' ) . ' <a href="' . admin_url( 'admin.php?page=wc-settings&tab=tax' ) . '">' . __( 'View Tax Rates', 'woocommerce' ) . '</a>' . '</p>';

do_action( 'import_end' );
}
Expand Down Expand Up @@ -240,7 +240,7 @@ public function greet() {
<p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php
else :
?>
<form enctype="multipart/form-data" id="import-upload-form" method="post" action="<?php echo esc_attr(wp_nonce_url($action, 'import-upload' ) ); ?>">
<form enctype="multipart/form-data" id="import-upload-form" method="post" action="<?php echo esc_attr( wp_nonce_url( $action, 'import-upload' ) ); ?>">
<table class="form-table">
<tbody>
<tr>
Expand All @@ -251,7 +251,7 @@ public function greet() {
<input type="file" id="upload" name="import" size="25" />
<input type="hidden" name="action" value="save" />
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
<small><?php printf( __('Maximum size: %s', 'woocommerce' ), $size ); ?></small>
<small><?php printf( __( 'Maximum size: %s', 'woocommerce' ), $size ); ?></small>
</td>
</tr>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public static function output( $post ) {
'label' => __( 'Email restrictions', 'woocommerce' ),
'placeholder' => __( 'No restrictions', 'woocommerce' ),
'description' => __( 'List of allowed emails to check against the customer\'s billing email when an order is placed. Separate email addresses with commas.', 'woocommerce' ),
'value' => implode(', ', (array) get_post_meta( $post->ID, 'customer_email', true ) ),
'value' => implode( ', ', (array) get_post_meta( $post->ID, 'customer_email', true ) ),
'desc_tip' => true,
'type' => 'email',
'class' => '',
Expand All @@ -196,7 +196,7 @@ public static function output( $post ) {
woocommerce_wp_text_input( array(
'id' => 'usage_limit',
'label' => __( 'Usage limit per coupon', 'woocommerce' ),
'placeholder' => _x('Unlimited usage', 'placeholder', 'woocommerce' ),
'placeholder' => _x( 'Unlimited usage', 'placeholder', 'woocommerce' ),
'description' => __( 'How many times this coupon can be used before it is void.', 'woocommerce' ),
'type' => 'number',
'desc_tip' => true,
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/meta-boxes/class-wc-meta-box-order-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public static function save( $post_id, $post ) {

// Update date
if ( empty( $_POST['order_date'] ) ) {
$date = current_time('timestamp' );
$date = current_time( 'timestamp' );
} else {
$date = strtotime( $_POST['order_date'] . ' ' . (int) $_POST['order_date_hour'] . ':' . (int) $_POST['order_date_minute'] . ':00' );
}
Expand Down
6 changes: 3 additions & 3 deletions includes/admin/meta-boxes/class-wc-meta-box-product-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static function output( $post ) {
woocommerce_wp_text_input( array( 'id' => '_product_url', 'label' => __( 'Product URL', 'woocommerce' ), 'placeholder' => 'http://', 'description' => __( 'Enter the external URL to the product.', 'woocommerce' ) ) );

// Button text
woocommerce_wp_text_input( array( 'id' => '_button_text', 'label' => __( 'Button text', 'woocommerce' ), 'placeholder' => _x('Buy product', 'placeholder', 'woocommerce' ), 'description' => __( 'This text will be shown on the button linking to the external product.', 'woocommerce' ) ) );
woocommerce_wp_text_input( array( 'id' => '_button_text', 'label' => __( 'Button text', 'woocommerce' ), 'placeholder' => _x( 'Buy product', 'placeholder', 'woocommerce' ), 'description' => __( 'This text will be shown on the button linking to the external product.', 'woocommerce' ) ) );

echo '</div>';

Expand Down Expand Up @@ -575,7 +575,7 @@ public static function output( $post ) {
<div class="options_group hide_if_external">
<?php
// Purchase note
woocommerce_wp_textarea_input( array( 'id' => '_purchase_note', 'label' => __( 'Purchase note', 'woocommerce' ), 'desc_tip' => 'true', 'description' => __( 'Enter an optional note to send the customer after purchase.', 'woocommerce' ) ) );
woocommerce_wp_textarea_input( array( 'id' => '_purchase_note', 'label' => __( 'Purchase note', 'woocommerce' ), 'desc_tip' => 'true', 'description' => __( 'Enter an optional note to send the customer after purchase.', 'woocommerce' ) ) );
?>
</div>

Expand Down Expand Up @@ -951,7 +951,7 @@ public static function save( $post_id, $post ) {
} else {
$term = wp_insert_term( trim( $value ), $attribute_names[ $i ] );
if ( isset( $term->term_id ) ) {
$values[ $key ] = intval($term->term_id );
$values[ $key ] = intval( $term->term_id );
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/meta-boxes/views/html-variation-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
</p>
<p class="form-row form-row-last">
<label><?php _e( 'Sale end date', 'woocommerce' ); ?></label>
<input type="text" class="sale_price_dates_to" name="variable_sale_price_dates_to[<?php echo $loop; ?>]" value="<?php echo ! empty( $_sale_price_dates_to ) ? date_i18n( 'Y-m-d', $_sale_price_dates_to ) : ''; ?>" placeholder="<?php echo esc_attr_x('To&hellip;', 'placeholder', 'woocommerce' ) ?> YYYY-MM-DD" maxlength="10" pattern="[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])" />
<input type="text" class="sale_price_dates_to" name="variable_sale_price_dates_to[<?php echo $loop; ?>]" value="<?php echo ! empty( $_sale_price_dates_to ) ? date_i18n( 'Y-m-d', $_sale_price_dates_to ) : ''; ?>" placeholder="<?php echo esc_attr_x( 'To&hellip;', 'placeholder', 'woocommerce' ) ?> YYYY-MM-DD" maxlength="10" pattern="[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])" />
</p>
</div>

Expand Down
8 changes: 4 additions & 4 deletions includes/admin/reports/class-wc-admin-report.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ public function get_order_report_data( $args = array() ) {
if ( $filter_range ) {

$query['where'] .= "
AND posts.post_date >= '" . date('Y-m-d', $this->start_date ) . "'
AND posts.post_date < '" . date('Y-m-d', strtotime( '+1 DAY', $this->end_date ) ) . "'
AND posts.post_date >= '" . date( 'Y-m-d', $this->start_date ) . "'
AND posts.post_date < '" . date( 'Y-m-d', strtotime( '+1 DAY', $this->end_date ) ) . "'
";
}

Expand Down Expand Up @@ -523,7 +523,7 @@ public function calculate_current_range( $current_range ) {
break;

case 'year' :
$this->start_date = strtotime( date( 'Y-01-01', current_time('timestamp' ) ) );
$this->start_date = strtotime( date( 'Y-01-01', current_time( 'timestamp' ) ) );
$this->end_date = strtotime( 'midnight', current_time( 'timestamp' ) );
$this->chart_groupby = 'month';
break;
Expand All @@ -536,7 +536,7 @@ public function calculate_current_range( $current_range ) {
break;

case 'month' :
$this->start_date = strtotime( date( 'Y-m-01', current_time('timestamp' ) ) );
$this->start_date = strtotime( date( 'Y-m-01', current_time( 'timestamp' ) ) );
$this->end_date = strtotime( 'midnight', current_time( 'timestamp' ) );
$this->chart_groupby = 'day';
break;
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/reports/class-wc-report-coupon-usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public function get_export_button() {
?>
<a
href="#"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp' ) ); ?>.csv"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"
class="export_csv"
data-export="chart"
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>"
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/reports/class-wc-report-customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function get_export_button() {
?>
<a
href="#"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp' ) ); ?>.csv"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"
class="export_csv"
data-export="chart"
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function get_export_button() {
?>
<a
href="#"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp' ) ); ?>.csv"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"
class="export_csv"
data-export="chart"
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>"
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/reports/class-wc-report-sales-by-date.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public function get_export_button() {
?>
<a
href="#"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp' ) ); ?>.csv"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"
class="export_csv"
data-export="chart"
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public function get_export_button() {
?>
<a
href="#"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp' ) ); ?>.csv"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"
class="export_csv"
data-export="chart"
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>"
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/reports/class-wc-report-taxes-by-code.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function get_export_button() {
?>
<a
href="#"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp' ) ); ?>.csv"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"
class="export_csv"
data-export="table"
>
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/reports/class-wc-report-taxes-by-date.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function get_export_button() {
?>
<a
href="#"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp' ) ); ?>.csv"
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"
class="export_csv"
data-export="table"
>
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/settings/class-wc-settings-emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function get_settings() {

array( 'type' => 'sectionend', 'id' => 'email_options' ),

array( 'title' => __( 'Email Template', 'woocommerce' ), 'type' => 'title', 'desc' => sprintf(__( 'This section lets you customize the WooCommerce emails. <a href="%s" target="_blank">Click here to preview your email template</a>.', 'woocommerce' ), wp_nonce_url( admin_url( '?preview_woocommerce_mail=true' ), 'preview-mail' ) ), 'id' => 'email_template_options' ),
array( 'title' => __( 'Email Template', 'woocommerce' ), 'type' => 'title', 'desc' => sprintf( __( 'This section lets you customize the WooCommerce emails. <a href="%s" target="_blank">Click here to preview your email template</a>.', 'woocommerce' ), wp_nonce_url( admin_url( '?preview_woocommerce_mail=true' ), 'preview-mail' ) ), 'id' => 'email_template_options' ),

array(
'title' => __( 'Header Image', 'woocommerce' ),
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/views/html-admin-page-status-tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<td><?php echo esc_html( $tool['name'] ); ?></td>
<td>
<p>
<a href="<?php echo wp_nonce_url( admin_url('admin.php?page=wc-status&tab=tools&action=' . $action ), 'debug_action' ); ?>" class="button <?php echo esc_attr( $action ); ?>"><?php echo esc_html( $tool['button'] ); ?></a>
<a href="<?php echo wp_nonce_url( admin_url( 'admin.php?page=wc-status&tab=tools&action=' . $action ), 'debug_action' ); ?>" class="button <?php echo esc_attr( $action ); ?>"><?php echo esc_html( $tool['button'] ); ?></a>
<span class="description"><?php echo wp_kses_post( $tool['desc'] ); ?></span>
</p>
</td>
Expand Down
2 changes: 1 addition & 1 deletion includes/api/class-wc-rest-system-status-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public function get_environment_info() {
'version' => WC()->version,
'log_directory' => WC_LOG_DIR,
'log_directory_writable' => ( @fopen( WC_LOG_DIR . 'test-log.log', 'a' ) ? true : false ),
'wp_version' => get_bloginfo('version' ),
'wp_version' => get_bloginfo( 'version' ),
'wp_multisite' => is_multisite(),
'wp_memory_limit' => $wp_memory_limit,
'wp_debug_mode' => ( defined( 'WP_DEBUG' ) && WP_DEBUG ),
Expand Down
2 changes: 1 addition & 1 deletion includes/api/legacy/v1/class-wc-api-xml-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function generate_response( $data ) {

$this->xml->openMemory();

$this->xml->setIndent(true );
$this->xml->setIndent( true );

$this->xml->startDocument( '1.0', 'UTF-8' );

Expand Down
2 changes: 1 addition & 1 deletion includes/api/legacy/v2/class-wc-api-products.php
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ private function save_product_shipping_data( $id, $data ) {

// Width
if ( isset( $data['dimensions']['width'] ) ) {
update_post_meta( $id, '_width', ( '' === $data['dimensions']['width'] ) ? '' : wc_format_decimal($data['dimensions']['width'] ) );
update_post_meta( $id, '_width', ( '' === $data['dimensions']['width'] ) ? '' : wc_format_decimal( $data['dimensions']['width'] ) );
}

// Length
Expand Down
Loading

0 comments on commit d4e3faf

Please sign in to comment.