From bf6ca94eca298aa24252cfa55b03f6172239ffe8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Jan 2023 11:17:18 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issues in `phpunit/tests/pluggable/wpMail.php`. This addresses a few errors along the lines of: * Opening parenthesis of a multi-line function call must be the last content on the line * Only one argument is allowed per line in a multi-line function call * Each array item in a multi-line array declaration must end in a comma * Closing parenthesis of a multi-line function call must be on a line by itself Follow-up to [55030]. See #28407. git-svn-id: https://develop.svn.wordpress.org/trunk@55032 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/pluggable/wpMail.php | 28 +++++++++++++++++------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/tests/pluggable/wpMail.php b/tests/phpunit/tests/pluggable/wpMail.php index c592555b40..97f7922446 100644 --- a/tests/phpunit/tests/pluggable/wpMail.php +++ b/tests/phpunit/tests/pluggable/wpMail.php @@ -461,10 +461,16 @@ class Tests_Pluggable_wpMail extends WP_UnitTestCase { * @ticket 28407 */ public function test_wp_mail_sends_attachments_with_original_name() { - wp_mail( 'user@example.org', 'Subject', 'Hello World', '', array( - DIR_TESTDATA . '/images/canola.jpg', - DIR_TESTDATA . '/images/waffles.jpg' - ) ); + wp_mail( + 'user@example.org', + 'Subject', + 'Hello World', + '', + array( + DIR_TESTDATA . '/images/canola.jpg', + DIR_TESTDATA . '/images/waffles.jpg', + ) + ); /** @var PHPMailer $mailer */ $mailer = tests_retrieve_phpmailer_instance(); @@ -483,10 +489,16 @@ class Tests_Pluggable_wpMail extends WP_UnitTestCase { * @ticket 28407 */ public function test_wp_mail_sends_attachments_with_custom_name() { - wp_mail( 'user@example.org', 'Subject', 'Hello World', '', array( - 'alonac.jpg' => DIR_TESTDATA . '/images/canola.jpg', - 'selffaw.jpg' => DIR_TESTDATA . '/images/waffles.jpg' - ) ); + wp_mail( + 'user@example.org', + 'Subject', + 'Hello World', + '', + array( + 'alonac.jpg' => DIR_TESTDATA . '/images/canola.jpg', + 'selffaw.jpg' => DIR_TESTDATA . '/images/waffles.jpg', + ) + ); /** @var PHPMailer $mailer */ $mailer = tests_retrieve_phpmailer_instance();