Fix PHPCS
This commit is contained in:
parent
ca8049dd52
commit
51d9d4ab13
|
@ -306,7 +306,7 @@ class WC_Report_Customer_List extends WP_List_Table {
|
||||||
'exclude' => array_merge( $admin_users->get_results(), $manager_users->get_results() ),
|
'exclude' => array_merge( $admin_users->get_results(), $manager_users->get_results() ),
|
||||||
'number' => $per_page,
|
'number' => $per_page,
|
||||||
'offset' => ( $current_page - 1 ) * $per_page,
|
'offset' => ( $current_page - 1 ) * $per_page,
|
||||||
)
|
),
|
||||||
),
|
),
|
||||||
'9.5.0',
|
'9.5.0',
|
||||||
null,
|
null,
|
||||||
|
|
|
@ -53,7 +53,7 @@ class WC_Report_Low_In_Stock extends WC_Report_Stock {
|
||||||
",
|
",
|
||||||
$stock,
|
$stock,
|
||||||
$nostock
|
$nostock
|
||||||
)
|
),
|
||||||
),
|
),
|
||||||
'9.5.0',
|
'9.5.0',
|
||||||
null,
|
null,
|
||||||
|
|
|
@ -43,7 +43,7 @@ class WC_Report_Most_Stocked extends WC_Report_Stock {
|
||||||
AND lookup.stock_quantity > %d
|
AND lookup.stock_quantity > %d
|
||||||
",
|
",
|
||||||
$stock
|
$stock
|
||||||
)
|
),
|
||||||
),
|
),
|
||||||
'9.5.0',
|
'9.5.0',
|
||||||
null,
|
null,
|
||||||
|
|
|
@ -50,7 +50,7 @@ class WC_Report_Out_Of_Stock extends WC_Report_Stock {
|
||||||
AND lookup.stock_quantity <= %d
|
AND lookup.stock_quantity <= %d
|
||||||
",
|
",
|
||||||
$stock
|
$stock
|
||||||
)
|
),
|
||||||
),
|
),
|
||||||
'9.5.0',
|
'9.5.0',
|
||||||
null,
|
null,
|
||||||
|
|
|
@ -208,7 +208,8 @@ class WC_Report_Taxes_By_Code extends WC_Admin_Report {
|
||||||
$rate = $wpdb->get_var( $wpdb->prepare( "SELECT tax_rate FROM {$wpdb->prefix}woocommerce_tax_rates WHERE tax_rate_id = %d;", $rate_id ) );
|
$rate = $wpdb->get_var( $wpdb->prepare( "SELECT tax_rate FROM {$wpdb->prefix}woocommerce_tax_rates WHERE tax_rate_id = %d;", $rate_id ) );
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php
|
<th scope="row">
|
||||||
|
<?php
|
||||||
echo wp_kses_post(
|
echo wp_kses_post(
|
||||||
apply_filters_deprecated(
|
apply_filters_deprecated(
|
||||||
'woocommerce_reports_taxes_tax_rate',
|
'woocommerce_reports_taxes_tax_rate',
|
||||||
|
@ -217,8 +218,11 @@ class WC_Report_Taxes_By_Code extends WC_Admin_Report {
|
||||||
null,
|
null,
|
||||||
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
||||||
)
|
)
|
||||||
); ?></th>
|
);
|
||||||
<td><?php
|
?>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
echo wp_kses_post(
|
echo wp_kses_post(
|
||||||
apply_filters_deprecated(
|
apply_filters_deprecated(
|
||||||
'woocommerce_reports_taxes_rate',
|
'woocommerce_reports_taxes_rate',
|
||||||
|
@ -227,7 +231,8 @@ class WC_Report_Taxes_By_Code extends WC_Admin_Report {
|
||||||
null,
|
null,
|
||||||
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
||||||
)
|
)
|
||||||
); ?>%</td>
|
);
|
||||||
|
// phpcs:ignore?>%</td>
|
||||||
<td class="total_row"><?php echo esc_html( $tax_row->total_orders ); ?></td>
|
<td class="total_row"><?php echo esc_html( $tax_row->total_orders ); ?></td>
|
||||||
<td class="total_row"><?php echo wc_price( $tax_row->tax_amount ); // phpcs:ignore ?></td>
|
<td class="total_row"><?php echo wc_price( $tax_row->tax_amount ); // phpcs:ignore ?></td>
|
||||||
<td class="total_row"><?php echo wc_price( $tax_row->shipping_tax_amount ); // phpcs:ignore ?></td>
|
<td class="total_row"><?php echo wc_price( $tax_row->shipping_tax_amount ); // phpcs:ignore ?></td>
|
||||||
|
|
Loading…
Reference in New Issue