Fix PHP linter errors. (https://github.com/woocommerce/woocommerce-admin/pull/3188)
This commit is contained in:
parent
afed4fba36
commit
27cf52c31c
|
@ -100,7 +100,7 @@ class SqlQuery {
|
||||||
|
|
||||||
if ( isset( $this->sql_filters[ $type ] ) ) {
|
if ( isset( $this->sql_filters[ $type ] ) ) {
|
||||||
$clauses = array();
|
$clauses = array();
|
||||||
foreach( $this->sql_filters[ $type ] as $subset ) {
|
foreach ( $this->sql_filters[ $type ] as $subset ) {
|
||||||
$clauses = array_merge( $clauses, $this->sql_clauses[ $subset ] );
|
$clauses = array_merge( $clauses, $this->sql_clauses[ $subset ] );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -163,7 +163,6 @@ class SqlQuery {
|
||||||
$having = $this->get_sql_clause( 'having', 'filtered' );
|
$having = $this->get_sql_clause( 'having', 'filtered' );
|
||||||
$order_by = $this->get_sql_clause( 'order_by', 'filtered' );
|
$order_by = $this->get_sql_clause( 'order_by', 'filtered' );
|
||||||
|
|
||||||
|
|
||||||
$statement = "
|
$statement = "
|
||||||
SELECT
|
SELECT
|
||||||
{$this->get_sql_clause( 'select', 'filtered' )}
|
{$this->get_sql_clause( 'select', 'filtered' )}
|
||||||
|
|
|
@ -128,8 +128,9 @@ class ReportCSVEmail extends \WC_Email {
|
||||||
/**
|
/**
|
||||||
* Trigger the sending of this email.
|
* Trigger the sending of this email.
|
||||||
*
|
*
|
||||||
* @param int $order_id The order ID.
|
* @param int $user_id User ID to email.
|
||||||
* @param WC_Order|false $order Order object.
|
* @param string $report_type The type of report export being emailed.
|
||||||
|
* @param string $download_url The URL for downloading the report.
|
||||||
*/
|
*/
|
||||||
public function trigger( $user_id, $report_type, $download_url ) {
|
public function trigger( $user_id, $report_type, $download_url ) {
|
||||||
$user = new \WP_User( $user_id );
|
$user = new \WP_User( $user_id );
|
||||||
|
|
Loading…
Reference in New Issue