CS: minor cleanup

PHPCS 3.6.2 added a sniff for a PSR-12 rule which was previously not strictly checked: "No blank line after the opening brace of a class".

This fixes the newly flagged issues.
This commit is contained in:
jrfnl 2021-12-18 04:08:22 +01:00
parent 17cd8a8c11
commit d5a5ad19cd
40 changed files with 0 additions and 40 deletions

View File

@ -22,7 +22,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class OAuthTest extends TestCase
{
/**
* Test OAuth method.
*

View File

@ -27,7 +27,6 @@ use PHPMailer\Test\PreSendTestCase;
*/
final class AddEmbeddedImageTest extends PreSendTestCase
{
/**
* Test successfully adding an embedded image.
*/

View File

@ -27,7 +27,6 @@ use PHPMailer\Test\PreSendTestCase;
*/
final class AddStringAttachmentTest extends PreSendTestCase
{
/**
* Test successfully adding a simple plain string attachment.
*/

View File

@ -26,7 +26,6 @@ use PHPMailer\Test\PreSendTestCase;
*/
final class AddStringEmbeddedImageTest extends PreSendTestCase
{
/**
* Test successfully adding a stingified embedded image without a name.
*/

View File

@ -20,7 +20,6 @@ use PHPMailer\Test\SendTestCase;
*/
final class AuthCRAMMD5Test extends SendTestCase
{
/**
* Test CRAM-MD5 authentication.
* Needs a connection to a server that supports this auth mechanism, so commented out by default.

View File

@ -22,7 +22,6 @@ use PHPMailer\Test\TestCase;
*/
final class CustomHeaderTest extends TestCase
{
/**
* Tests setting and getting custom headers.
*

View File

@ -24,7 +24,6 @@ use PHPMailer\Test\SendTestCase;
*/
final class DKIMTest extends SendTestCase
{
/**
* Whether or not to initialize the PHPMailer object to throw exceptions.
*

View File

@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
*/
final class EncodeQTest extends TestCase
{
/**
* Test encoding a string using Q encoding.
*

View File

@ -22,7 +22,6 @@ use PHPMailer\Test\TestCase;
*/
final class EncodeStringTest extends TestCase
{
/**
* Encoding and charset tests.
*

View File

@ -28,7 +28,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class FileIsAccessibleTest extends TestCase
{
/**
* Verify whether the "is a file accessible" check works correctly.
*

View File

@ -23,7 +23,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class FilenameToTypeTest extends TestCase
{
/**
* Verify mapping a file name to a MIME type.
*

View File

@ -23,7 +23,6 @@ use PHPMailer\Test\PreSendTestCase;
*/
final class GenerateIdTest extends PreSendTestCase
{
/**
* Test generating a unique ID.
*

View File

@ -23,7 +23,6 @@ use PHPMailer\Test\PreSendTestCase;
*/
final class GetLastMessageIDTest extends PreSendTestCase
{
/**
* Test setting and retrieving an invalid message ID.
*

View File

@ -21,7 +21,6 @@ use PHPMailer\Test\PreSendTestCase;
*/
final class HasLineLongerThanMaxTest extends PreSendTestCase
{
/**
* Test constructing a multipart message that contains lines that are too long for RFC compliance.
*

View File

@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
*/
final class Html2TextTest extends TestCase
{
/**
* Test converting an arbitrary HTML string into plain text.
*

View File

@ -20,7 +20,6 @@ use PHPMailer\Test\PreSendTestCase;
*/
final class ICalTest extends PreSendTestCase
{
/**
* Test ICal method.
*

View File

@ -24,7 +24,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class IsPermittedPathTest extends TestCase
{
/**
* Test whether the validation of whether a path is of a permitted type works correctly.
*

View File

@ -23,7 +23,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class IsValidHostTest extends TestCase
{
/**
* Test host validation when a valid host is passed.
*

View File

@ -31,7 +31,6 @@ use PHPMailer\Test\TestCase;
*/
final class LocalizationTest extends TestCase
{
/**
* Test setting the preferred language for error messages.
*

View File

@ -20,7 +20,6 @@ use PHPMailer\Test\SendTestCase;
*/
final class MailTransportTest extends SendTestCase
{
/**
* Test sending using SendMail.
*

View File

@ -23,7 +23,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class MbPathinfoTest extends TestCase
{
/**
* Verify retrieving information about a file path when the $options parameter has been passed.
*

View File

@ -23,7 +23,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class MimeTypesTest extends TestCase
{
/**
* Test mime type mapping.
*

View File

@ -24,7 +24,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class NormalizeBreaksTest extends TestCase
{
/**
* Test line break normalization.
*

View File

@ -28,7 +28,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class ParseAddressesTest extends TestCase
{
/**
* Test RFC822 address splitting using the PHPMailer native implementation
* with the Mbstring extension available.

View File

@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
*/
final class PunyencodeAddressTest extends TestCase
{
/**
* Test IDN to ASCII form/punycode conversion for an email address.
*

View File

@ -23,7 +23,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class QuotedStringTest extends TestCase
{
/**
* Test quoting of a string depending on the content of the string.
*

View File

@ -22,7 +22,6 @@ use PHPMailer\Test\PreSendTestCase;
*/
final class ReplyToGetSetClearTest extends PreSendTestCase
{
/**
* Test adding a non-IDN reply-to address.
*

View File

@ -24,7 +24,6 @@ use PHPMailer\Test\TestCase;
*/
final class SetErrorTest extends TestCase
{
/**
* Test simple, non-STMP, error registration.
*/

View File

@ -24,7 +24,6 @@ use PHPMailer\Test\TestCase;
*/
final class SetFromTest extends TestCase
{
/**
* Test succesfully setting the From, FromName and Sender properties.
*

View File

@ -22,7 +22,6 @@ use PHPMailer\Test\TestCase;
*/
final class SetTest extends TestCase
{
/**
* Test setting the value of a class property.
*

View File

@ -23,7 +23,6 @@ use PHPMailer\Test\PreSendTestCase;
*/
final class SetWordWrapTest extends PreSendTestCase
{
/**
* Test word-wrapping a message.
*

View File

@ -24,7 +24,6 @@ use PHPMailer\Test\TestCase;
*/
final class Utf8CharBoundaryTest extends TestCase
{
/**
* Verify that the utf8CharBoundary() returns the correct last character boundary for encoded text.
*

View File

@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
*/
final class ValidateAddressCustomValidatorTest extends TestCase
{
/**
* Test injecting a one-off custom validator.
*/

View File

@ -33,7 +33,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class ValidateAddressTest extends TestCase
{
/**
* Run before this test class.
*/

View File

@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
*/
final class WrapTextTest extends TestCase
{
/**
* Test wrapping text.
*

View File

@ -25,7 +25,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
*/
final class PopBeforeSmtpTest extends TestCase
{
/**
* PIDs of any processes we need to kill.
*

View File

@ -21,7 +21,6 @@ use PHPMailer\Test\TestCase;
*/
abstract class PreSendTestCase extends TestCase
{
/**
* Property names and their values for the test instance of the PHPMailer class.
*

View File

@ -22,7 +22,6 @@ use PHPMailer\Test\SendTestCase;
*/
final class DenialOfServiceVectorsTest extends SendTestCase
{
/**
* Test this denial of service attack.
*

View File

@ -20,7 +20,6 @@ use Exception;
*/
abstract class SendTestCase extends PreSendTestCase
{
/**
* Translation map for supported $REQUEST keys to the property name in the PHPMailer class.
*

View File

@ -24,7 +24,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase as PolyfillTestCase;
*/
abstract class TestCase extends PolyfillTestCase
{
/**
* Whether or not to initialize the PHPMailer object to throw exceptions.
*