WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterCloseParenthesis

This commit is contained in:
Aristeides Stathopoulos 2016-08-27 07:53:52 +03:00
parent a19848978a
commit 7c589cf7e1
3 changed files with 3 additions and 3 deletions

View File

@ -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' );

View File

@ -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;

View File

@ -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 );