diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 746bb09319..55924b04cd 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -115,9 +115,6 @@
/src/wp-includes/class-pop3\.php
/src/wp-includes/class-requests\.php
/src/wp-includes/class-simplepie\.php
- /src/wp-includes/PHPMailer/Exception\.php
- /src/wp-includes/PHPMailer/PHPMailer\.php
- /src/wp-includes/PHPMailer/SMTP\.php
/src/wp-includes/class-snoopy\.php
/src/wp-includes/class-wp-block-parser\.php
/src/wp-includes/deprecated\.php
@@ -130,11 +127,12 @@
/src/wp-includes/ID3/*
/src/wp-includes/IXR/*
/src/wp-includes/js/*
+ /src/wp-includes/PHPMailer/*
/src/wp-includes/random_compat/*
/src/wp-includes/Requests/*
/src/wp-includes/SimplePie/*
- /src/wp-includes/Text/*
/src/wp-includes/sodium_compat/*
+ /src/wp-includes/Text/*
/tests/phpunit/includes/speed-trap-listener\.php