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:
parent
17cd8a8c11
commit
d5a5ad19cd
|
|
@ -22,7 +22,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
|||
*/
|
||||
final class OAuthTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test OAuth method.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ use PHPMailer\Test\PreSendTestCase;
|
|||
*/
|
||||
final class AddEmbeddedImageTest extends PreSendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test successfully adding an embedded image.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ use PHPMailer\Test\PreSendTestCase;
|
|||
*/
|
||||
final class AddStringAttachmentTest extends PreSendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test successfully adding a simple plain string attachment.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ use PHPMailer\Test\PreSendTestCase;
|
|||
*/
|
||||
final class AddStringEmbeddedImageTest extends PreSendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test successfully adding a stingified embedded image without a name.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class CustomHeaderTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Tests setting and getting custom headers.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ use PHPMailer\Test\SendTestCase;
|
|||
*/
|
||||
final class DKIMTest extends SendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Whether or not to initialize the PHPMailer object to throw exceptions.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class EncodeQTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test encoding a string using Q encoding.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class EncodeStringTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Encoding and charset tests.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
|||
*/
|
||||
final class FileIsAccessibleTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Verify whether the "is a file accessible" check works correctly.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
|||
*/
|
||||
final class FilenameToTypeTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Verify mapping a file name to a MIME type.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use PHPMailer\Test\PreSendTestCase;
|
|||
*/
|
||||
final class GenerateIdTest extends PreSendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test generating a unique ID.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use PHPMailer\Test\PreSendTestCase;
|
|||
*/
|
||||
final class GetLastMessageIDTest extends PreSendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test setting and retrieving an invalid message ID.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class Html2TextTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test converting an arbitrary HTML string into plain text.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ use PHPMailer\Test\PreSendTestCase;
|
|||
*/
|
||||
final class ICalTest extends PreSendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test ICal method.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
|||
*/
|
||||
final class IsValidHostTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test host validation when a valid host is passed.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class LocalizationTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test setting the preferred language for error messages.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ use PHPMailer\Test\SendTestCase;
|
|||
*/
|
||||
final class MailTransportTest extends SendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test sending using SendMail.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
|||
*/
|
||||
final class MimeTypesTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test mime type mapping.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
|||
*/
|
||||
final class NormalizeBreaksTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test line break normalization.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class PunyencodeAddressTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test IDN to ASCII form/punycode conversion for an email address.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ use PHPMailer\Test\PreSendTestCase;
|
|||
*/
|
||||
final class ReplyToGetSetClearTest extends PreSendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test adding a non-IDN reply-to address.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class SetErrorTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test simple, non-STMP, error registration.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class SetFromTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test succesfully setting the From, FromName and Sender properties.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class SetTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test setting the value of a class property.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use PHPMailer\Test\PreSendTestCase;
|
|||
*/
|
||||
final class SetWordWrapTest extends PreSendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test word-wrapping a message.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class ValidateAddressCustomValidatorTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test injecting a one-off custom validator.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
|||
*/
|
||||
final class ValidateAddressTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Run before this test class.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use PHPMailer\Test\TestCase;
|
|||
*/
|
||||
final class WrapTextTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test wrapping text.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
|||
*/
|
||||
final class PopBeforeSmtpTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* PIDs of any processes we need to kill.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ use PHPMailer\Test\SendTestCase;
|
|||
*/
|
||||
final class DenialOfServiceVectorsTest extends SendTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test this denial of service attack.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue