Fix PHPCS violations in includes/emails/class-wc-email-customer-completed-order.php
This commit is contained in:
parent
07fd8b8049
commit
925ee1a526
|
@ -1,7 +1,12 @@
|
|||
<?php
|
||||
/**
|
||||
* Class WC_Email_Customer_Completed_Order file.
|
||||
*
|
||||
* @package WooCommerce\Emails
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'WC_Email_Customer_Completed_Order', false ) ) :
|
||||
|
@ -14,7 +19,6 @@ if ( ! class_exists( 'WC_Email_Customer_Completed_Order', false ) ) :
|
|||
* @class WC_Email_Customer_Completed_Order
|
||||
* @version 2.0.0
|
||||
* @package WooCommerce/Classes/Emails
|
||||
* @author WooThemes
|
||||
* @extends WC_Email
|
||||
*/
|
||||
class WC_Email_Customer_Completed_Order extends WC_Email {
|
||||
|
@ -35,18 +39,18 @@ if ( ! class_exists( 'WC_Email_Customer_Completed_Order', false ) ) :
|
|||
'{order_number}' => '',
|
||||
);
|
||||
|
||||
// Triggers for this email
|
||||
// Triggers for this email.
|
||||
add_action( 'woocommerce_order_status_completed_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
|
||||
// Call parent constructor
|
||||
// Call parent constructor.
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger the sending of this email.
|
||||
*
|
||||
* @param int $order_id The order ID.
|
||||
* @param WC_Order $order Order object.
|
||||
* @param int $order_id The order ID.
|
||||
* @param WC_Order|false $order Order object.
|
||||
*/
|
||||
public function trigger( $order_id, $order = false ) {
|
||||
$this->setup_locale();
|
||||
|
|
Loading…
Reference in New Issue