Skip to content

Commit 4919af5

Browse files
committed
Fix linting
1 parent 89052c1 commit 4919af5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

includes/CLI.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ public static function customers( $args, $assoc_args ) {
134134
/**
135135
* Disable sending WooCommerce emails when generating objects.
136136
*/
137-
protected static function disable_emails()
138-
{
137+
protected static function disable_emails() {
139138
$email_actions = array(
140139
'woocommerce_low_stock',
141140
'woocommerce_no_stock',
@@ -161,8 +160,8 @@ protected static function disable_emails()
161160
'woocommerce_created_customer',
162161
);
163162

164-
foreach ($email_actions as $action) {
165-
remove_action($action, array('WC_Emails', 'send_transactional_email'), 10, 10);
163+
foreach ( $email_actions as $action ) {
164+
remove_action( $action, array( 'WC_Emails', 'send_transactional_email' ), 10, 10 );
166165
}
167166
}
168167

includes/Generator/Coupon.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class Coupon extends Generator {
2424
public static function generate( $save = true, $min = 5, $max = 100 ) {
2525
self::init_faker();
2626

27-
$amount = random_int( $min, $max );
27+
$amount = random_int( $min, $max );
2828
$coupon_id = "discount$amount";
29-
$coupon = new \WC_Coupon( $coupon_id );
29+
$coupon = new \WC_Coupon( $coupon_id );
3030
if ( $coupon->get_id() === 0 ) {
3131
$coupon->set_props( array(
3232
'code' => "discount$amount",

0 commit comments

Comments
 (0)