From b9c8664adc7973bf72f5e20442626331858f68bc Mon Sep 17 00:00:00 2001 From: Arthur Almeida Date: Thu, 11 May 2017 18:03:24 -0300 Subject: [PATCH] fixed coding standards --- CRM/Utils/String.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/CRM/Utils/String.php b/CRM/Utils/String.php index 66e69552dd..fc28c0f000 100644 --- a/CRM/Utils/String.php +++ b/CRM/Utils/String.php @@ -83,14 +83,12 @@ class CRM_Utils_String { // we only use the ascii character set since mysql does not create table names / field names otherwise // CRM-11744 $name = preg_replace('/[^a-zA-Z0-9]+/', $char, trim($name)); - //If there are no ascii characters present. if ($name == $char) { $name = self::createRandom($len, self::ALPHANUMERIC); } - if ($len) { // lets keep variable names short return substr($name, 0, $len); -- 2.25.1