Skip to content

Commit

Permalink
linter: opening brace location
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDragonWebDesign committed Jan 24, 2024
1 parent f05edfc commit b5b8191
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@
<property name="eolChar" value="\n"/>
</properties>
</rule>

<!-- opening brace location: ) {, not ){, not )\n{ -->
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/>
</ruleset>
8 changes: 4 additions & 4 deletions src/include/lib_autolink/lib_autolink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -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; }

Expand All @@ -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

Expand Down
3 changes: 1 addition & 2 deletions src/include/phpmailer/PHPMailerAutoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit b5b8191

Please sign in to comment.