WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterCloseParenthesis
This commit is contained in:
parent
a19848978a
commit
7c589cf7e1
|
@ -95,7 +95,7 @@ class WC_Auth {
|
|||
*/
|
||||
protected function get_permissions_in_scope( $scope ) {
|
||||
$permissions = array();
|
||||
switch ( $scope ) {
|
||||
switch ( $scope ) {
|
||||
case 'read' :
|
||||
$permissions[] = __( 'View coupons', 'woocommerce' );
|
||||
$permissions[] = __( 'View customers', 'woocommerce' );
|
||||
|
|
|
@ -225,7 +225,7 @@ class WC_Email extends WC_Settings_API {
|
|||
* @param PHPMailer $mailer
|
||||
* @return PHPMailer
|
||||
*/
|
||||
public function handle_multipart( $mailer ) {
|
||||
public function handle_multipart( $mailer ) {
|
||||
if ( $this->sending && 'multipart' === $this->get_email_type() ) {
|
||||
$mailer->AltBody = wordwrap( preg_replace( $this->plain_search, $this->plain_replace, strip_tags( $this->get_content_plain() ) ) );
|
||||
$this->sending = false;
|
||||
|
|
|
@ -439,7 +439,7 @@ class WC_Tests_API_Webhooks extends WC_API_Unit_Test_Case {
|
|||
* @since 2.2
|
||||
* @param $response
|
||||
*/
|
||||
protected function check_create_webhook_response( $response ) {
|
||||
protected function check_create_webhook_response( $response ) {
|
||||
|
||||
$this->assertNotWPError( $response );
|
||||
$this->assertArrayHasKey( 'webhook', $response );
|
||||
|
|
Loading…
Reference in New Issue