public static function up($string) { if (self::isMBString()) { return mb_strtoupper($string, self::$encoding); } else { // @codeCoverageIgnoreStart return strtoupper($string); // @codeCoverageIgnoreEnd } }
/** * String to upper and trim * * @param $string * @return string * * @SuppressWarnings(PHPMD.ShortMethodName) */ public static function up($string) { $cleaned = Str::up($string); $cleaned = Str::trim($cleaned); return $cleaned; }