From b5b8191a1f740ceea776ee5c8b0e31e5628be3fb Mon Sep 17 00:00:00 2001 From: RedDragonWebDesign Date: Tue, 23 Jan 2024 22:09:51 -0800 Subject: [PATCH] linter: opening brace location --- .phpcs.xml | 3 +++ src/include/lib_autolink/lib_autolink.php | 8 ++++---- src/include/phpmailer/PHPMailerAutoload.php | 3 +-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index e9ff3097..5aba18bc 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -20,4 +20,7 @@ + + + \ No newline at end of file diff --git a/src/include/lib_autolink/lib_autolink.php b/src/include/lib_autolink/lib_autolink.php index 71d95ba5..a0f57c29 100644 --- a/src/include/lib_autolink/lib_autolink.php +++ b/src/include/lib_autolink/lib_autolink.php @@ -25,7 +25,7 @@ #################################################################### - function autolink($text, $limit=30, $tagfill=' target="_blank"', $auto_title = true){ + function autolink($text, $limit=30, $tagfill=' target="_blank"', $auto_title = true) { $text = autolink_do($text, '![a-z][a-z-]+://!i', $limit, $tagfill, $auto_title); $text = autolink_do($text, '!(mailto|skype):!i', $limit, $tagfill, $auto_title); @@ -35,7 +35,7 @@ function autolink($text, $limit=30, $tagfill=' target="_blank"', $auto_title = t #################################################################### - function autolink_do($text, $sub, $limit, $tagfill, $auto_title, $force_prefix=null){ + function autolink_do($text, $sub, $limit, $tagfill, $auto_title, $force_prefix=null) { $text_l = StrToLower($text); $cursor = 0; @@ -190,7 +190,7 @@ function autolink_do($text, $sub, $limit, $tagfill, $auto_title, $force_prefix=n #################################################################### - function autolink_label($text, $limit){ + function autolink_label($text, $limit) { if (!$limit){ return $text; } @@ -203,7 +203,7 @@ function autolink_label($text, $limit){ #################################################################### - function autolink_email($text, $tagfill=''){ + function autolink_email($text, $tagfill='') { $atom = '[^()<>@,;:\\\\".\\[\\]\\x00-\\x20\\x7f]+'; # from RFC822 diff --git a/src/include/phpmailer/PHPMailerAutoload.php b/src/include/phpmailer/PHPMailerAutoload.php index 4d80a148..4178a4db 100644 --- a/src/include/phpmailer/PHPMailerAutoload.php +++ b/src/include/phpmailer/PHPMailerAutoload.php @@ -21,8 +21,7 @@ * PHPMailer SPL autoloader. * @param string $classname The name of the class to load */ -function PHPMailerAutoload($classname) -{ +function PHPMailerAutoload($classname) { //Can't use __DIR__ as it's only in PHP 5.3+ $filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php'; if (is_readable($filename)) {